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

Side by Side Diff: chrome/chrome_shell.gypi

Issue 457883002: Use Sync FakeServer in Android tests via custom APK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service_android.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # This GYPI allows independent customization of the chrome shell in a manner 5 # This GYPI allows independent customization of the chrome shell in a manner
6 # similar to content shell (in content_shell.gypi). Notably, this file does 6 # similar to content shell (in content_shell.gypi). Notably, this file does
7 # NOT contain chrome_android_core, which is independent of the chrome shell 7 # NOT contain chrome_android_core, which is independent of the chrome shell
8 # and should be separately customized. 8 # and should be separately customized.
9 { 9 {
10 'variables': { 10 'variables': {
11 'apk_name': 'ChromeShell',
12 'manifest_package_name': 'org.chromium.chrome.shell',
13 'native_lib_version_name': '<(version_full)',
14 'package_name': 'chrome_shell_apk', 11 'package_name': 'chrome_shell_apk',
15 }, 12 },
16 'targets': [ 13 'targets': [
17 { 14 {
18 'target_name': 'libchromeshell', 15 'target_name': 'libchromeshell_base',
19 'type': 'shared_library', 16 'type': 'static_library',
20 'dependencies': [ 17 'dependencies': [
21 '../base/base.gyp:base', 18 '../base/base.gyp:base',
22 'chrome_android_core', 19 'chrome_android_core',
23 'chrome.gyp:browser_ui', 20 'chrome.gyp:browser_ui',
24 '../content/content.gyp:content_app_browser', 21 '../content/content.gyp:content_app_browser',
25 ], 22 ],
26 'sources': [ 23 'sources': [
27 # This file must always be included in the shared_library step to ensure 24 'android/shell/chrome_shell_google_location_settings_helper.cc',
28 # JNI_OnLoad is exported. 25 'android/shell/chrome_shell_google_location_settings_helper.h',
29 'app/android/chrome_jni_onload.cc',
30 'android/shell/chrome_main_delegate_chrome_shell_android.cc',
31 'android/shell/chrome_main_delegate_chrome_shell_android.h',
32 "android/shell/chrome_shell_google_location_settings_helper.cc",
33 "android/shell/chrome_shell_google_location_settings_helper.h",
34 ], 26 ],
35 'include_dirs': [ 27 'include_dirs': [
36 '../skia/config', 28 '../skia/config',
37 ], 29 ],
38 'conditions': [ 30 'conditions': [
39 [ 'order_profiling!=0', { 31 [ 'order_profiling!=0', {
40 'conditions': [ 32 'conditions': [
41 [ 'OS=="android"', { 33 [ 'OS=="android"', {
42 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ], 34 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
43 }], 35 }],
44 ], 36 ],
45 }], 37 }],
46 [ 'use_allocator!="none"', { 38 [ 'use_allocator!="none"', {
47 'dependencies': [ 39 'dependencies': [
48 '../base/allocator/allocator.gyp:allocator', ], 40 '../base/allocator/allocator.gyp:allocator', ],
49 }], 41 }],
50 ['OS=="android"', { 42 ['OS=="android"', {
51 'ldflags': [ 43 'direct_dependent_settings': {
52 # Some android targets still depend on --gc-sections to link. 44 'ldflags': [
53 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). 45 # Some android targets still depend on --gc-sections to link.
54 '-Wl,--gc-sections', 46 # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
55 ], 47 '-Wl,--gc-sections',
48 ],
49 },
56 }], 50 }],
57 ], 51 ],
58 }, 52 },
59 { 53 {
54 'target_name': 'libchromeshell',
55 'type': 'shared_library',
56 'sources': [
57 # This file must always be included in the shared_library step to ensure
58 # JNI_OnLoad is exported.
59 'app/android/chrome_jni_onload.cc',
60 'android/shell/chrome_main_delegate_chrome_shell_android.cc',
61 'android/shell/chrome_main_delegate_chrome_shell_android.h',
62 ],
63 'dependencies': [
64 'libchromeshell_base',
65 ],
66 },
67 {
68 'target_name': 'libchromesyncshell',
69 'type': 'shared_library',
70 'sources': [
71 # This file must always be included in the shared_library step to ensure
72 # JNI_OnLoad is exported.
73 'app/android/chrome_jni_onload.cc',
74 'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc',
75 'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h',
76 ],
77 'dependencies': [
78 'libchromeshell_base',
79 '../sync/sync.gyp:test_support_sync_fake_server_android',
80 ],
81 },
82 {
60 'target_name': 'chrome_shell_apk', 83 'target_name': 'chrome_shell_apk',
61 'type': 'none', 84 'type': 'none',
62 'dependencies': [ 85 'dependencies': [
63 'chrome_java', 86 'chrome_java',
64 'chrome_shell_paks', 87 'chrome_shell_paks',
65 'libchromeshell', 88 'libchromeshell',
66 '../media/media.gyp:media_java', 89 '../media/media.gyp:media_java',
67 ], 90 ],
68 'variables': { 91 'variables': {
92 'apk_name': 'ChromeShell',
93 'native_lib_version_name': '<(version_full)',
69 'java_in_dir': 'android/shell/java', 94 'java_in_dir': 'android/shell/java',
70 'resource_dir': 'android/shell/res', 95 'resource_dir': 'android/shell/res',
71 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)', 96 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
72 'native_lib_target': 'libchromeshell', 97 'native_lib_target': 'libchromeshell',
73 'additional_input_paths': [ 98 'additional_input_paths': [
74 '<@(chrome_android_pak_output_resources)', 99 '<@(chrome_android_pak_output_resources)',
75 ], 100 ],
76 }, 101 },
77 'includes': [ '../build/java_apk.gypi', ], 102 'includes': [ '../build/java_apk.gypi', ],
78 }, 103 },
(...skipping 20 matching lines...) Expand all
99 ], 124 ],
100 'copies': [ 125 'copies': [
101 { 126 {
102 'destination': '<(chrome_android_pak_output_folder)', 127 'destination': '<(chrome_android_pak_output_folder)',
103 'files': [ 128 'files': [
104 '<@(chrome_android_pak_input_resources)', 129 '<@(chrome_android_pak_input_resources)',
105 ], 130 ],
106 } 131 }
107 ], 132 ],
108 }, 133 },
134 {
135 'target_name': 'chrome_sync_shell_apk',
136 'type': 'none',
137 'dependencies': [
138 'chrome_java',
139 'chrome_shell_paks',
140 'libchromesyncshell',
141 '../media/media.gyp:media_java',
142 '../sync/sync.gyp:sync_java_test_support',
143 ],
144 'variables': {
145 'apk_name': 'ChromeSyncShell',
146 'android_manifest_path': 'android/sync_shell/java/AndroidManifest.xml',
147 'R_package': 'org.chromium.chrome.shell',
148 'native_lib_version_name': '<(version_full)',
149 'java_in_dir': 'android/shell/java',
150 'resource_dir': 'android/shell/res',
151 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
152 'native_lib_target': 'libchromesyncshell',
153 'additional_input_paths': [
154 '<@(chrome_android_pak_output_resources)',
155 ],
156 },
157 'includes': [ '../build/java_apk.gypi', ],
158 },
159 {
160 # chrome_sync_shell_apk creates a .jar as a side effect. Any java
161 # targets that need that .jar in their classpath should depend on this
162 # target. Dependents of chrome_sync_shell_apk receive its jar path in the
163 # variable 'apk_output_jar_path'. This target should only be used by
164 # targets which instrument chrome_sync_shell_apk.
165 'target_name': 'chrome_sync_shell_apk_java',
166 'type': 'none',
167 'dependencies': [
168 'chrome_sync_shell_apk',
169 ],
170 'includes': [ '../build/apk_fake_jar.gypi' ],
171 },
109 ], 172 ],
110 173
111 } 174 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_android.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698