diff options
-rw-r--r-- | buildscripts/make_vcxproj.py | 9 | ||||
-rw-r--r-- | buildscripts/vcxproj.header | 7 |
2 files changed, 11 insertions, 5 deletions
diff --git a/buildscripts/make_vcxproj.py b/buildscripts/make_vcxproj.py index 3694e4ea417..0c1ca4b700b 100644 --- a/buildscripts/make_vcxproj.py +++ b/buildscripts/make_vcxproj.py @@ -3,11 +3,12 @@ # howto: # scons --clean # scons <a_target> > out -# python buildscripts/make_vcxproj.py < out > out1 && cat buildscripts/vcxproj.header out1 > a_target.vcxproj +# python buildscripts/make_vcxproj.py TARGET < out > my.vcxproj # -# note: the vcxproj.header file currently references "mongod.exe" explicitly rather than being generic. -# this will be changed soon but gets us started. -# also, directory paths are such that it is assumed the vcxproj is in the top level project directory. +# where TARGET is your target e.g., "mongod" +# +# note: +# directory paths are such that it is assumed the vcxproj is in the top level project directory. # this is easy and likely to change... # diff --git a/buildscripts/vcxproj.header b/buildscripts/vcxproj.header index b104e299eee..f6c47a5fada 100644 --- a/buildscripts/vcxproj.header +++ b/buildscripts/vcxproj.header @@ -99,7 +99,10 @@ <ClCompile> <ObjectFileName>%(RelativeDir)/</ObjectFileName> <AdditionalIncludeDirectories>src;src\mongo;src\third_party\v8\include;src\third_party\pcre-8.30;src\third_party\boost;src\third_party\snappy;src\third_party\s2;src\third_party\yaml-cpp-0.5.1\include</AdditionalIncludeDirectories> - <PreprocessorDefinitions>WIN32;XP_WIN;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <PreprocessorDefinitions>NTDDI_VERSION=0x06010000;_WIN32_WINNT=0x0601;WIN32;XP_WIN;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <!-- above is temp - NTDDI etc. should be configurable, not finished yet, this gets us compiling some for now. + <PreprocessorDefinitions>WIN32;XP_WIN;%(PreprocessorDefinitions)</PreprocessorDefinitions> + --> <DisableSpecificWarnings>4355;4800;4267;4244;4351</DisableSpecificWarnings> <MultiProcessorCompilation>true</MultiProcessorCompilation> <MinimalRebuild>No</MinimalRebuild> @@ -154,6 +157,7 @@ </Link> </ItemDefinitionGroup> +<!-- temp commented out, not working yet <!-- SRW / Windows2008+ --> <ItemDefinitionGroup Condition="'$(Configuration)'=='Win2008PlusRelease' Or '(Configuration)'=='Win2008PlusDebug'"> <ClCompile> @@ -167,6 +171,7 @@ <PreprocessorDefinitions>NTDDI_VERSION=0x05020200;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> </ItemDefinitionGroup> +--> <!-- SPECIFICS --> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |