forked from drywolf/J2V8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_all.py
48 lines (30 loc) · 1.87 KB
/
build_all.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import build as b
import build_system.constants as c
class Object:
def __init__(self, **attributes):
self.__dict__.update(attributes)
# Android test
# b.execute_build({"target": c.target_android, "arch": c.arch_arm, "buildsteps": c.build_all, "node_enabled": True, "cross_compile": True})
# b.execute_build(Object(**{"target": c.target_android, "arch": c.arch_x86, "buildsteps": c.build_all, "node_enabled": True, "cross_compile": True}))
# MacOS test
# b.execute_build(c.target_macos, c.arch_x64, c.build_all, node_enabled = True, cross_compile = True)
# Win32 test
# b.execute_build(c.target_win32, c.arch_x64, c.build_all, node_enabled = True, cross_compile = False)
b.execute_build(Object(**{"target": c.target_win32, "arch": c.arch_x64, "buildsteps": "j2v8java", "node_enabled": True, "cross_compile": False}))
# b.execute_build(Object(**{"target": c.target_linux, "arch": c.arch_x64, "buildsteps": c.build_j2v8_java, "node_enabled": True, "cross_compile": True}))
# b.execute_build(Object(**{"target": c.target_android, "arch": c.arch_x86, "buildsteps": "j2v8java", "node_enabled": True, "cross_compile": False}))
#b.execute_build(c.target_macos, c.arch_x86, c.build_all, node_enabled = True, cross_compile = True)
# b.execute_build(c.target_linux, c.arch_x64, c.build_all, True, True)
# build Node.js only
# def build_njs(target, arch):
# b.execute_build(target, arch, [c.build_node_js], node_enabled = True, cross_compile = True)
# build_njs(c.target_android, c.arch_arm)
# build_njs(c.target_android, c.arch_x86)
# build_njs(c.target_linux, c.arch_x86)
# build_njs(c.target_linux, c.arch_x64)
# # needs reboot here to turn Hyper-V off if Host-OS is Windows
# build_njs(c.target_macos, c.arch_x86)
# build_njs(c.target_macos, c.arch_x64)
# # needs reboot here to switch to Windows-Containers
# build_njs(c.target_win32, c.arch_x86)
# build_njs(c.target_win32, c.arch_x64)