rem These use the actual property names used by MSBuild. We could just let\r
rem them in through the environment, but we specify them on the command line\r
rem anyway for visibility so set defaults after this\r
-if "%~1"=="-e" (set IncludeExternals=true) & call "%dir%get_externals.bat" & shift & goto CheckOpts\r
+if "%~1"=="-e" (set IncludeExternals=true) & shift & goto CheckOpts\r
if "%~1"=="--no-ssl" (set IncludeSSL=false) & shift & goto CheckOpts\r
if "%~1"=="--no-tkinter" (set IncludeTkinter=false) & shift & goto CheckOpts\r
if "%~1"=="--no-bsddb" (set IncludeBsddb=false) & shift & goto CheckOpts\r
if "%IncludeTkinter%"=="" set IncludeTkinter=true\r
if "%IncludeBsddb%"=="" set IncludeBsddb=true\r
\r
+if "%IncludeExternals%"=="true" call "%dir%get_externals.bat"\r
+\r
if "%platf%"=="x64" (set vs_platf=x86_amd64)\r
\r
rem Setup the environment\r
rem When updating these versions, remember to update the relevant property\r
rem files in both this dir and PC\VS9.0\r
\r
-for %%e in (\r
- bzip2-1.0.6\r
- db-4.7.25.0\r
- nasm-2.11.06\r
- openssl-1.0.2d\r
- tcl-8.5.15.0\r
- tk-8.5.15.0\r
- tix-8.4.3.5\r
- sqlite-3.6.21\r
- ) do (\r
+set libraries=\r
+set libraries=%libraries% bzip2-1.0.6\r
+if NOT "%IncludeBsddb%"=="false" set libraries=%libraries% db-4.7.25.0\r
+if NOT "%IncludeSSL%"=="false" set libraries=%libraries% nasm-2.11.06\r
+if NOT "%IncludeSSL%"=="false" set libraries=%libraries% openssl-1.0.2d\r
+set libraries=%libraries% sqlite-3.6.21\r
+if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tcl-8.5.15.0\r
+if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tk-8.5.15.0\r
+if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tix-8.4.3.5\r
+\r
+for %%e in (%libraries%) do (\r
if exist %%e (\r
echo.%%e already exists, skipping.\r
) else (\r