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 'sync_shell_manifest_package': 'org.chromium.chrome.sync_shell', |
13 'chrome_public_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public_apk_
manifest/AndroidManifest.xml', | 14 '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', | 15 'chrome_public_test_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_public
_test_apk_manifest/AndroidManifest.xml', |
| 16 'chrome_sync_shell_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_sh
ell_apk_manifest/AndroidManifest.xml', |
| 17 'chrome_sync_shell_test_apk_manifest': '<(SHARED_INTERMEDIATE_DIR)/chrome_sy
nc_shell_test_apk_manifest/AndroidManifest.xml', |
15 # This list is shared with GN. | 18 # This list is shared with GN. |
16 # 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 |
17 # 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 |
18 # real chrome for android. | 21 # real chrome for android. |
19 'chrome_public_app_native_sources': [ | 22 'chrome_public_app_native_sources': [ |
20 '../browser/android/chrome_entry_point.cc', | 23 '../browser/android/chrome_entry_point.cc', |
21 '../browser/android/chrome_main_delegate_staging_android_initializer.cc', | 24 '../browser/android/chrome_main_delegate_staging_android_initializer.cc', |
22 ], | 25 ], |
23 }, | 26 }, |
24 'targets': [ | 27 'targets': [ |
(...skipping 28 matching lines...) Expand all Loading... |
53 }, | 56 }, |
54 'all_dependent_settings': { | 57 'all_dependent_settings': { |
55 'variables': { | 58 'variables': { |
56 'additional_input_paths': ['<(jinja_outputs_zip)'], | 59 'additional_input_paths': ['<(jinja_outputs_zip)'], |
57 'dependencies_res_zip_paths': ['<(jinja_outputs_zip)'], | 60 'dependencies_res_zip_paths': ['<(jinja_outputs_zip)'], |
58 }, | 61 }, |
59 }, | 62 }, |
60 'includes': [ '../../build/android/jinja_template.gypi' ], | 63 'includes': [ '../../build/android/jinja_template.gypi' ], |
61 }, | 64 }, |
62 { | 65 { |
63 # GN: //chrome/android:chrome_public | 66 # TODO(pvalenzuela): Implement this target with GN: |
64 'target_name': 'libchrome_public', | 67 # http://crbug.com/475612 |
65 'type': 'shared_library', | 68 'target_name': 'chrome_sync_shell_template_resources', |
| 69 'type': 'none', |
| 70 'variables': { |
| 71 'jinja_inputs_base_dir': 'java/res_template', |
| 72 'jinja_inputs': [ |
| 73 '<(jinja_inputs_base_dir)/xml/searchable.xml', |
| 74 '<(jinja_inputs_base_dir)/xml/syncadapter.xml', |
| 75 ], |
| 76 'jinja_outputs_zip': '<(PRODUCT_DIR)/res.java/<(_target_name).zip', |
| 77 'jinja_variables': [ |
| 78 'manifest_package=<(sync_shell_manifest_package)', |
| 79 ], |
| 80 }, |
| 81 'all_dependent_settings': { |
| 82 'variables': { |
| 83 'additional_input_paths': ['<(jinja_outputs_zip)'], |
| 84 'dependencies_res_zip_paths': ['<(jinja_outputs_zip)'], |
| 85 }, |
| 86 }, |
| 87 'includes': [ '../../build/android/jinja_template.gypi' ], |
| 88 }, |
| 89 { |
| 90 # The base library used in both ChromePublic and ChromeSyncShell. |
| 91 'target_name': 'libchrome_public_base', |
| 92 'type': 'none', |
66 'dependencies': [ | 93 'dependencies': [ |
67 '../../chrome/chrome.gyp:chrome_android_core', | 94 '../../chrome/chrome.gyp:chrome_android_core', |
68 ], | 95 ], |
69 'include_dirs': [ | 96 'include_dirs': [ |
70 '../..', | 97 '../..', |
71 ], | 98 ], |
72 'sources': [ | 99 'direct_dependent_settings': { |
73 '<@(chrome_public_app_native_sources)', | 100 'ldflags': [ |
74 ], | 101 # Some android targets still depend on --gc-sections to link. |
75 'ldflags': [ | 102 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). |
76 # Some android targets still depend on --gc-sections to link. | 103 '-Wl,--gc-sections', |
77 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). | 104 ], |
78 '-Wl,--gc-sections', | 105 }, |
79 ], | |
80 'conditions': [ | 106 'conditions': [ |
81 # TODO(yfriedman): move this DEP to chrome_android_core to be shared | 107 # TODO(yfriedman): move this DEP to chrome_android_core to be shared |
82 # between internal/external. | 108 # between internal/external. |
83 ['cld_version==2', { | 109 ['cld_version==2', { |
84 'dependencies': [ | 110 'dependencies': [ |
85 '../../third_party/cld_2/cld_2.gyp:cld2_dynamic', | 111 '../../third_party/cld_2/cld_2.gyp:cld2_dynamic', |
86 ], | 112 ], |
87 }], | 113 }], |
88 # conditions for order_text_section | 114 # conditions for order_text_section |
89 # Cygprofile methods need to be linked into the instrumented build. | 115 # Cygprofile methods need to be linked into the instrumented build. |
90 ['order_profiling!=0', { | 116 ['order_profiling!=0', { |
91 'conditions': [ | 117 'conditions': [ |
92 ['OS=="android"', { | 118 ['OS=="android"', { |
93 'dependencies': [ '../../tools/cygprofile/cygprofile.gyp:cygprofil
e' ], | 119 'dependencies': [ '../../tools/cygprofile/cygprofile.gyp:cygprofil
e' ], |
94 }], | 120 }], |
95 ], | 121 ], |
96 }], # order_profiling!=0 | 122 }], # order_profiling!=0 |
97 ['use_allocator!="none"', { | 123 ['use_allocator!="none"', { |
98 'dependencies': [ | 124 'dependencies': [ |
99 '../../base/allocator/allocator.gyp:allocator', | 125 '../../base/allocator/allocator.gyp:allocator', |
100 ], | 126 ], |
101 }], | 127 }], |
102 ], | 128 ], |
103 }, | 129 }, |
104 { | 130 { |
| 131 # GN: //chrome/android:chrome_public |
| 132 'target_name': 'libchrome_public', |
| 133 'type': 'shared_library', |
| 134 'sources': [ |
| 135 '<@(chrome_public_app_native_sources)', |
| 136 ], |
| 137 'dependencies': [ |
| 138 'libchrome_public_base', |
| 139 ], |
| 140 }, |
| 141 { |
| 142 # TODO(pvalenzuela): Implement this target with GN: |
| 143 # http://crbug.com/475612 |
| 144 'target_name': 'libchrome_sync_shell', |
| 145 'type': 'shared_library', |
| 146 'sources': [ |
| 147 '../browser/android/chrome_entry_point.cc', |
| 148 '../browser/android/chrome_sync_shell_main_delegate_initializer.cc', |
| 149 '../browser/android/chrome_sync_shell_main_delegate.h', |
| 150 '../browser/android/chrome_sync_shell_main_delegate.cc', |
| 151 ], |
| 152 'dependencies': [ |
| 153 'libchrome_public_base', |
| 154 '../../sync/sync.gyp:sync', |
| 155 '../../sync/sync.gyp:test_support_sync_fake_server_android', |
| 156 ], |
| 157 }, |
| 158 { |
105 # GN: //chrome/android:chrome_public_apk_manifest | 159 # GN: //chrome/android:chrome_public_apk_manifest |
106 'target_name': 'chrome_public_manifest', | 160 'target_name': 'chrome_public_manifest', |
107 'type': 'none', | 161 'type': 'none', |
108 'variables': { | 162 'variables': { |
109 'jinja_inputs': ['java/AndroidManifest.xml'], | 163 'jinja_inputs': ['java/AndroidManifest.xml'], |
110 'jinja_output': '<(chrome_public_apk_manifest)', | 164 'jinja_output': '<(chrome_public_apk_manifest)', |
111 'jinja_variables': [ | 165 'jinja_variables': [ |
112 'channel=<(android_channel)', | 166 'channel=<(android_channel)', |
113 'configuration_policy=<(configuration_policy)', | 167 'configuration_policy=<(configuration_policy)', |
114 'manifest_package=<(manifest_package)', | 168 'manifest_package=<(manifest_package)', |
115 'min_sdk_version=16', | 169 'min_sdk_version=16', |
116 'target_sdk_version=23', | 170 'target_sdk_version=23', |
117 ], | 171 ], |
118 }, | 172 }, |
119 'includes': [ '../../build/android/jinja_template.gypi' ], | 173 'includes': [ '../../build/android/jinja_template.gypi' ], |
120 }, | 174 }, |
121 { | 175 { |
| 176 # TODO(pvalenzuela): Implement this target with GN: |
| 177 # http://crbug.com/475612 |
| 178 'target_name': 'chrome_sync_shell_manifest', |
| 179 'type': 'none', |
| 180 'variables': { |
| 181 'jinja_inputs': ['java/AndroidManifest.xml'], |
| 182 'jinja_output': '<(chrome_sync_shell_apk_manifest)', |
| 183 'jinja_variables': [ |
| 184 'channel=<(android_channel)', |
| 185 'configuration_policy=<(configuration_policy)', |
| 186 'manifest_package=<(sync_shell_manifest_package)', |
| 187 'min_sdk_version=16', |
| 188 'target_sdk_version=22', |
| 189 ], |
| 190 }, |
| 191 'includes': [ '../../build/android/jinja_template.gypi' ], |
| 192 }, |
| 193 { |
122 # GN: //chrome/android:chrome_public_apk | 194 # GN: //chrome/android:chrome_public_apk |
123 'target_name': 'chrome_public_apk', | 195 'target_name': 'chrome_public_apk', |
124 'type': 'none', | 196 'type': 'none', |
125 'variables': { | 197 'variables': { |
126 'android_manifest_path': '<(chrome_public_apk_manifest)', | 198 'android_manifest_path': '<(chrome_public_apk_manifest)', |
127 'apk_name': 'ChromePublic', | 199 'apk_name': 'ChromePublic', |
128 'native_lib_target': 'libchrome_public', | 200 'native_lib_target': 'libchrome_public', |
129 'java_in_dir': 'java', | 201 'java_in_dir': 'java', |
130 'resource_dir': '../../chrome/android/java/res_chromium', | 202 'resource_dir': '../../chrome/android/java/res_chromium', |
131 'conditions': [ | 203 'conditions': [ |
(...skipping 18 matching lines...) Expand all Loading... |
150 # chrome_public_apk creates a .jar as a side effect. Any java targets | 222 # chrome_public_apk creates a .jar as a side effect. Any java targets |
151 # that need that .jar in their classpath should depend on this target, | 223 # that need that .jar in their classpath should depend on this target, |
152 'target_name': 'chrome_public_apk_java', | 224 'target_name': 'chrome_public_apk_java', |
153 'type': 'none', | 225 'type': 'none', |
154 'dependencies': [ | 226 'dependencies': [ |
155 'chrome_public_apk', | 227 'chrome_public_apk', |
156 ], | 228 ], |
157 'includes': [ '../../build/apk_fake_jar.gypi' ], | 229 'includes': [ '../../build/apk_fake_jar.gypi' ], |
158 }, | 230 }, |
159 { | 231 { |
| 232 # TODO(pvalenzuela): Implement this target with GN: |
| 233 # http://crbug.com/475612 |
| 234 'target_name': 'chrome_sync_shell_apk', |
| 235 'type': 'none', |
| 236 'variables': { |
| 237 'android_manifest_path': '<(chrome_sync_shell_apk_manifest)', |
| 238 'apk_name': 'ChromeSyncShell', |
| 239 'native_lib_target': 'libchrome_sync_shell', |
| 240 'java_in_dir': 'java', |
| 241 'conditions': [ |
| 242 # Only attempt loading the library from the APK for 64 bit devices |
| 243 # until the number of 32 bit devices which don't support this |
| 244 # approach falls to a minimal level - http://crbug.com/390618. |
| 245 ['component != "shared_library" and profiling==0 and (target_arch == "
arm64" or target_arch == "x86_64")', { |
| 246 'load_library_from_zip_file': '<(chrome_apk_load_library_from_zip)', |
| 247 'load_library_from_zip': '<(chrome_apk_load_library_from_zip)', |
| 248 }], |
| 249 ], |
| 250 }, |
| 251 'dependencies': [ |
| 252 'chrome_android_paks_copy', |
| 253 'chrome_sync_shell_template_resources', |
| 254 '../chrome.gyp:chrome_java', |
| 255 # This exists here because com.google.protobuf.nano is needed in tests, |
| 256 # but that code is stripped out via proguard. Adding this deps adds |
| 257 # usages and prevents removal of the proto code. |
| 258 '../../sync/sync.gyp:test_support_sync_proto_java', |
| 259 ], |
| 260 'includes': [ 'chrome_apk.gypi' ], |
| 261 }, |
| 262 { |
| 263 # GN: N/A |
| 264 # chrome_sync_shell_apk creates a .jar as a side effect. Any java targets |
| 265 # that need that .jar in their classpath should depend on this target. |
| 266 'target_name': 'chrome_sync_shell_apk_java', |
| 267 'type': 'none', |
| 268 'dependencies': [ |
| 269 'chrome_sync_shell_apk', |
| 270 ], |
| 271 'includes': [ '../../build/apk_fake_jar.gypi' ], |
| 272 }, |
| 273 { |
160 # GN: //chrome/android:chrome_shared_test_java | 274 # GN: //chrome/android:chrome_shared_test_java |
161 # This target is for sharing tests between both upstream and internal | 275 # This target is for sharing tests between both upstream and internal |
162 # trees until sufficient test coverage is upstream. | 276 # trees until sufficient test coverage is upstream. |
163 'target_name': 'chrome_shared_test_java', | 277 'target_name': 'chrome_shared_test_java', |
164 'type': 'none', | 278 'type': 'none', |
165 'variables': { | 279 'variables': { |
166 'java_in_dir': 'javatests', | 280 'java_in_dir': 'javatests', |
167 }, | 281 }, |
168 'dependencies': [ | 282 'dependencies': [ |
169 '../../base/base.gyp:base_java', | 283 '../../base/base.gyp:base_java', |
170 '../../base/base.gyp:base_java_test_support', | 284 '../../base/base.gyp:base_java_test_support', |
171 '../../chrome/chrome.gyp:chrome_java', | 285 '../../chrome/chrome.gyp:chrome_java', |
172 '../../chrome/chrome.gyp:chrome_java_test_support', | 286 '../../chrome/chrome.gyp:chrome_java_test_support', |
173 '../../components/components.gyp:invalidation_javatests', | 287 '../../components/components.gyp:invalidation_javatests', |
174 '../../components/components.gyp:offline_pages_enums_java', | 288 '../../components/components.gyp:offline_pages_enums_java', |
175 '../../components/components.gyp:precache_javatests', | 289 '../../components/components.gyp:precache_javatests', |
176 '../../components/components.gyp:web_contents_delegate_android_java', | 290 '../../components/components.gyp:web_contents_delegate_android_java', |
177 '../../content/content_shell_and_tests.gyp:content_java_test_support', | 291 '../../content/content_shell_and_tests.gyp:content_java_test_support', |
178 '../../net/net.gyp:net_java', | 292 '../../net/net.gyp:net_java', |
179 '../../net/net.gyp:net_java_test_support', | 293 '../../net/net.gyp:net_java_test_support', |
180 '../../sync/sync.gyp:sync_java_test_support', | 294 '../../sync/sync.gyp:sync_java_test_support', |
181 '../../sync/sync.gyp:sync_javatests', | |
182 '../../third_party/android_tools/android_tools.gyp:android_support_v7_ap
pcompat_javalib', | 295 '../../third_party/android_tools/android_tools.gyp:android_support_v7_ap
pcompat_javalib', |
183 '../../ui/android/ui_android.gyp:ui_javatests', | 296 '../../ui/android/ui_android.gyp:ui_javatests', |
184 ], | 297 ], |
185 'includes': [ '../../build/java.gypi' ], | 298 'includes': [ '../../build/java.gypi' ], |
186 }, | 299 }, |
187 { | 300 { |
188 # GN: //chrome/android:chrome_public_test_apk_manifest | 301 # GN: //chrome/android:chrome_public_test_apk_manifest |
189 'target_name': 'chrome_public_test_apk_manifest', | 302 'target_name': 'chrome_public_test_apk_manifest', |
190 'type': 'none', | 303 'type': 'none', |
191 'variables': { | 304 'variables': { |
192 'jinja_inputs': ['javatests/AndroidManifest.xml'], | 305 'jinja_inputs': ['javatests/AndroidManifest.xml'], |
193 'jinja_output': '<(chrome_public_test_apk_manifest)', | 306 'jinja_output': '<(chrome_public_test_apk_manifest)', |
194 'jinja_variables': [ | 307 'jinja_variables': [ |
195 'manifest_package=<(manifest_package)', | 308 'manifest_package=<(manifest_package)', |
196 ], | 309 ], |
197 }, | 310 }, |
198 'includes': [ '../../build/android/jinja_template.gypi' ], | 311 'includes': [ '../../build/android/jinja_template.gypi' ], |
199 }, | 312 }, |
200 { | 313 { |
| 314 # TODO(pvalenzuela): Implement this target with GN: |
| 315 # http://crbug.com/475612 |
| 316 'target_name': 'chrome_sync_shell_test_apk_manifest', |
| 317 'type': 'none', |
| 318 'variables': { |
| 319 'jinja_inputs': ['sync_shell/javatests/AndroidManifest.xml'], |
| 320 'jinja_output': '<(chrome_sync_shell_test_apk_manifest)', |
| 321 'jinja_variables': [ |
| 322 'manifest_package=<(sync_shell_manifest_package)', |
| 323 ], |
| 324 }, |
| 325 'includes': [ '../../build/android/jinja_template.gypi' ], |
| 326 }, |
| 327 { |
201 # GN: //chrome/android:chrome_public_test_apk | 328 # GN: //chrome/android:chrome_public_test_apk |
202 'target_name': 'chrome_public_test_apk', | 329 'target_name': 'chrome_public_test_apk', |
203 'type': 'none', | 330 'type': 'none', |
204 'dependencies': [ | 331 'dependencies': [ |
205 'chrome_shared_test_java', | 332 'chrome_shared_test_java', |
206 'chrome_public_apk_java', | 333 'chrome_public_apk_java', |
207 '../../testing/android/on_device_instrumentation.gyp:broker_java', | 334 '../../testing/android/on_device_instrumentation.gyp:broker_java', |
208 '../../testing/android/on_device_instrumentation.gyp:require_driver_apk'
, | 335 '../../testing/android/on_device_instrumentation.gyp:require_driver_apk'
, |
209 ], | 336 ], |
210 'variables': { | 337 'variables': { |
211 'android_manifest_path': '<(chrome_public_test_apk_manifest)', | 338 'android_manifest_path': '<(chrome_public_test_apk_manifest)', |
212 'package_name': 'chrome_public_test', | 339 'package_name': 'chrome_public_test', |
213 'java_in_dir': 'javatests', | 340 'java_in_dir': 'javatests', |
214 'java_in_dir_suffix': '/src_dummy', | 341 'java_in_dir_suffix': '/src_dummy', |
215 'apk_name': 'ChromePublicTest', | 342 'apk_name': 'ChromePublicTest', |
216 'is_test_apk': 1, | 343 'is_test_apk': 1, |
217 'test_type': 'instrumentation', | 344 'test_type': 'instrumentation', |
218 'isolate_file': '../chrome_public_test_apk.isolate', | 345 'isolate_file': '../chrome_public_test_apk.isolate', |
219 }, | 346 }, |
220 'includes': [ | 347 'includes': [ |
221 '../../build/java_apk.gypi', | 348 '../../build/java_apk.gypi', |
222 '../../build/android/test_runner.gypi', | 349 '../../build/android/test_runner.gypi', |
223 ], | 350 ], |
224 }, | 351 }, |
| 352 { |
| 353 # TODO(pvalenzuela): Implement this target with GN: |
| 354 # http://crbug.com/475612 |
| 355 'target_name': 'chrome_sync_shell_test_apk', |
| 356 'type': 'none', |
| 357 'dependencies': [ |
| 358 'chrome_sync_shell_apk_java', |
| 359 '../../base/base.gyp:base_java', |
| 360 '../../base/base.gyp:base_java_test_support', |
| 361 '../../chrome/chrome.gyp:chrome_java', |
| 362 '../../chrome/chrome.gyp:chrome_java_test_support', |
| 363 '../../sync/sync.gyp:sync_java', |
| 364 '../../sync/sync.gyp:sync_java_test_support', |
| 365 '../../sync/sync.gyp:sync_javatests', |
| 366 '../../sync/sync.gyp:test_support_sync_proto_java', |
| 367 '../../testing/android/on_device_instrumentation.gyp:broker_java', |
| 368 '../../testing/android/on_device_instrumentation.gyp:require_driver_apk'
, |
| 369 ], |
| 370 'variables': { |
| 371 'android_manifest_path': '<(chrome_sync_shell_test_apk_manifest)', |
| 372 'package_name': 'chrome_sync_shell_test', |
| 373 'java_in_dir': 'sync_shell/javatests', |
| 374 'apk_name': 'ChromeSyncShellTest', |
| 375 'is_test_apk': 1, |
| 376 'test_type': 'instrumentation', |
| 377 }, |
| 378 'includes': [ |
| 379 '../../build/java_apk.gypi', |
| 380 '../../build/android/test_runner.gypi', |
| 381 ], |
| 382 }, |
225 ], | 383 ], |
226 } | 384 } |
227 | 385 |
228 # Local Variables: | 386 # Local Variables: |
229 # tab-width:2 | 387 # tab-width:2 |
230 # indent-tabs-mode:nil | 388 # indent-tabs-mode:nil |
231 # End: | 389 # End: |
232 # vim: set expandtab tabstop=2 shiftwidth=2: | 390 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |