-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
101 lines (84 loc) · 2.69 KB
/
Makefile
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
ROOT_DIR=${PWD}
.DEFAULT_GOAL := help
.PHONY: build nativium
# tasks
help:
@echo "Type: make [rule]. Available options are:"
@echo ""
@echo "- help"
@echo "- clean"
@echo "- nativium"
@echo "- custom-install"
@echo "- format"
@echo "- gluecode"
@echo ""
@echo "- build-macos"
@echo "- build-linux"
@echo "- build-windows"
@echo "- build-wasm"
@echo "- build-ios"
@echo "- build-android"
@echo ""
@echo "- run-macos"
@echo "- run-linux"
@echo "- run-windows"
@echo "- run-wasm"
clean:
@echo "Cleaning..."
@rm -rf nativium
@rm -rf .DS_Store
@rm -rf *.pyc
@rm -rf Thumbs.db
@echo "OK"
nativium:
@rm -rf nativium
@git clone https://github.com/nativium/nativium.git nativium
custom-install:
@cd nativium && python3 nativium.py custom install --path=${ROOT_DIR}/custom
build-macos:
@make custom-install
@cd nativium && python3 nativium.py target macos setup
@cd nativium && python3 nativium.py target macos build
@cd nativium && python3 nativium.py target macos package
build-linux:
@make custom-install
@cd nativium && python3 nativium.py target linux setup
@cd nativium && python3 nativium.py target linux build
@cd nativium && python3 nativium.py target linux package
build-windows:
@make custom-install
@cd nativium && python3 nativium.py target windows setup
@cd nativium && python3 nativium.py target windows build
@cd nativium && python3 nativium.py target windows package
build-wasm:
@make custom-install
@cd nativium && python3 nativium.py target wasm setup
@cd nativium && python3 nativium.py target wasm build
@cd nativium && python3 nativium.py target wasm package
build-ios:
@make custom-install
@cd nativium && python3 nativium.py target ios setup
@cd nativium && python3 nativium.py target ios build
@cd nativium && python3 nativium.py target ios package --no-framework
@cd nativium && python3 nativium.py app ios pods
@cd nativium && python3 nativium.py app ios build
build-android:
@make custom-install
@cd nativium && python3 nativium.py target android setup
@cd nativium && python3 nativium.py target android build
@cd nativium && python3 nativium.py target android package
@cd nativium && python3 nativium.py app android build
run-macos:
@cd nativium && python3 nativium.py target macos run --build=release
run-linux:
@cd nativium && python3 nativium.py target linux run --build=release
run-windows:
@cd nativium && python3 nativium.py target windows run --build=release
run-wasm:
@cd nativium && python3 nativium.py target wasm serve --build=release
format:
@cd nativium && python3 nativium.py code format --path=../custom
gluecode:
@make custom-install
@cd nativium && python3 nativium.py gluecode setup
@cd nativium && python3 nativium.py gluecode generate