diff -r 59d0aeea41fa PCbuild/build.bat
--- a/PCbuild/build.bat Wed Sep 02 13:21:19 2015 -0500
+++ b/PCbuild/build.bat Wed Sep 02 15:26:13 2015 -0500
@@ -18,12 +18,19 @@
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 (enabled by default)
echo. -M Disable parallel build
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.
echo.Available arguments:
echo. -c Release ^| Debug ^| PGInstrument ^| PGUpdate
echo. Set the configuration (default: Release)
@@ -43,6 +50,9 @@
set parallel=/m
set verbose=/nologo /v:m
set kill=
+set externals=false
+set ssl=true
+set tkinter=true
:CheckOpts
if "%~1"=="-h" goto Usage
@@ -51,12 +61,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"=="-V" shift & goto Version
+if "%~1"=="--no-ssl" (set ssl=false) & shift & goto CheckOpts
+if "%~1"=="--no-tkinter" (set tkinter=false) & shift & goto CheckOpts
if "%platf%"=="x64" (set vs_platf=x86_amd64)
@@ -71,7 +83,11 @@
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%^
+ %1 %2 %3 %4 %5 %6 %7 %8 %9
@goto :eof
diff -r 59d0aeea41fa PCbuild/pcbuild.proj
--- a/PCbuild/pcbuild.proj Wed Sep 02 13:21:19 2015 -0500
+++ b/PCbuild/pcbuild.proj Wed Sep 02 15:26:13 2015 -0500
@@ -5,8 +5,10 @@
Win32
Release
true
+ true
true
true
+ true
@@ -25,7 +27,7 @@
@@ -40,10 +42,14 @@
-
+
+
+
-
+
+
+