-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
76 lines (63 loc) · 2.15 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
MODE = release
GPROF_FLAG = 0
RELEASE_FLAG = 0
PROFILE_FLAG = 0
V8_SYMBOLS = 0
# Enable DEBUG mode and JavaScript profiling but not Gprof
debug: GPROF_FLAG = 0
debug: RELEASE_FLAG = 0
debug: PROFILE_FLAG = 1
debug: MODE = debug
debug: all
# This version links with libv8_g.a to allow for better tracing of V8-related crashes
v8symbols: V8_SYMBOLS = 1
v8symbols: debug
# Enable RELEASE mode and Gprof but not JavaScript profiling
gprof: GPROF_FLAG = 1
gprof: RELEASE_FLAG = 1
gprof: PROFILE_FLAG = 0
gprof: MODE = release
gprof: all
# Enable RELEASE mode and Gprof and also JavaScript profiling
jsprof: GPROF_FLAG = 1
jsprof: RELEASE_FLAG = 1
jsprof: PROFILE_FLAG = 1
jsprof: MODE = release
jsprof: all
# Enable RELEASE mode but not Gprof or JavaScript profiling
release: GPROF_FLAG = 0
release: RELEASE_FLAG = 1
release: PROFILE_FLAG = 0
release: MODE = release
release: all
# update the proper projects / subprojects, and update any plugin projects
# this will also build the native code and TeaLeaf
all:
android update project -p TeaLeaf --target android-19 --subprojects
android update project -p GCTestApp --target android-19 --subprojects
ndk-build -C TeaLeaf -Bj8 RELEASE=$(RELEASE_FLAG) JSPROF=$(PROFILE_FLAG) GPROF=${GPROF_FLAG} V8SYMBOLS=${V8_SYMBOLS}
ant -f TeaLeaf/build.xml $(MODE)
# install plugins for the test app (uninstalling them from Tealeaf)
# then build and install the test app
install:
adb uninstall com.tealeaf.test_app
cp GCTestApp/AndroidManifest.xml GCTestApp/.AndroidManifest.xml
ant -f GCTestApp/build.xml debug
ant -f GCTestApp/build.xml installd
cp GCTestApp/.AndroidManifest.xml GCTestApp/AndroidManifest.xml
adb shell am start -n com.tealeaf.test_app/com.tealeaf.test_app.TestAppActivity
# cleans the TeaLeaf native code as well as supporting project
# also cleans plugins
clean:
ndk-build -C TeaLeaf clean
ant -f TeaLeaf/build.xml clean
ant -f GCTestApp/build.xml clean
analyze:
./scripts/analyze.sh
test:
bash ./scripts/run_tests.sh
#updates requried projects and plugins
setup:
node checkSymlinks
android update project -p TeaLeaf --target android-19 --subprojects
android update project -p GCTestApp --target android-19 --subprojects