forked from crosswalk-project/crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xwalk_android.gypi
125 lines (125 loc) · 3.84 KB
/
xwalk_android.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
116
117
118
119
120
121
122
123
124
125
{
'targets': [
{
'target_name': 'libxwalkcore',
'type': 'shared_library',
'android_unmangled_name': 1,
'dependencies': [
'../components/components.gyp:auto_login_parser',
'../components/components.gyp:navigation_interception',
'../components/components.gyp:visitedlink_browser',
'../components/components.gyp:visitedlink_renderer',
'../components/components.gyp:web_contents_delegate_android',
'../skia/skia.gyp:skia',
'xwalk_core_jar_jni',
'xwalk_core_native_jni',
'xwalk_pak',
'xwalk_runtime',
],
'include_dirs': [
'..',
],
'ldflags': [
'-Wl,--no-fatal-warnings',
],
'sources': [
'runtime/app/android/xwalk_entry_point.cc',
'runtime/app/android/xwalk_jni_registrar.cc',
'runtime/app/android/xwalk_jni_registrar.h',
],
},
{
'target_name': 'xwalk_core_java',
'type': 'none',
'dependencies': [
'../components/components.gyp:navigation_interception_java',
'../components/components.gyp:web_contents_delegate_android_java',
'../content/content.gyp:content_java',
'../ui/ui.gyp:ui_java',
],
'variables': {
'java_in_dir': 'runtime/android/java',
'has_java_resources': 1,
'R_package': 'org.xwalk.core',
'R_package_relpath': 'org/xwalk/core',
'java_strings_grd': 'android_xwalk_strings.grd',
},
'includes': ['../build/java.gypi'],
},
{
'target_name': 'xwalk_core_jar_jni',
'type': 'none',
'variables': {
'jni_gen_package': 'xwalk',
'input_java_class': 'java/io/InputStream.class',
},
'includes': [ '../build/jar_file_jni_generator.gypi' ],
},
{
'target_name': 'xwalk_core_native_jni',
'type': 'none',
'variables': {
'jni_gen_package': 'xwalk',
},
'sources': [
'runtime/android/java/src/org/xwalk/core/AndroidProtocolHandler.java',
'runtime/android/java/src/org/xwalk/core/XWalkContentsClientBridge.java',
'runtime/android/java/src/org/xwalk/core/XWalkContent.java',
'runtime/android/java/src/org/xwalk/core/XWalkDevToolsServer.java',
'runtime/android/java/src/org/xwalk/core/XWalkSettings.java',
'runtime/android/java/src/org/xwalk/core/XWalkWebContentsDelegate.java',
],
'includes': ['../build/jni_generator.gypi'],
},
{
'target_name': 'xwalk_runtime_lib_apk',
'type': 'none',
'dependencies': [
'libxwalkcore',
# Runtime code is also built by this target.
'xwalk_core_java',
'xwalk_runtime_lib_apk_pak',
'xwalk_runtime_lib_apk_extension',
],
'variables': {
'apk_name': 'XWalkRuntimeLib',
'java_in_dir': 'runtime/android/runtimelib',
'resource_dir': 'runtime/android/runtimelib/res',
'native_lib_target': 'libxwalkcore',
'additional_input_paths': [
'<(PRODUCT_DIR)/xwalk_runtime_lib/assets/xwalk.pak',
'<(PRODUCT_DIR)/xwalk_runtime_lib/assets/js_api',
],
'asset_location': '<(ant_build_out)/xwalk_runtime_lib/assets',
},
'includes': ['../build/java_apk.gypi'],
},
{
'target_name': 'xwalk_runtime_lib_apk_pak',
'type': 'none',
'dependencies': [
'xwalk_pak',
],
'copies': [
{
'destination': '<(PRODUCT_DIR)/xwalk_runtime_lib/assets',
'files': [
'<(PRODUCT_DIR)/xwalk.pak',
],
},
],
},
{
'target_name': 'xwalk_runtime_lib_apk_extension',
'type': 'none',
'copies': [
{
'destination': '<(PRODUCT_DIR)/xwalk_runtime_lib/assets',
'files': [
'runtime/android/runtimelib/assets/js_api',
],
},
],
},
],
}