@@ -6,20 +6,24 @@ if "%Py_OutDir%"=="" set Py_OutDir=%PCBUILD%
66
77set BUILDX86 =
88set BUILDX64 =
9+ set BUILDARM32 =
910set REBUILD =
1011set OUTPUT =
1112set PACKAGES =
13+ set PYTHON_EXE =
1214
1315:CheckOpts
1416if " %~1 " EQU " -h" goto Help
1517if " %~1 " EQU " -x86" (set BUILDX86=1) && shift && goto CheckOpts
1618if " %~1 " EQU " -x64" (set BUILDX64=1) && shift && goto CheckOpts
19+ if " %~1 " EQU " -arm32" (set BUILDARM32=1) && shift && goto CheckOpts
1720if " %~1 " EQU " -r" (set REBUILD=-r) && shift && goto CheckOpts
1821if " %~1 " EQU " -o" (set OUTPUT=" /p:OutputPath=%~2 " ) && shift && shift && goto CheckOpts
1922if " %~1 " EQU " --out" (set OUTPUT=" /p:OutputPath=%~2 " ) && shift && shift && goto CheckOpts
2023if " %~1 " EQU " -p" (set PACKAGES=%PACKAGES% %~2 ) && shift && shift && goto CheckOpts
24+ if " %~1 " EQU " --python-exe" (set PYTHON_EXE=" /p:PythonExe=%~2 " ) && shift && shift && goto CheckOpts
2125
22- if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1)
26+ if not defined BUILDX86 if not defined BUILDX64 if not defined BUILDARM32 (set BUILDX86=1) && (set BUILDX64=1) && (set BUILDARM32 =1)
2327
2428call " %D% ..\msi\get_externals.bat"
2529call " %PCBUILD% find_msbuild.bat" %MSBUILD%
@@ -32,7 +36,7 @@ if defined BUILDX86 (
3236 ) else if not exist " %Py_OutDir% win32\python.exe" call " %PCBUILD% build.bat" -e
3337 if errorlevel 1 goto :eof
3438
35- %MSBUILD% " %D% make_pkg.proj" /p:Configuration=Release /p:Platform=x86 %OUTPUT% %PACKAGES%
39+ %MSBUILD% " %D% make_pkg.proj" /p:Configuration=Release /p:Platform=x86 %OUTPUT% %PACKAGES% %PYTHON_EXE%
3640 if errorlevel 1 goto :eof
3741)
3842
@@ -41,7 +45,16 @@ if defined BUILDX64 (
4145 ) else if not exist " %Py_OutDir% amd64\python.exe" call " %PCBUILD% build.bat" -p x64 -e
4246 if errorlevel 1 goto :eof
4347
44- %MSBUILD% " %D% make_pkg.proj" /p:Configuration=Release /p:Platform=x64 %OUTPUT% %PACKAGES%
48+ %MSBUILD% " %D% make_pkg.proj" /p:Configuration=Release /p:Platform=x64 %OUTPUT% %PACKAGES% %PYTHON_EXE%
49+ if errorlevel 1 goto :eof
50+ )
51+
52+ if defined BUILDARM32 (
53+ if defined REBUILD ( call " %PCBUILD% build.bat" -p ARM -e -r --no-tkinter
54+ ) else if not exist " %Py_OutDir% arm32\python.exe" call " %PCBUILD% build.bat" -p ARM -e --no-tkinter
55+ if errorlevel 1 goto :eof
56+
57+ %MSBUILD% " %D% make_pkg.proj" /p:Configuration=Release /p:Platform=ARM %OUTPUT% %PACKAGES% %PYTHON_EXE%
4558 if errorlevel 1 goto :eof
4659)
4760
0 commit comments