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

Side by Side Diff: chrome/android/BUILD.gn

Issue 570203002: Make chrome_shell_apk build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-chrome-jamesr
Patch Set: Created 6 years, 3 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
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni")
7 import("//third_party/icu/config.gni")
8
9
10 # GYP: //chrome/chrome.gyp:chrome_java (resources part)
11 android_resources("chrome_java_resources") {
12 resource_dirs = [
13 "java/res",
14 ]
15 deps = [
16 ":chrome_strings_grd",
17 "//content/public/android:content_java_resources",
18 "//chrome/app:java_strings_grd",
19 "//third_party/android_tools:android_support_v7_appcompat_resources",
20 ]
21 custom_package = "org.chromium.chrome"
22 }
23
24 # GYP: //chrome/chrome.gyp:chrome_strings_grd
25 java_strings_grd("chrome_strings_grd") {
26 grd_file = "java/strings/android_chrome_strings.grd"
27 outputs = [
28 "values-am/android_chrome_strings.xml",
29 "values-ar/android_chrome_strings.xml",
30 "values-bg/android_chrome_strings.xml",
31 "values-ca/android_chrome_strings.xml",
32 "values-cs/android_chrome_strings.xml",
33 "values-da/android_chrome_strings.xml",
34 "values-de/android_chrome_strings.xml",
35 "values-el/android_chrome_strings.xml",
36 "values/android_chrome_strings.xml",
37 "values-en-rGB/android_chrome_strings.xml",
38 "values-es/android_chrome_strings.xml",
39 "values-es-rUS/android_chrome_strings.xml",
40 "values-fa/android_chrome_strings.xml",
41 "values-fi/android_chrome_strings.xml",
42 "values-tl/android_chrome_strings.xml",
43 "values-fr/android_chrome_strings.xml",
44 "values-hi/android_chrome_strings.xml",
45 "values-hr/android_chrome_strings.xml",
46 "values-hu/android_chrome_strings.xml",
47 "values-in/android_chrome_strings.xml",
48 "values-it/android_chrome_strings.xml",
49 "values-iw/android_chrome_strings.xml",
50 "values-ja/android_chrome_strings.xml",
51 "values-ko/android_chrome_strings.xml",
52 "values-lt/android_chrome_strings.xml",
53 "values-lv/android_chrome_strings.xml",
54 "values-nl/android_chrome_strings.xml",
55 "values-nb/android_chrome_strings.xml",
56 "values-pl/android_chrome_strings.xml",
57 "values-pt-rBR/android_chrome_strings.xml",
58 "values-pt-rPT/android_chrome_strings.xml",
59 "values-ro/android_chrome_strings.xml",
60 "values-ru/android_chrome_strings.xml",
61 "values-sk/android_chrome_strings.xml",
62 "values-sl/android_chrome_strings.xml",
63 "values-sr/android_chrome_strings.xml",
64 "values-sv/android_chrome_strings.xml",
65 "values-sw/android_chrome_strings.xml",
66 "values-th/android_chrome_strings.xml",
67 "values-tr/android_chrome_strings.xml",
68 "values-uk/android_chrome_strings.xml",
69 "values-vi/android_chrome_strings.xml",
70 "values-zh-rCN/android_chrome_strings.xml",
71 "values-zh-rTW/android_chrome_strings.xml",
72 ]
73 }
74
75 # GYP: //chrome/chrome.gyp:chrome_java
76 android_library("chrome_java") {
77 deps = [
78 ":chrome_java_resources",
79 "//base:base_java",
80 "//net/android:net_java",
81 "//components/bookmarks/common/android:bookmarks_java",
82 "//components/dom_distiller/android:dom_distiller_core_java",
83 "//components/enhanced_bookmarks/android:enhanced_bookmarks_java",
84 "//components/gcm_driver/android:gcm_driver_java",
85 "//components/navigation_interception/android:navigation_interception_java",
86 "//components/variations/android:variations_java",
87 "//components/web_contents_delegate_android:web_contents_delegate_android_ja va",
88 "//content/public/android:content_java",
89 "//printing:printing_java",
90 "//sync/android:sync_java",
91 "//third_party/android_tools:android_support_v13_java",
92 "//third_party/android_tools:android_support_v7_appcompat_java",
93 "//third_party/cacheinvalidation:cacheinvalidation_javalib",
94 "//third_party/cacheinvalidation:cacheinvalidation_proto_java",
95 "//third_party/jsr-305:jsr_305_javalib",
96 "//ui/android:ui_java",
97 "//ui/android:ui_java_resources",
98 ]
99
100 srcjar_deps = [
101 ":activity_type_ids_javagen",
102 ":app_banner_metrics_ids_javagen",
103 ":profile_sync_service_model_type_selection_javagen",
104 ":resource_id_javagen",
105 ":toolbar_model_security_levels_javagen",
106 ":tab_load_status_javagen",
107 ]
108
109 DEPRECATED_java_in_dir = "java/src"
110 }
111
112 # GYP: //chrome/chrome_browser.gypi:activity_type_ids_java
113 java_cpp_template("activity_type_ids_javagen") {
114 sources = [
115 "java/ActivityTypeIds.template",
116 ]
117 package_name = "org/chromium/chrome/browser"
118 inputs = [
119 "../browser/android/activity_type_id_list.h"
120 ]
121 }
122
123 # GYP: //chrome/chrome_browser.gypi:app_banner_metrics_ids_java
124 java_cpp_template("app_banner_metrics_ids_javagen") {
125 sources = [
126 "java/AppBannerMetricsIds.template",
127 ]
128 package_name = "org/chromium/chrome/browser/banners"
129 inputs = [
130 "../browser/android/banners/app_banner_metrics_id_list.h"
131 ]
132 }
133
134 # GYP: //chrome/chrome_browser.gypi:resource_id_java
135 java_cpp_template("resource_id_javagen") {
136 sources = [
137 "java/ResourceId.template",
138 ]
139 package_name = "org/chromium/chrome/browser"
140 inputs = [
141 "../browser/android/resource_id.h"
142 ]
143 }
144
145 # GYP: //chrome/chrome_browser.gypi:profile_sync_service_model_type_selection_ja va
146 java_cpp_template("profile_sync_service_model_type_selection_javagen") {
147 sources = [
148 "java/ModelTypeSelection.template",
149 ]
150 package_name = "org/chromium/chrome/browser/sync"
151 inputs = [
152 "../browser/sync/profile_sync_service_model_type_selection_android.h"
153 ]
154 }
155
156 # GYP: //chrome/chrome_browser.gypi:toolbar_model_security_levels_java
157 java_cpp_template("toolbar_model_security_levels_javagen") {
158 sources = [
159 "java/ToolbarModelSecurityLevel.template",
160 ]
161 package_name = "org/chromium/chrome/browser/ui/toolbar"
162 inputs = [
163 "../browser/ui/toolbar/toolbar_model_security_level_list.h"
164 ]
165 }
166
167 # GYP: //chrome/chrome_browser.gypi:tab_load_status_java
168 java_cpp_template("tab_load_status_javagen") {
169 sources = [
170 "java/TabLoadStatus.template",
171 ]
172 package_name = "org/chromium/chrome/browser"
173 inputs = [
174 "../browser/android/tab_load_status.h"
175 ]
176 }
177
178 # GYP: //chrome/chrome_shell.gypi:libchromeshell_base
179 static_library("chrome_shell_base") {
180 deps = [
181 "//chrome/browser/ui",
182 "//chrome:chrome_android_core",
183 "//base",
184 "//base/allocator",
185 "//content/public/app:browser",
186 "//skia",
187 ]
188
189 sources = [
190 "shell/chrome_shell_google_location_settings_helper.cc",
191 "shell/chrome_shell_google_location_settings_helper.h",
192 ]
193
194 # TODO(GYP):
195 #[ 'order_profiling!=0', {
196 #'conditions': [
197 #[ 'OS=="android"', {
198 #'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
199 #}],
200 #],
201 #}],
202 }
203
204 # TODO(GYP, cjhopman): make chrome_shell_base actually link and then move it to
205 # deps. Also, actually compile the main delegates at that point.
206 # GYP: //chrome/chrome_browser.gypi:libchromeshell
207 shared_library("chrome_shell") {
cjhopman 2014/09/19 01:55:49 jamesr, I know you've been working at getting chro
208 testonly = true
209 deps = [
210 #":chrome_shell_base",
211 ]
212 deps = [ ":chrome_java" ]
213 datadeps = [
214 ":chrome_shell_base"
215 ]
216 sources = [
217 # This file must always be included in the shared_library step to ensure
218 # JNI_OnLoad is exported.
219 #"//chrome/app/android/chrome_jni_onload.cc",
220 #"shell/chrome_main_delegate_chrome_shell_android.cc",
221 #"shell/chrome_main_delegate_chrome_shell_android.h",
222 ]
223 }
224
225 # GYP: //chrome/chrome_browser.gypi:libchromesyncshell
226 shared_library("chrome_sync_shell") {
227 testonly = true
228 deps = [
229 "//sync:test_support_sync_fake_server_android",
230 ]
231 datadeps = [
232 ":chrome_shell_base",
233 ]
234 sources = [
235 # This file must always be included in the shared_library step to ensure
236 # JNI_OnLoad is exported.
237 #"//chrome/app/android/chrome_jni_onload.cc",
238 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc",
239 #"sync_shell/chrome_main_delegate_chrome_sync_shell_android.h",
240 ]
241 }
242
243 # GYP: N/A
244 android_resources("chrome_shell_resources") {
245 deps = [
246 ":chrome_java_resources",
247 ]
248 testonly = true
249 resource_dirs = [ "shell/res" ]
250 custom_package = "org.chromium.chrome.shell"
251 }
252
253 # GYP: N/A
254 android_library("chrome_shell_java") {
255 testonly = true
256 deps = [
257 ":chrome_shell_resources",
258 ":chrome_java",
259 "//base:base_java",
260 "//content/public/android:content_java",
261 "//components/dom_distiller/android:dom_distiller_core_java",
262 "//components/web_contents_delegate_android:web_contents_delegate_android_ja va",
263 "//printing:printing_java",
264 "//net/android:net_java",
265 "//sync/android:sync_java",
266 "//ui/android:ui_java",
267 ]
268 DEPRECATED_java_in_dir = "shell/java/src"
269 }
270
271 chrome_shell_assets_dir = "$root_build_dir/chrome_shell/assets"
272
273 # GYP: N/A
274 copy_ex("chrome_shell_assets") {
275 clear_dir = true
276 dest = chrome_shell_assets_dir
277 deps = [
278 "//chrome:packed_resources",
279 "//chrome:packed_extra_resources",
280 ]
281 sources = [
282 "$root_build_dir/resources.pak",
283 "$root_build_dir/chrome_100_percent.pak",
284 "$root_build_dir/locales/am.pak",
285 "$root_build_dir/locales/ar.pak",
286 "$root_build_dir/locales/bg.pak",
287 "$root_build_dir/locales/ca.pak",
288 "$root_build_dir/locales/cs.pak",
289 "$root_build_dir/locales/da.pak",
290 "$root_build_dir/locales/de.pak",
291 "$root_build_dir/locales/el.pak",
292 "$root_build_dir/locales/en-GB.pak",
293 "$root_build_dir/locales/en-US.pak",
294 "$root_build_dir/locales/es.pak",
295 "$root_build_dir/locales/es-419.pak",
296 "$root_build_dir/locales/fa.pak",
297 "$root_build_dir/locales/fi.pak",
298 "$root_build_dir/locales/fil.pak",
299 "$root_build_dir/locales/fr.pak",
300 "$root_build_dir/locales/he.pak",
301 "$root_build_dir/locales/hi.pak",
302 "$root_build_dir/locales/hr.pak",
303 "$root_build_dir/locales/hu.pak",
304 "$root_build_dir/locales/id.pak",
305 "$root_build_dir/locales/it.pak",
306 "$root_build_dir/locales/ja.pak",
307 "$root_build_dir/locales/ko.pak",
308 "$root_build_dir/locales/lt.pak",
309 "$root_build_dir/locales/lv.pak",
310 "$root_build_dir/locales/nb.pak",
311 "$root_build_dir/locales/nl.pak",
312 "$root_build_dir/locales/pl.pak",
313 "$root_build_dir/locales/pt-BR.pak",
314 "$root_build_dir/locales/pt-PT.pak",
315 "$root_build_dir/locales/ro.pak",
316 "$root_build_dir/locales/ru.pak",
317 "$root_build_dir/locales/sk.pak",
318 "$root_build_dir/locales/sl.pak",
319 "$root_build_dir/locales/sr.pak",
320 "$root_build_dir/locales/sv.pak",
321 "$root_build_dir/locales/sw.pak",
322 "$root_build_dir/locales/th.pak",
323 "$root_build_dir/locales/tr.pak",
324 "$root_build_dir/locales/uk.pak",
325 "$root_build_dir/locales/vi.pak",
326 "$root_build_dir/locales/zh-CN.pak",
327 "$root_build_dir/locales/zh-TW.pak",
328 ]
329
330 if (icu_use_data_file) {
331 sources += [
332 "$root_build_dir/icudtl.dat"
333 ]
334 }
335 }
336
337 #TODO(GYP):
338 #'variables': {
339 #'conditions': [
340 #['component != "shared_library" and target_arch != "arm64" and target_arch != " x64" and profiling_full_stack_frames != 1', {
341 ## Only enable the chromium linker on regular builds, since the
342 ## component build crashes on Android 4.4. See b/11379966
343 #'use_chromium_linker': '1',
344 #}],
345 #],
346 #},
347
348 # GYP: //chrome/chrome_browser.gypi:chrome_shell_apk
349 android_apk("chrome_shell_apk") {
350 testonly = true
351 deps = [
352 ":chrome_shell_resources",
353 ":chrome_shell_java",
354 ":chrome_shell_assets",
355 ":chrome_shell",
356 ]
357 apk_name = "ChromeShell"
358 android_manifest = "shell/java/AndroidManifest.xml"
359 native_libs = [
360 "$root_build_dir/lib.stripped/libchrome_shell.so"
361 ]
362 asset_location = chrome_shell_assets_dir
363 }
364
365 # GYP: //chrome/chrome_browser.gypi:chrome_sync_shell_apk
366 android_apk("chrome_sync_shell_apk") {
367 testonly = true
368 deps = [
369 ":chrome_shell_resources",
370 ":chrome_shell_java",
371 ":chrome_shell_assets",
372 ":chrome_sync_shell",
373 ]
374 apk_name = "ChromeSyncShell"
375 android_manifest = "sync_shell/java/AndroidManifest.xml"
376 native_libs = [
377 "$root_build_dir/lib.stripped/libchrome_sync_shell.so"
378 ]
379 asset_location = chrome_shell_assets_dir
380 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698