diff -r 699670303a43 PCbuild/build.bat --- a/PCbuild/build.bat Wed Sep 02 13:21:19 2015 -0500 +++ b/PCbuild/build.bat Wed Sep 02 15:06:47 2015 -0500 @@ -17,12 +17,20 @@ echo. -r Target Rebuild instead of Build echo. -d Set the configuration to Debug echo. -e Build external libraries fetched by get_externals.bat +echo. Extension modules that depend on external libraries will not attempt +echo. to build if this flag is not present echo. -m Enable parallel build echo. -M Disable parallel build (disabled by default) echo. -v Increased output messages echo. -k Attempt to kill any running Pythons before building (usually done echo. automatically by the pythoncore project) echo. +echo.Available flags to avoid building certain modules. +echo.These flags have no effect if '-e' is not given: +echo. --no-ssl Do not attempt to build _ssl +echo. --no-tkinter Do not attempt to build Tkinter +echo. --no-bsddb Do not attempt to build _bsddb +echo. echo.Available arguments: echo. -c Release ^| Debug ^| PGInstrument ^| PGUpdate echo. Set the configuration (default: Release) @@ -42,6 +50,10 @@ set parallel= set verbose=/nologo /v:m set kill= +set externals=false +set ssl=true +set tkinter=true +set bsddb=true :CheckOpts if "%~1"=="-h" goto Usage @@ -50,11 +62,14 @@ if "%~1"=="-r" (set target=Rebuild) & shift & goto CheckOpts if "%~1"=="-t" (set target=%2) & shift & shift & goto CheckOpts if "%~1"=="-d" (set conf=Debug) & shift & goto CheckOpts -if "%~1"=="-e" call "%dir%get_externals.bat" & shift & goto CheckOpts +if "%~1"=="-e" (set externals=true) & call "%dir%get_externals.bat" & shift & goto CheckOpts if "%~1"=="-m" (set parallel=/m) & shift & goto CheckOpts if "%~1"=="-M" (set parallel=) & shift & goto CheckOpts if "%~1"=="-v" (set verbose=/v:n) & shift & goto CheckOpts if "%~1"=="-k" (set kill=true) & shift & goto CheckOpts +if "%~1"=="--no-ssl" (set ssl=false) & shift & goto CheckOpts +if "%~1"=="--no-tkinter" (set tkinter=false) & shift & goto CheckOpts +if "%~1"=="--no-bsddb" (set bsddb=false) & shift & goto CheckOpts if "%platf%"=="x64" (set vs_platf=x86_amd64) @@ -69,4 +84,9 @@ rem Passing %1-9 is not the preferred option, but argument parsing in rem batch is, shall we say, "lackluster" echo on -msbuild "%dir%pcbuild.proj" /t:%target% %parallel% %verbose% /p:Configuration=%conf% /p:Platform=%platf% %1 %2 %3 %4 %5 %6 %7 %8 %9 +msbuild "%dir%pcbuild.proj" /t:%target% %parallel% %verbose%^ + /p:Configuration=%conf% /p:Platform=%platf%^ + /p:IncludeExternals=%externals%^ + /p:IncludeSSL=%ssl% /p:IncludeTkinter=%tkinter%^ + /p:IncludeBsddb=%bsddb%^ + %1 %2 %3 %4 %5 %6 %7 %8 %9 diff -r 699670303a43 PCbuild/pcbuild.proj --- a/PCbuild/pcbuild.proj Wed Sep 02 13:21:19 2015 -0500 +++ b/PCbuild/pcbuild.proj Wed Sep 02 15:06:47 2015 -0500 @@ -5,8 +5,11 @@ Win32 Release true + true true true + true + true @@ -34,10 +37,15 @@ - + + + - + + + +