forked from crosswalk-project/crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 28
/
xwalk_android_app.gypi
115 lines (115 loc) · 3.6 KB
/
xwalk_android_app.gypi
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
'targets': [
{
'target_name': 'xwalk_app_hello_world_apk',
'type': 'none',
'dependencies': [
'xwalk_app_runtime_java',
],
'variables': {
'apk_name': 'XWalkAppHelloWorld',
'java_in_dir': 'app/android/app_hello_world',
'resource_dir': 'app/android/app_hello_world/res',
'additional_input_paths': [
'<(PRODUCT_DIR)/app_hello_world/assets/www/index.html',
'<(PRODUCT_DIR)/app_hello_world/assets/www/sampapp-icon-helloworld.png',
],
'asset_location': '<(PRODUCT_DIR)/app_hello_world/assets',
'app_manifest_version_code': '<(xwalk_version_code)',
'app_manifest_version_name': '<(xwalk_version)',
},
'copies': [
{
'destination': '<(PRODUCT_DIR)/app_hello_world/assets/www',
'files': [
'test/android/data/index.html',
'test/android/data/sampapp-icon-helloworld.png',
],
},
],
'includes': [ '../build/java_apk.gypi' ],
},
{
'target_name': 'xwalk_app_template_apk',
'type': 'none',
'dependencies': [
'xwalk_app_runtime_java',
],
'variables': {
'apk_name': 'XWalkAppTemplate',
'java_in_dir': 'app/android/app_template',
'resource_dir': 'app/android/app_template/res',
'additional_input_paths': [
'<(PRODUCT_DIR)/app_template/assets/www/index.html',
'<(PRODUCT_DIR)/app_template/assets/www/sampapp-icon-helloworld.png',
],
'asset_location': '<(PRODUCT_DIR)/app_template/assets',
},
'copies': [
{
'destination': '<(PRODUCT_DIR)/app_template/assets/www',
'files': [
'test/android/data/index.html',
'test/android/data/sampapp-icon-helloworld.png',
],
},
],
'includes': [ '../build/java_apk.gypi' ],
},
{
# Combine runtime client and activity into one jar.
'target_name': 'xwalk_app_runtime_java',
'type': 'none',
'dependencies': [
'xwalk_core_java',
],
'variables': {
'java_in_dir': 'app/android/runtime_activity',
'additional_src_dirs': [
'app/android/runtime_client',
],
},
'includes': ['../build/java.gypi'],
},
{
'target_name': 'xwalk_app_template',
'type': 'none',
'dependencies': [
'xwalk_app_runtime_java',
'xwalk_core_library',
'xwalk_shared_library',
],
'actions': [
{
'action_name': 'prepare_xwalk_app_template',
'message': 'Generating XWalk App Template.',
'inputs': [
'build/android/generate_app_packaging_tool.py',
'<@(version_files)',
],
'outputs': [
'<(stamp)',
],
'variables': {
'stamp': '<(INTERMEDIATE_DIR)/stamp',
'version_files': [
'<(DEPTH)/xwalk/API_VERSION',
'<(DEPTH)/xwalk/VERSION',
],
},
'action': [
'python', 'build/android/generate_app_packaging_tool.py',
'--android-template', '<(DEPTH)/xwalk/app/android/app_template',
'--core-library-dir', '<(PRODUCT_DIR)/xwalk_core_library',
'--extra-files', '<(version_files)',
'--output-dir', '<(PRODUCT_DIR)/xwalk_app_template',
'--shared-library-dir', '<(PRODUCT_DIR)/xwalk_shared_library',
'--stamp', '<(stamp)',
'--xwalk-runtime-jar',
'<(PRODUCT_DIR)/lib.java/xwalk_app_runtime_java.jar',
],
},
],
},
],
}