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

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
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': {
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',
15 },
16 'targets': [ 10 'targets': [
17 { 11 {
18 'target_name': 'libchromeshell', 12 'target_name': 'libchromeshell_base',
19 'type': 'shared_library', 13 'type': 'static_library',
20 'dependencies': [ 14 'dependencies': [
21 '../base/base.gyp:base', 15 '../base/base.gyp:base',
22 'chrome_android_core', 16 'chrome_android_core',
23 'chrome.gyp:browser_ui', 17 'chrome.gyp:browser_ui',
24 '../content/content.gyp:content_app_browser', 18 '../content/content.gyp:content_app_browser',
25 ], 19 ],
26 'sources': [ 20 'sources': [
27 # This file must always be included in the shared_library step to ensure 21 'android/shell/chrome_shell_google_location_settings_helper.cc',
28 # JNI_OnLoad is exported. 22 '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 ], 23 ],
35 'include_dirs': [ 24 'include_dirs': [
36 '../skia/config', 25 '../skia/config',
37 ], 26 ],
38 'conditions': [ 27 'conditions': [
39 [ 'order_profiling!=0', { 28 [ 'order_profiling!=0', {
40 'conditions': [ 29 'conditions': [
41 [ 'OS=="android"', { 30 [ 'OS=="android"', {
42 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ], 31 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
43 }], 32 }],
44 ], 33 ],
45 }], 34 }],
46 [ 'use_allocator!="none"', { 35 [ 'use_allocator!="none"', {
47 'dependencies': [ 36 'dependencies': [
48 '../base/allocator/allocator.gyp:allocator', ], 37 '../base/allocator/allocator.gyp:allocator', ],
49 }], 38 }],
50 ['OS=="android"', { 39 ['OS=="android"', {
51 'ldflags': [ 40 'direct_dependent_settings': {
52 # Some android targets still depend on --gc-sections to link. 41 'ldflags': [
53 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). 42 # Some android targets still depend on --gc-sections to link.
54 '-Wl,--gc-sections', 43 # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
55 ], 44 '-Wl,--gc-sections',
45 ],
46 },
56 }], 47 }],
57 ], 48 ],
58 }, 49 },
59 { 50 {
51 'target_name': 'libchromeshell',
52 'type': 'shared_library',
53 'sources': [
54 # This file must always be included in the shared_library step to ensure
55 # JNI_OnLoad is exported.
56 'app/android/chrome_jni_onload.cc',
57 'android/shell/chrome_main_delegate_chrome_shell_android.cc',
58 'android/shell/chrome_main_delegate_chrome_shell_android.h',
59 ],
60 'dependencies': [
61 'libchromeshell_base',
62 ],
63 },
64 {
65 'target_name': 'libchromeshellfortest',
66 'type': 'shared_library',
67 'sources': [
68 # This file must always be included in the shared_library step to ensure
69 # JNI_OnLoad is exported.
70 'app/android/chrome_jni_onload.cc',
71 'android/shell/chrome_main_delegate_chrome_shell_for_test_android.cc',
72 'android/shell/chrome_main_delegate_chrome_shell_for_test_android.h',
73 ],
74 'dependencies': [
75 'libchromeshell_base',
76 '../sync/sync.gyp:test_support_sync_fake_server_android',
77 ],
78 },
79 {
60 'target_name': 'chrome_shell_apk', 80 'target_name': 'chrome_shell_apk',
61 'type': 'none', 81 'type': 'none',
62 'dependencies': [ 82 'dependencies': [
63 'chrome_java', 83 'chrome_java',
64 'chrome_shell_paks', 84 'chrome_shell_paks',
65 'libchromeshell', 85 'libchromeshell',
66 '../media/media.gyp:media_java', 86 '../media/media.gyp:media_java',
67 ], 87 ],
68 'variables': { 88 'variables': {
89 'package_name': 'chrome_shell_apk',
90 'apk_name': 'ChromeShell',
91 'manifest_package_name': 'org.chromium.chrome.shell',
pval...(no longer on Chromium) 2014/08/09 00:48:21 Is this variable used anywhere? I can't find any u
Yaron 2014/08/12 17:22:04 Looks to be dead code.
92 'native_lib_version_name': '<(version_full)',
69 'java_in_dir': 'android/shell/java', 93 'java_in_dir': 'android/shell/java',
70 'resource_dir': 'android/shell/res', 94 'resource_dir': 'android/shell/res',
71 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)', 95 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
72 'native_lib_target': 'libchromeshell', 96 'native_lib_target': 'libchromeshell',
73 'additional_input_paths': [ 97 'additional_input_paths': [
74 '<@(chrome_android_pak_output_resources)', 98 '<@(chrome_android_pak_output_resources)',
75 ], 99 ],
76 }, 100 },
77 'includes': [ '../build/java_apk.gypi', ], 101 'includes': [ '../build/java_apk.gypi', 'chrome_android_paks.gypi', ],
78 }, 102 },
79 { 103 {
80 # chrome_shell_apk creates a .jar as a side effect. Any java targets 104 'target_name': 'chrome_shell_paks',
Yaron 2014/08/12 17:22:04 Why do you have two separate paks targets? Seems l
pval...(no longer on Chromium) 2014/08/14 00:35:39 ah, good point. fixed.
81 # that need that .jar in their classpath should depend on this target, 105 'variables': {
82 # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its 106 'package_name': 'chrome_shell_apk',
83 # jar path in the variable 'apk_output_jar_path'. 107 },
84 # This target should only be used by targets which instrument
85 # chrome_shell_apk.
86 'target_name': 'chrome_shell_apk_java',
87 'type': 'none', 108 'type': 'none',
88 'dependencies': [ 109 'dependencies': [
89 'chrome_shell_apk', 110 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
111 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
112 ],
113 'copies': [
114 {
115 'destination': '<(chrome_android_pak_output_folder)',
116 'files': [
117 '<@(chrome_android_pak_input_resources)',
118 ],
119 }
120 ],
121 'includes': [ 'chrome_android_paks.gypi', ],
122 },
123 {
124 'target_name': 'chrome_shell_for_test_apk',
pval...(no longer on Chromium) 2014/08/09 00:48:21 I really don't like the name for this APK (ChromeS
125 'type': 'none',
126 'dependencies': [
127 'chrome_java',
128 'chrome_shell_paks',
129 'libchromeshellfortest',
130 '../media/media.gyp:media_java',
131 '../sync/sync.gyp:sync_java_test_support',
132 ],
133 'variables': {
134 'package_name': 'chrome_shell_for_test_apk',
135 'apk_name': 'ChromeShellForTest',
136 'manifest_package_name': 'org.chromium.chrome.shellfortest',
137 'android_manifest_path': 'android/shell/fortest/AndroidManifest.xml',
138 'R_package': 'org.chromium.chrome.shell',
139 'native_lib_version_name': '<(version_full)',
140 'java_in_dir': 'android/shell/java',
141 'resource_dir': 'android/shell/res',
142 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
143 'native_lib_target': 'libchromeshellfortest',
144 'additional_input_paths': [
145 '<@(chrome_android_pak_output_resources)',
146 ],
147 },
148 'includes': [ '../build/java_apk.gypi', 'chrome_android_paks.gypi', ],
149 },
150 {
151 # chrome_shell_for_test_apk creates a .jar as a side effect. Any java
152 # targets that need that .jar in their classpath should depend on this
153 # target. Dependents of chrome_shell_apk receive its jar path in the
154 # variable 'apk_output_jar_path'. This target should only be used by
155 # targets which instrument chrome_shell_for_test_apk.
156 'target_name': 'chrome_shell_for_test_apk_java',
157 'type': 'none',
158 'dependencies': [
159 'chrome_shell_for_test_apk',
90 ], 160 ],
91 'includes': [ '../build/apk_fake_jar.gypi' ], 161 'includes': [ '../build/apk_fake_jar.gypi' ],
92 }, 162 },
93 { 163 {
94 'target_name': 'chrome_shell_paks', 164 'target_name': 'chrome_shell_for_test_paks',
165 'variables': {
166 'package_name': 'chrome_shell_for_test_apk',
167 },
95 'type': 'none', 168 'type': 'none',
96 'dependencies': [ 169 'dependencies': [
97 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources', 170 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
98 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources', 171 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
99 ], 172 ],
100 'copies': [ 173 'copies': [
101 { 174 {
102 'destination': '<(chrome_android_pak_output_folder)', 175 'destination': '<(chrome_android_pak_output_folder)',
103 'files': [ 176 'files': [
104 '<@(chrome_android_pak_input_resources)', 177 '<@(chrome_android_pak_input_resources)',
105 ], 178 ],
106 } 179 }
107 ], 180 ],
181 'includes': [ 'chrome_android_paks.gypi', ],
108 }, 182 },
109 ], 183 ],
110 184
111 } 185 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698