@@ -6,20 +6,24 @@ if "%Py_OutDir%"=="" set Py_OutDir=%PCBUILD%
6
6
7
7
set BUILDX86 =
8
8
set BUILDX64 =
9
+ set BUILDARM32 =
9
10
set REBUILD =
10
11
set OUTPUT =
11
12
set PACKAGES =
13
+ set PYTHON_EXE =
12
14
13
15
:CheckOpts
14
16
if " %~1 " EQU " -h" goto Help
15
17
if " %~1 " EQU " -x86" (set BUILDX86=1) && shift && goto CheckOpts
16
18
if " %~1 " EQU " -x64" (set BUILDX64=1) && shift && goto CheckOpts
19
+ if " %~1 " EQU " -arm32" (set BUILDARM32=1) && shift && goto CheckOpts
17
20
if " %~1 " EQU " -r" (set REBUILD=-r) && shift && goto CheckOpts
18
21
if " %~1 " EQU " -o" (set OUTPUT=" /p:OutputPath=%~2 " ) && shift && shift && goto CheckOpts
19
22
if " %~1 " EQU " --out" (set OUTPUT=" /p:OutputPath=%~2 " ) && shift && shift && goto CheckOpts
20
23
if " %~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
21
25
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)
23
27
24
28
call " %D% ..\msi\get_externals.bat"
25
29
call " %PCBUILD% find_msbuild.bat" %MSBUILD%
@@ -32,7 +36,7 @@ if defined BUILDX86 (
32
36
) else if not exist " %Py_OutDir% win32\python.exe" call " %PCBUILD% build.bat" -e
33
37
if errorlevel 1 goto :eof
34
38
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%
36
40
if errorlevel 1 goto :eof
37
41
)
38
42
@@ -41,7 +45,16 @@ if defined BUILDX64 (
41
45
) else if not exist " %Py_OutDir% amd64\python.exe" call " %PCBUILD% build.bat" -p x64 -e
42
46
if errorlevel 1 goto :eof
43
47
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%
45
58
if errorlevel 1 goto :eof
46
59
)
47
60
0 commit comments