Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: chrome/android/chrome_apk.gyp

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

Powered by Google App Engine
This is Rietveld 408576698