set BUILDX64=\r
set BUILDDOC=\r
set BUILDPX=\r
+set BUILDPACK=\r
\r
:CheckOpts\r
if "%~1" EQU "-h" goto Help\r
if "%~1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts\r
if "%~1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts\r
if "%~1" EQU "--test-marker" (set BUILDPX=1) && shift && goto CheckOpts\r
+if "%~1" EQU "--pack" (set BUILDPACK=1) && shift && goto CheckOpts\r
\r
if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1)\r
\r
if defined BUILDPX (\r
set BUILD_CMD=%BUILD_CMD% /p:UseTestMarker=true\r
)\r
+if defined BUILDPACK (\r
+ set BUILD_CMD=%BUILD_CMD% /p:Pack=true\r
+)\r
\r
if defined BUILDX86 (\r
"%PCBUILD%win32\python.exe" "%D%get_wix.py"\r
exit /B 0\r
\r
:Help\r
-echo build.bat [-x86] [-x64] [--doc] [-h] [--test-marker]\r
+echo build.bat [-x86] [-x64] [--doc] [-h] [--test-marker] [--pack]\r
echo.\r
echo -x86 Build x86 installers\r
echo -x64 Build x64 installers\r
echo --doc Build CHM documentation\r
echo --test-marker Build installers with 'x' markers\r
+echo --pack Embed core MSIs into installer\r
<Import Project="..\msi.props" />
<PropertyGroup>
+ <DefineConstants Condition="'$(Pack)' != 'true'">
+ $(DefineConstants);CompressMSI=no;
+ </DefineConstants>
+ <DefineConstants Condition="'$(Pack)' == 'true'">
+ $(DefineConstants);CompressMSI=yes;
+ </DefineConstants>
<DefineConstants>
$(DefineConstants);
- CompressMSI=no;
CompressPDB=no;
CompressMSI_D=no;
</DefineConstants>