OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
5 'includes': [ | 5 'includes': [ |
6 '../../chrome/chrome_android_paks.gypi', # Included for the list of pak reso
urces. | 6 '../../chrome/chrome_android_paks.gypi', # Included for the list of pak reso
urces. |
7 '../../build/util/version.gypi' | 7 '../../build/util/version.gypi' |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'chromium_code': 1, | 10 'chromium_code': 1, |
11 'package_name': 'chrome_public_apk', | 11 'package_name': 'chrome_public_apk', |
12 'manifest_package': 'org.chromium.chrome', | 12 'manifest_package': 'org.chromium.chrome', |
13 'chrome_public_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public_apk_
manifest/AndroidManifest.xml', | 13 'chrome_public_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public_apk_
manifest/AndroidManifest.xml', |
14 'chrome_public_test_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public
_test_apk_manifest/AndroidManifest.xml', | 14 'chrome_public_test_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public
_test_apk_manifest/AndroidManifest.xml', |
15 'chrome_java_dir': 'java_staging', | |
16 'chrome_java_tests_dir': 'javatests', | 15 'chrome_java_tests_dir': 'javatests', |
17 'chrome_java_test_support_dir': '../test/android/javatests_staging', | 16 'chrome_java_test_support_dir': '../test/android/javatests_staging', |
18 'chrome_native_sources_dir': '../browser/android/', | 17 'chrome_native_sources_dir': '../browser/android/', |
19 # This list is shared with GN. | 18 # This list is shared with GN. |
20 # Defines a list of source files should be present in the open-source | 19 # Defines a list of source files should be present in the open-source |
21 # chrome-apk but not in the published static_library which is included in th
e | 20 # chrome-apk but not in the published static_library which is included in th
e |
22 # real chrome for android. | 21 # real chrome for android. |
23 'chrome_public_app_native_sources': [ | 22 'chrome_public_app_native_sources': [ |
24 '<(chrome_native_sources_dir)/chrome_entry_point.cc', | 23 '<(chrome_native_sources_dir)/chrome_entry_point.cc', |
25 '<(chrome_native_sources_dir)/chrome_main_delegate_staging_android_initial
izer.cc', | 24 '<(chrome_native_sources_dir)/chrome_main_delegate_staging_android_initial
izer.cc', |
26 '<(chrome_native_sources_dir)/chrome_staging_jni_onload.cc', | 25 '<(chrome_native_sources_dir)/chrome_staging_jni_onload.cc', |
27 '<(chrome_native_sources_dir)/chrome_staging_jni_onload.h', | 26 '<(chrome_native_sources_dir)/chrome_staging_jni_onload.h', |
28 ], | 27 ], |
29 }, | 28 }, |
30 'targets': [ | 29 'targets': [ |
31 { | 30 { |
32 # TODO(newt): delete this once all references are gone. | 31 # TODO(newt): delete this once all references are gone. |
33 'target_name': 'libchrome_staging', | 32 'target_name': 'libchrome_staging', |
34 'type': 'none', | 33 'type': 'none', |
35 }, | 34 }, |
36 { | 35 { |
37 # GN: //chrome/android:chrome_staging_java | 36 # TODO(newt): delete this once all references are gone. |
38 'target_name': 'chrome_staging_java', | 37 'target_name': 'chrome_staging_java', |
39 'type': 'none', | 38 'type': 'none', |
40 'variables': { | |
41 'java_in_dir': '<(chrome_java_dir)', | |
42 }, | |
43 'dependencies': [ | |
44 'custom_tabs_service_aidl', | |
45 '<(DEPTH)/base/base.gyp:base_java', | |
46 '<(DEPTH)/chrome/chrome.gyp:chrome_java', | |
47 '<(DEPTH)/chrome/chrome.gyp:document_tab_model_info_proto_java', | |
48 '<(DEPTH)/components/components.gyp:app_restrictions_resources', | |
49 '<(DEPTH)/components/components.gyp:navigation_interception_java', | |
50 '<(DEPTH)/components/components.gyp:service_tab_launcher', | |
51 '<(DEPTH)/components/components.gyp:web_contents_delegate_android_java', | |
52 '<(DEPTH)/content/content.gyp:content_java', | |
53 '<(DEPTH)/media/media.gyp:media_java', | |
54 '<(DEPTH)/net/net.gyp:net_java', | |
55 '<(DEPTH)/third_party/android_protobuf/android_protobuf.gyp:protobuf_nan
o_javalib', | |
56 '<(DEPTH)/third_party/android_tools/android_tools.gyp:android_support_v1
3_javalib', | |
57 '<(DEPTH)/third_party/android_tools/android_tools.gyp:android_support_v7
_appcompat_javalib', | |
58 '<(DEPTH)/third_party/android_tools/android_tools.gyp:android_support_v7
_mediarouter_javalib', | |
59 '<(DEPTH)/third_party/android_tools/android_tools.gyp:android_support_v7
_recyclerview_javalib', | |
60 '<(DEPTH)/third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinval
idation_javalib', | |
61 '<(DEPTH)/third_party/jsr-305/jsr-305.gyp:jsr_305_javalib', | |
62 '<(DEPTH)/ui/android/ui_android.gyp:ui_java', | |
63 ], | |
64 'conditions': [ | |
65 ['configuration_policy != 1', { | |
66 'dependencies!': [ | |
67 '<(DEPTH)/components/components.gyp:app_restrictions_resources', | |
68 ], | |
69 }], | |
70 ], | |
71 'includes': [ '../../build/java.gypi' ], | |
72 }, | 39 }, |
73 { | 40 { |
74 # GN: //chrome/test/android:chrome_staging_test_support_java | 41 # GN: //chrome/test/android:chrome_staging_test_support_java |
75 'target_name': 'chrome_staging_test_support_java', | 42 'target_name': 'chrome_staging_test_support_java', |
76 'type': 'none', | 43 'type': 'none', |
77 'variables': { | 44 'variables': { |
78 'java_in_dir': '<(chrome_java_test_support_dir)', | 45 'java_in_dir': '<(chrome_java_test_support_dir)', |
79 }, | 46 }, |
80 'dependencies': [ | 47 'dependencies': [ |
81 'chrome_staging_java', | |
82 '<(DEPTH)/base/base.gyp:base_java', | 48 '<(DEPTH)/base/base.gyp:base_java', |
83 '<(DEPTH)/base/base.gyp:base_java_test_support', | 49 '<(DEPTH)/base/base.gyp:base_java_test_support', |
84 '<(DEPTH)/chrome/chrome.gyp:chrome_java', | 50 '<(DEPTH)/chrome/chrome.gyp:chrome_java', |
85 '<(DEPTH)/chrome/chrome.gyp:chrome_java_test_support', | 51 '<(DEPTH)/chrome/chrome.gyp:chrome_java_test_support', |
86 '<(DEPTH)/content/content_shell_and_tests.gyp:content_java_test_support'
, | 52 '<(DEPTH)/content/content_shell_and_tests.gyp:content_java_test_support'
, |
87 '<(DEPTH)/net/net.gyp:net_java', | 53 '<(DEPTH)/net/net.gyp:net_java', |
88 '<(DEPTH)/net/net.gyp:net_java_test_support', | 54 '<(DEPTH)/net/net.gyp:net_java_test_support', |
89 '<(DEPTH)/sync/sync.gyp:sync_java_test_support', | 55 '<(DEPTH)/sync/sync.gyp:sync_java_test_support', |
90 ], | 56 ], |
91 'includes': [ '../../build/java.gypi' ], | 57 'includes': [ '../../build/java.gypi' ], |
92 }, | 58 }, |
93 { | 59 { |
94 # GN: //chrome/android:custom_tabs_service_aidl | 60 # GN: //chrome/android:custom_tabs_service_aidl |
95 'target_name': 'custom_tabs_service_aidl', | 61 'target_name': 'custom_tabs_service_aidl', |
96 'type': 'none', | 62 'type': 'none', |
97 'variables': { | 63 'variables': { |
98 'aidl_interface_file': '<(chrome_java_dir)/src/org/chromium/chrome/brows
er/customtabs/common.aidl', | 64 'aidl_interface_file': 'java/src/org/chromium/chrome/browser/customtabs/
common.aidl', |
99 'aidl_import_include': '<(chrome_java_dir)/src/org/chromium/chrome/brows
er/customtabs', | 65 'aidl_import_include': 'java/src/org/chromium/chrome/browser/customtabs'
, |
100 }, | 66 }, |
101 'sources': [ | 67 'sources': [ |
102 '<(chrome_java_dir)/src/org/chromium/chrome/browser/customtabs/ICustomTa
bsConnectionCallback.aidl', | 68 'java/src/org/chromium/chrome/browser/customtabs/ICustomTabsConnectionCa
llback.aidl', |
103 '<(chrome_java_dir)/src/org/chromium/chrome/browser/customtabs/ICustomTa
bsConnectionService.aidl', | 69 'java/src/org/chromium/chrome/browser/customtabs/ICustomTabsConnectionSe
rvice.aidl', |
104 ], | 70 ], |
105 'includes': [ '../../build/java_aidl.gypi' ], | 71 'includes': [ '../../build/java_aidl.gypi' ], |
106 }, | 72 }, |
107 { | 73 { |
108 # GN: //chrome/android:chrome_public_template_resources | 74 # GN: //chrome/android:chrome_public_template_resources |
109 'target_name': 'chrome_public_template_resources', | 75 'target_name': 'chrome_public_template_resources', |
110 'type': 'none', | 76 'type': 'none', |
111 'variables': { | 77 'variables': { |
112 'jinja_inputs_base_dir': 'java/res_template', | 78 'jinja_inputs_base_dir': 'java/res_template', |
113 'jinja_inputs': [ | 79 'jinja_inputs': [ |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 'includes': [ '../../build/android/jinja_template.gypi' ], | 153 'includes': [ '../../build/android/jinja_template.gypi' ], |
188 }, | 154 }, |
189 { | 155 { |
190 # GN: //chrome/android:chrome_public_apk | 156 # GN: //chrome/android:chrome_public_apk |
191 'target_name': 'chrome_public_apk', | 157 'target_name': 'chrome_public_apk', |
192 'type': 'none', | 158 'type': 'none', |
193 'variables': { | 159 'variables': { |
194 'android_manifest_path': '<(chrome_public_apk_manifest)', | 160 'android_manifest_path': '<(chrome_public_apk_manifest)', |
195 'apk_name': 'ChromePublic', | 161 'apk_name': 'ChromePublic', |
196 'native_lib_target': 'libchrome_public', | 162 'native_lib_target': 'libchrome_public', |
197 'java_in_dir': '<(chrome_java_dir)', | 163 'java_in_dir': 'java', |
198 'conditions': [ | 164 'conditions': [ |
199 # Only attempt loading the library from the APK for 64 bit devices | 165 # Only attempt loading the library from the APK for 64 bit devices |
200 # until the number of 32 bit devices which don't support this | 166 # until the number of 32 bit devices which don't support this |
201 # approach falls to a minimal level - http://crbug.com/390618. | 167 # approach falls to a minimal level - http://crbug.com/390618. |
202 ['component != "shared_library" and profiling==0 and (target_arch == "
arm64" or target_arch == "x86_64")', { | 168 ['component != "shared_library" and profiling==0 and (target_arch == "
arm64" or target_arch == "x86_64")', { |
203 'load_library_from_zip_file': '<(chrome_apk_load_library_from_zip)', | 169 'load_library_from_zip_file': '<(chrome_apk_load_library_from_zip)', |
204 'load_library_from_zip': '<(chrome_apk_load_library_from_zip)', | 170 'load_library_from_zip': '<(chrome_apk_load_library_from_zip)', |
205 }], | 171 }], |
206 ], | 172 ], |
207 }, | 173 }, |
208 'dependencies': [ | 174 'dependencies': [ |
209 'chrome_android_paks_copy', | 175 'chrome_android_paks_copy', |
210 'chrome_public_template_resources', | 176 'chrome_public_template_resources', |
211 'chrome_staging_java', | 177 '../chrome.gyp:chrome_java', |
212 ], | 178 ], |
213 'includes': [ 'chrome_apk.gypi' ], | 179 'includes': [ 'chrome_apk.gypi' ], |
214 }, | 180 }, |
215 { | 181 { |
216 # GN: N/A | 182 # GN: N/A |
217 # chrome_public_apk creates a .jar as a side effect. Any java targets | 183 # chrome_public_apk creates a .jar as a side effect. Any java targets |
218 # that need that .jar in their classpath should depend on this target, | 184 # that need that .jar in their classpath should depend on this target, |
219 'target_name': 'chrome_public_apk_java', | 185 'target_name': 'chrome_public_apk_java', |
220 'type': 'none', | 186 'type': 'none', |
221 'dependencies': [ | 187 'dependencies': [ |
(...skipping 24 matching lines...) Expand all Loading... |
246 { | 212 { |
247 # GN: None. | 213 # GN: None. |
248 # This target is for sharing tests between both upstream and internal | 214 # This target is for sharing tests between both upstream and internal |
249 # trees until sufficient test coverage is upstream. | 215 # trees until sufficient test coverage is upstream. |
250 'target_name': 'chrome_shared_test_java', | 216 'target_name': 'chrome_shared_test_java', |
251 'type': 'none', | 217 'type': 'none', |
252 'variables': { | 218 'variables': { |
253 'java_in_dir': '<(chrome_java_tests_dir)', | 219 'java_in_dir': '<(chrome_java_tests_dir)', |
254 }, | 220 }, |
255 'dependencies': [ | 221 'dependencies': [ |
256 'chrome_staging_java', | |
257 'chrome_staging_test_support_java', | 222 'chrome_staging_test_support_java', |
258 '<(DEPTH)/base/base.gyp:base_java', | 223 '<(DEPTH)/base/base.gyp:base_java', |
259 '<(DEPTH)/base/base.gyp:base_java_test_support', | 224 '<(DEPTH)/base/base.gyp:base_java_test_support', |
260 '<(DEPTH)/chrome/chrome.gyp:chrome_java', | 225 '<(DEPTH)/chrome/chrome.gyp:chrome_java', |
261 '<(DEPTH)/chrome/chrome.gyp:chrome_java_test_support', | 226 '<(DEPTH)/chrome/chrome.gyp:chrome_java_test_support', |
262 '<(DEPTH)/components/components.gyp:web_contents_delegate_android_java', | 227 '<(DEPTH)/components/components.gyp:web_contents_delegate_android_java', |
263 '<(DEPTH)/content/content_shell_and_tests.gyp:content_java_test_support'
, | 228 '<(DEPTH)/content/content_shell_and_tests.gyp:content_java_test_support'
, |
264 '<(DEPTH)/net/net.gyp:net_java', | 229 '<(DEPTH)/net/net.gyp:net_java', |
265 '<(DEPTH)/net/net.gyp:net_java_test_support', | 230 '<(DEPTH)/net/net.gyp:net_java_test_support', |
266 '<(DEPTH)/sync/sync.gyp:sync_java_test_support', | 231 '<(DEPTH)/sync/sync.gyp:sync_java_test_support', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 ], | 272 ], |
308 }, | 273 }, |
309 ], | 274 ], |
310 } | 275 } |
311 | 276 |
312 # Local Variables: | 277 # Local Variables: |
313 # tab-width:2 | 278 # tab-width:2 |
314 # indent-tabs-mode:nil | 279 # indent-tabs-mode:nil |
315 # End: | 280 # End: |
316 # vim: set expandtab tabstop=2 shiftwidth=2: | 281 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |