Windows
-------
-For building a static library on Windows with Visual Studio 2010, cd to
-the TagLib folder then:
-
- cmake -DENABLE_STATIC=ON -DENABLE_STATIC_RUNTIME=ON -G "Visual Studio 10" ...
+It's Windows ... Systems vary!
+This means you need to adjust things to suit your system, especially paths.
+
+Tested with:
+ Microsoft Visual Studio 2010
+ Gcc by mingw-w64.sf.net v4.6.3 (Strawberry Perl 32b)
+ MinGW32-4.8.0
+
+Requirements:
+ 1. Tool chain, Build Environment, Whatever ya want to call it ...
+ Installed and working.
+ 2. CMake program. (Available at: www.cmake.org)
+ Installed and working.
+
+Optional:
+ 1. Zlib library.
+ Available in some Tool Chains, Not all.
+ Search the web, Take your choice.
+
+Useful configuration options used with CMake (GUI and/or Command line):
+ Any of the ZLIB_ variables may be used at the command line, ZLIB_ROOT is only
+ available on the Command line.
+ ZLIB_ROOT= Where to find ZLib's root directory.
+ Assumes parent of: \include and \lib.
+ ZLIB_INCLUDE_DIR= Where to find ZLib's Include directory.
+ ZLIB_LIBRARY= Where to find ZLib's Library.
+ CMAKE_INSTALL_PREFIX= Where to install Taglib.
+ CMAKE_BUILD_TYPE= Release, Debug, etc ... (Not available in MSVC)
+
+The easiest way is at the Command Prompt.
+ MSVS Command Prompt for MSVS Users.
+ (Batch file and/or Shortcuts are your friends)
+
+ 1. Build the Makefiles:
+ Replace "GENERATOR" with your needs.
+ For MSVS : "Visual Studio X" where X is the single or two digit version.
+ For MinGW: "MinGW Makefiles"
+
+ C:\GitRoot\taglib> cmake -G "GENERATOR" -DCMAKE_INSTALL_PREFIX=C:\Libraries\taglib
+
+ Or use the CMake GUI:
+ 1. Open CMake GUI.
+ 2. Set Paths.
+ "Where is the source code" and "Where to build the binaries"
+ Example, Both would be: C:\GitRoot\taglib
+ 3. Tick: Advanced
+ 4. Select: Configure
+ 5. Select: Generator
+ 6. Tick: Use default native compilers
+ 7. Select: Finish
+ Wait until done.
+ 5. If using ZLib, Scroll down.
+ (to the bottom of the list of options ... should go over them all)
+ 1. Edit: ZLIB_INCLUDE_DIR
+ 2. Edit: ZLIB_LIBRARY
+ 6. Select: Generate
+
+ 2. Build the project:
+ MSVS:
+ C:\GitRoot\taglib> msbuild all_build.vcxproj /p:Configuration=Release
+ OR (Depending on MSVS version or personal choice)
+ C:\GitRoot\taglib> devenv all_build.vcxproj /build Release
+ MinGW:
+ C:\GitRoot\taglib> gmake
+ OR (Depending on MinGW install)
+ C:\GitRoot\taglib> mingw32-make
+
+ Or in the MSVS GUI:
+ 1. Open MSVS.
+ 2. Open taglib solution.
+ 3. Set build type to: Release (look in the tool bars)
+ 2. Hit F7 to build the solution. (project)
+
+ 3. Install the project:
+ (Change 'install' to 'uninstall' to uninstall the project)
+ MSVS:
+ C:\GitRoot\taglib> msbuild install.vcxproj
+ OR (Depending on MSVC version or personal choice)
+ C:\GitRoot\taglib> devenv install.vcxproj
+ MinGW:
+ C:\GitRoot\taglib> gmake install
+ OR (Depending on MinGW install)
+ C:\GitRoot\taglib> mingw32-make install
+
+ Or in the MSVS GUI:
+ 1. Open project.
+ 2. Open Solution Explorer.
+ 3. Right Click: INSTALL
+ 4. Select: Project Only
+ 5. Select: Build Only INSTALL
+
+To build a static library enable the following two options with CMake.
+ -DENABLE_STATIC=ON -DENABLE_STATIC_RUNTIME=ON
Including ENABLE_STATIC_RUNTIME=ON indicates you want TagLib built using the
static runtime library, rather than the DLL form of the runtime.
-CMake will create a Visual Studio solution, taglib.sln that you can open and
-build as normal.
Unit Tests
----------