--------------------------------------------------------
NOTES
--------------------------------------------------------
zlib isn't built with the asm versions because that build doesn't support safeseh and causes issues when linking into taglib
see https://github.com/taglib/taglib/pull/309 for info about fix

--------------------------------------------------------
INSTRUCTIONS
--------------------------------------------------------
mkdir c:\code
cd c:\code

extract zlib-1.2.8 into c:\code

cd zlib-1.2.8
cmake -G "Visual Studio 12 2013" .
cmake --build . --config RelWithDebInfo
cd ..

mkdir taglib-1.10-win32-vc120\project\BuildDependencies\include
mkdir taglib-1.10-win32-vc120\project\BuildDependencies\lib\Release-vc120
mkdir taglib-1.10-win32-vc120\project\BuildDependencies\lib\Debug-vc120

git clone https://github.com/taglib/taglib/
cd taglib
git checkout v1.10
mkdir build
cd build
cmake -G "Visual Studio 12 2013" -DZLIB_LIBRARY=C:\code\zlib-1.2.8\relwithdebinfo\zlibstatic.lib -DZLIB_INCLUDE_DIR=c:\code\zlib-1.2.8\ -DENABLE_STATIC=on -DENABLE_STATIC_RUNTIME=on -DCMAKE_CXX_FLAGS_DEBUG="/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 /D_ITERATOR_DEBUG_LEVEL=0" -DCMAKE_CXX_FLAGS="/DWIN32 /D_WINDOWS /W3 /GR /EHsc /Fd$(OutDir)$(TargetName).pdb" -DCMAKE_INSTALL_PREFIX=c:\code\tagbuild\ ..
cmake --build . --target install --config debug
move taglib\debug\tag.pdb ..\..\taglib-1.10-win32-vc120\project\BuildDependencies\lib\Debug-vc120\tag.pdb
move ..\..\tagbuild\lib\tag.lib ..\..\taglib-1.10-win32-vc120\project\BuildDependencies\lib\Debug-vc120\tag.lib
cmake --build . --target install --config RelWithDebInfo
move taglib\RelWithDebInfo\tag.pdb ..\..\taglib-1.10-win32-vc120\project\BuildDependencies\lib\Release-vc120\tag.pdb
move ..\..\tagbuild\lib\tag.lib ..\..\taglib-1.10-win32-vc120\project\BuildDependencies\lib\Release-vc120\tag.lib
move ..\..\tagbuild\include\taglib ..\..\taglib-1.10-win32-vc120\project\BuildDependencies\include
