Index: ext/gmock/gmock.vcxproj =================================================================== diff -u -rca50000d4bc00a252f9289174cb11223a43c1e90 -rc8dc2ed371eba9b83347c1ee97615f89719e0b84 --- ext/gmock/gmock.vcxproj (.../gmock.vcxproj) (revision ca50000d4bc00a252f9289174cb11223a43c1e90) +++ ext/gmock/gmock.vcxproj (.../gmock.vcxproj) (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -42,46 +42,46 @@ StaticLibrary - v120 + v120_xp Unicode true StaticLibrary - v120 + v120_xp Unicode true StaticLibrary - v120 + v120_xp Unicode StaticLibrary - v120 + v120_xp Unicode StaticLibrary - v120 + v120_xp Unicode true StaticLibrary - v120 + v120_xp Unicode true StaticLibrary - v120 + v120_xp Unicode StaticLibrary - v120 + v120_xp Unicode Index: ext/sqlite3/sqlite3.vcxproj =================================================================== diff -u -r69af5b32541773a52a357d9d514dae0a5fc0a0aa -rc8dc2ed371eba9b83347c1ee97615f89719e0b84 --- ext/sqlite3/sqlite3.vcxproj (.../sqlite3.vcxproj) (revision 69af5b32541773a52a357d9d514dae0a5fc0a0aa) +++ ext/sqlite3/sqlite3.vcxproj (.../sqlite3.vcxproj) (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -42,46 +42,46 @@ DynamicLibrary - v120 + v120_xp Unicode true DynamicLibrary - v120 + v120_xp Unicode DynamicLibrary - v120 + v120_xp Unicode true DynamicLibrary - v120 + v120_xp Unicode DynamicLibrary - v120 + v120_xp Unicode true DynamicLibrary - v120 + v120_xp Unicode DynamicLibrary - v120 + v120_xp Unicode true DynamicLibrary - v120 + v120_xp Unicode Index: msbuild.proj =================================================================== diff -u --- msbuild.proj (revision 0) +++ msbuild.proj (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file Index: readme.build.txt =================================================================== diff -u -r7770d9e0a316d014b75ea4bd88f8b6d13c80c318 -rc8dc2ed371eba9b83347c1ee97615f89719e0b84 --- readme.build.txt (.../readme.build.txt) (revision 7770d9e0a316d014b75ea4bd88f8b6d13c80c318) +++ readme.build.txt (.../readme.build.txt) (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -14,5 +14,30 @@ bjam --toolset=msvc-9.0 address-model=32 define=_BIND_TO_CURRENT_VCLIBS_VERSION --build-type=complete --stagedir=lib-9.0\x32 stage 2. Visual Studio 2013 - bjam --toolset=msvc-12.0 address-model=64 define=_BIND_TO_CURRENT_VCLIBS_VERSION --build-type=complete --stagedir=lib-12.0\x64 stage - bjam --toolset=msvc-12.0 address-model=32 define=_BIND_TO_CURRENT_VCLIBS_VERSION --build-type=complete --stagedir=lib-12.0\x32 stage +CH that is built with VS2013 uses the XP targeting to allow it to run with Windows XP. +Because of that, boost also needs to be built with this kind of targeting. + +Based on MS article: +http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx + +The environment needs to be set up first, so +for x32: + set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE% + set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH% + set CL=/D_USING_V110_SDK71_;%CL% + set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;%LIB% + set LINK=/SUBSYSTEM:CONSOLE,5.01 %LINK% + + bjam --toolset=msvc-12.0 address-model=32 define=_BIND_TO_CURRENT_VCLIBS_VERSION --build-type=complete --stagedir=lib-12.0\x32 stage + +for x64: + set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE% + set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH% + set CL=/D_USING_V110_SDK71_;%CL% + set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib\x64;%LIB% + set LINK=/SUBSYSTEM:CONSOLE,5.02 %LINK% + + bjam --toolset=msvc-12.0 address-model=64 define=_BIND_TO_CURRENT_VCLIBS_VERSION --build-type=complete --stagedir=lib-12.0\x64 stage + +This was tested on boost 1.57 with VS2013 Update 4 Community Edition. +There are also batch scripts prepared in tools/ to help with building boost for VS2013. \ No newline at end of file Index: src/ch/ch.vc120.vcxproj =================================================================== diff -u -rca50000d4bc00a252f9289174cb11223a43c1e90 -rc8dc2ed371eba9b83347c1ee97615f89719e0b84 --- src/ch/ch.vc120.vcxproj (.../ch.vc120.vcxproj) (revision ca50000d4bc00a252f9289174cb11223a43c1e90) +++ src/ch/ch.vc120.vcxproj (.../ch.vc120.vcxproj) (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -43,49 +43,49 @@ Application - v120 + v120_xp Dynamic Unicode Application - v120 + v120_xp Dynamic Unicode Application - v120 + v120_xp Dynamic Unicode Application - v120 + v120_xp Dynamic Unicode Application - v120 + v120_xp Dynamic Unicode Application - v120 + v120_xp Dynamic Unicode Application - v120 + v120_xp Dynamic Unicode Application - v120 + v120_xp Dynamic Unicode Index: src/chext/chext.vc120.vcxproj =================================================================== diff -u -rca50000d4bc00a252f9289174cb11223a43c1e90 -rc8dc2ed371eba9b83347c1ee97615f89719e0b84 --- src/chext/chext.vc120.vcxproj (.../chext.vc120.vcxproj) (revision ca50000d4bc00a252f9289174cb11223a43c1e90) +++ src/chext/chext.vc120.vcxproj (.../chext.vc120.vcxproj) (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -43,53 +43,53 @@ DynamicLibrary - v120 + v120_xp false false Unicode DynamicLibrary - v120 + v120_xp false false Unicode DynamicLibrary - v120 + v120_xp false Unicode DynamicLibrary - v120 + v120_xp false Unicode DynamicLibrary - v120 + v120_xp false false Unicode DynamicLibrary - v120 + v120_xp false false Unicode DynamicLibrary - v120 + v120_xp false Unicode DynamicLibrary - v120 + v120_xp false Unicode Index: src/libchcore/libchcore.vc120.vcxproj =================================================================== diff -u -rca50000d4bc00a252f9289174cb11223a43c1e90 -rc8dc2ed371eba9b83347c1ee97615f89719e0b84 --- src/libchcore/libchcore.vc120.vcxproj (.../libchcore.vc120.vcxproj) (revision ca50000d4bc00a252f9289174cb11223a43c1e90) +++ src/libchcore/libchcore.vc120.vcxproj (.../libchcore.vc120.vcxproj) (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -43,47 +43,47 @@ DynamicLibrary - v120 + v120_xp Unicode true DynamicLibrary - v120 + v120_xp Unicode true DynamicLibrary - v120 + v120_xp Unicode DynamicLibrary - v120 + v120_xp Unicode DynamicLibrary Unicode true - v120 + v120_xp DynamicLibrary Unicode true - v120 + v120_xp DynamicLibrary Unicode - v120 + v120_xp DynamicLibrary Unicode - v120 + v120_xp Index: tools/boost-build32.bat =================================================================== diff -u --- tools/boost-build32.bat (revision 0) +++ tools/boost-build32.bat (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -0,0 +1,11 @@ +rem This scripts updates the environment (that needs to be previously set up for building with vcvarsall) +rem so that the boost will build with xp compatibility in VS2013. +rem Execute this script in the boost directory. + +set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE% +set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH% +set CL=/D_USING_V110_SDK71_;%CL% +set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;%LIB% +set LINK=/SUBSYSTEM:CONSOLE,5.01 %LINK% + +bjam --toolset=msvc-12.0 --link=shared --threading=multi --runtime-link=shared address-model=32 define=_BIND_TO_CURRENT_VCLIBS_VERSION --build-type=complete --stagedir=lib-12.0\x32 stage Index: tools/boost-build64.bat =================================================================== diff -u --- tools/boost-build64.bat (revision 0) +++ tools/boost-build64.bat (revision c8dc2ed371eba9b83347c1ee97615f89719e0b84) @@ -0,0 +1,11 @@ +rem This scripts updates the environment (that needs to be previously set up for building with vcvarsall) +rem so that the boost will build with xp compatibility in VS2013. +rem Execute this script in the boost directory. + +set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE% +set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH% +set CL=/D_USING_V110_SDK71_;%CL% +set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib\x64;%LIB% +set LINK=/SUBSYSTEM:CONSOLE,5.02 %LINK% + +bjam --toolset=msvc-12.0 --link=shared --threading=multi --runtime-link=shared address-model=64 define=_BIND_TO_CURRENT_VCLIBS_VERSION --build-type=complete --stagedir=lib-12.0\x64 stage