-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
executable file
·29 lines (22 loc) · 1.65 KB
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import sys
import subprocess
version_arg = "version=4.1"
if "version=4.0" in sys.argv:
version_arg = "version=4.0"
if "platform=windows" in sys.argv:
subprocess.run("scons platform=windows bits=32 target=release generate_bindings=true " + version_arg, shell = True)
subprocess.run("scons platform=windows bits=64 target=release generate_bindings=true " + version_arg, shell = True)
elif "platform=linux" in sys.argv:
subprocess.run("scons platform=linux bits=32 target=release generate_bindings=true " + version_arg, shell = True)
subprocess.run("scons platform=linux bits=64 target=release generate_bindings=true " + version_arg, shell = True)
elif "platform=osx" in sys.argv:
subprocess.run("scons platform=osx bits=64 target=release generate_bindings=true " + version_arg, shell = True)
elif "platform=android" in sys.argv:
subprocess.run("scons platform=android android_arch=armv7 target=release generate_bindings=true " + version_arg, shell = True)
subprocess.run("scons platform=android android_arch=arm64v8 target=release generate_bindings=true " + version_arg, shell = True)
subprocess.run("scons platform=android android_arch=x86 target=release generate_bindings=true " + version_arg, shell = True)
subprocess.run("scons platform=android android_arch=x86_64 target=release generate_bindings=true " + version_arg, shell = True)
elif "platform=ios" in sys.argv:
subprocess.run("scons platform=ios ios_arch=arm64 target=release generate_bindings=true " + version_arg, shell = True)
elif "platform=web" in sys.argv:
subprocess.run("scons platform=web bits=32 target=release generate_bindings=true " + version_arg, shell = True)