Kaydet (Commit) e6894d62 authored tarafından Steve Dower's avatar Steve Dower

Enables building compressed Windows test builds with --pack option.

üst a0bcfaff
...@@ -7,6 +7,7 @@ set BUILDX86= ...@@ -7,6 +7,7 @@ set BUILDX86=
set BUILDX64= set BUILDX64=
set BUILDDOC= set BUILDDOC=
set BUILDPX= set BUILDPX=
set BUILDPACK=
:CheckOpts :CheckOpts
if "%~1" EQU "-h" goto Help if "%~1" EQU "-h" goto Help
...@@ -14,6 +15,7 @@ if "%~1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts ...@@ -14,6 +15,7 @@ if "%~1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts
if "%~1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts if "%~1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts
if "%~1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts if "%~1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts
if "%~1" EQU "--test-marker" (set BUILDPX=1) && shift && goto CheckOpts if "%~1" EQU "--test-marker" (set BUILDPX=1) && shift && goto CheckOpts
if "%~1" EQU "--pack" (set BUILDPACK=1) && shift && goto CheckOpts
if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1) if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1)
...@@ -41,6 +43,9 @@ set BUILD_CMD="%D%bundle\snapshot.wixproj" ...@@ -41,6 +43,9 @@ set BUILD_CMD="%D%bundle\snapshot.wixproj"
if defined BUILDPX ( if defined BUILDPX (
set BUILD_CMD=%BUILD_CMD% /p:UseTestMarker=true set BUILD_CMD=%BUILD_CMD% /p:UseTestMarker=true
) )
if defined BUILDPACK (
set BUILD_CMD=%BUILD_CMD% /p:Pack=true
)
if defined BUILDX86 ( if defined BUILDX86 (
"%PCBUILD%win32\python.exe" "%D%get_wix.py" "%PCBUILD%win32\python.exe" "%D%get_wix.py"
...@@ -56,9 +61,10 @@ if defined BUILDX64 ( ...@@ -56,9 +61,10 @@ if defined BUILDX64 (
exit /B 0 exit /B 0
:Help :Help
echo build.bat [-x86] [-x64] [--doc] [-h] [--test-marker] echo build.bat [-x86] [-x64] [--doc] [-h] [--test-marker] [--pack]
echo. echo.
echo -x86 Build x86 installers echo -x86 Build x86 installers
echo -x64 Build x64 installers echo -x64 Build x64 installers
echo --doc Build CHM documentation echo --doc Build CHM documentation
echo --test-marker Build installers with 'x' markers echo --test-marker Build installers with 'x' markers
echo --pack Embed core MSIs into installer
...@@ -9,9 +9,14 @@ ...@@ -9,9 +9,14 @@
<Import Project="..\msi.props" /> <Import Project="..\msi.props" />
<PropertyGroup> <PropertyGroup>
<DefineConstants Condition="'$(Pack)' != 'true'">
$(DefineConstants);CompressMSI=no;
</DefineConstants>
<DefineConstants Condition="'$(Pack)' == 'true'">
$(DefineConstants);CompressMSI=yes;
</DefineConstants>
<DefineConstants> <DefineConstants>
$(DefineConstants); $(DefineConstants);
CompressMSI=no;
CompressPDB=no; CompressPDB=no;
CompressMSI_D=no; CompressMSI_D=no;
</DefineConstants> </DefineConstants>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment