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

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': { 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': 'libchromeshellfortest',
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/shell_for_test/chrome_main_delegate_chrome_shell_for_test_andro id.cc',
75 'android/shell_for_test/chrome_main_delegate_chrome_shell_for_test_andro id.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 'package_name': 'chrome_shell_apk',
93 'apk_name': 'ChromeShell',
94 'native_lib_version_name': '<(version_full)',
69 'java_in_dir': 'android/shell/java', 95 'java_in_dir': 'android/shell/java',
70 'resource_dir': 'android/shell/res', 96 'resource_dir': 'android/shell/res',
71 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)', 97 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
72 'native_lib_target': 'libchromeshell', 98 'native_lib_target': 'libchromeshell',
73 'additional_input_paths': [ 99 'additional_input_paths': [
74 '<@(chrome_android_pak_output_resources)', 100 '<@(chrome_android_pak_output_resources)',
75 ], 101 ],
76 }, 102 },
77 'includes': [ '../build/java_apk.gypi', ], 103 'includes': [ '../build/java_apk.gypi', ],
78 }, 104 },
79 { 105 {
80 # chrome_shell_apk creates a .jar as a side effect. Any java targets
81 # that need that .jar in their classpath should depend on this target,
82 # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
83 # jar path in the variable 'apk_output_jar_path'.
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',
88 'dependencies': [
89 'chrome_shell_apk',
90 ],
91 'includes': [ '../build/apk_fake_jar.gypi' ],
92 },
93 {
94 'target_name': 'chrome_shell_paks', 106 'target_name': 'chrome_shell_paks',
107 'variables': {
108 'package_name': 'chrome_shell_apk',
109 },
95 'type': 'none', 110 'type': 'none',
96 'dependencies': [ 111 'dependencies': [
97 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources', 112 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
98 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources', 113 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
99 ], 114 ],
100 'copies': [ 115 'copies': [
101 { 116 {
102 'destination': '<(chrome_android_pak_output_folder)', 117 'destination': '<(chrome_android_pak_output_folder)',
103 'files': [ 118 'files': [
104 '<@(chrome_android_pak_input_resources)', 119 '<@(chrome_android_pak_input_resources)',
105 ], 120 ],
106 } 121 }
107 ], 122 ],
108 }, 123 },
124 {
125 'target_name': 'chrome_shell_for_test_apk',
126 'type': 'none',
127 'dependencies': [
128 'chrome_java',
129 'chrome_shell_paks',
130 'libchromeshellfortest',
131 '../media/media.gyp:media_java',
132 '../sync/sync.gyp:sync_java_test_support',
133 ],
134 'variables': {
135 'package_name': 'chrome_shell_for_test_apk',
136 'apk_name': 'ChromeShellForTest',
137 'android_manifest_path': 'android/shell_for_test/java/AndroidManifest.xm l',
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', ],
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',
160 ],
161 'includes': [ '../build/apk_fake_jar.gypi' ],
162 },
109 ], 163 ],
110 164
111 } 165 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698