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

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

Issue 1314413004: Cast ChromeShell into the fiery pit of Mount Doom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 import("//build/module_args/v8.gni") 7 import("//build/module_args/v8.gni")
8 import("//chrome/version.gni") 8 import("//chrome/version.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//third_party/icu/config.gni") 10 import("//third_party/icu/config.gni")
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 java_cpp_template("resource_id_javagen") { 214 java_cpp_template("resource_id_javagen") {
215 sources = [ 215 sources = [
216 "java/ResourceId.template", 216 "java/ResourceId.template",
217 ] 217 ]
218 package_name = "org/chromium/chrome/browser" 218 package_name = "org/chromium/chrome/browser"
219 inputs = [ 219 inputs = [
220 "../browser/android/resource_id.h", 220 "../browser/android/resource_id.h",
221 ] 221 ]
222 } 222 }
223 223
224 # GYP: //chrome/chrome_shell.gypi:libchromeshell_base
225 group("chrome_shell_base") {
226 deps = [
227 "//chrome/browser/ui",
228 "//chrome:chrome_android_core",
229 "//base",
230 "//base/allocator",
231 "//content/public/app:both",
232 "//skia",
233 ]
234 # TODO(GYP):
235 #[ 'order_profiling!=0', {
236 #'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
237 #}],
238 }
239
240 # GYP: //chrome/chrome_shell.gypi:libchromeshell
241 shared_library("chrome_shell") {
242 testonly = true
243 sources = [
244 "shell/chrome_main_delegate_chrome_shell_android.cc",
245 "shell/chrome_main_delegate_chrome_shell_android.h",
246 "shell/chrome_shell_entry_point.cc",
247 ]
248 deps = [
249 ":chrome_shell_base",
250 "//build/config/sanitizers:deps",
251 ]
252 }
253
254 # GYP: N/A
255 android_resources("chrome_shell_resources") {
256 deps = [
257 ":chrome_java_resources",
258 ]
259 testonly = true
260 resource_dirs = [ "shell/res" ]
261 custom_package = "org.chromium.chrome.shell"
262 }
263
264 # GYP: N/A
265 android_library("chrome_shell_java") {
266 testonly = true
267 deps = [
268 ":chrome_java",
269 ":chrome_java_resources",
270 ":chrome_shell_resources",
271 "//base:base_java",
272 "//content/public/android:content_java",
273 "//components/dom_distiller/android:dom_distiller_content_java",
274 "//components/dom_distiller/android:dom_distiller_core_java",
275 "//components/service_tab_launcher:service_tab_launcher_java",
276 "//components/web_contents_delegate_android:web_contents_delegate_android_ja va",
277 "//printing:printing_java",
278 "//net/android:net_java",
279 "//sync/android:sync_java",
280 "//third_party/android_tools:android_support_v13_java",
281 "//third_party/android_tools:android_support_v7_appcompat_java",
282 "//ui/android:ui_java",
283 ]
284 DEPRECATED_java_in_dir = "shell/java/src"
285 }
286
287 chrome_shell_assets_dir = "$root_build_dir/chrome_shell/assets"
288
289 # GYP: N/A
290 copy_ex("chrome_shell_assets") {
291 clear_dir = true
292 dest = chrome_shell_assets_dir
293 sources = [
294 "$root_build_dir/chrome_100_percent.pak",
295 "$root_build_dir/locales/am.pak",
296 "$root_build_dir/locales/ar.pak",
297 "$root_build_dir/locales/bg.pak",
298 "$root_build_dir/locales/ca.pak",
299 "$root_build_dir/locales/cs.pak",
300 "$root_build_dir/locales/da.pak",
301 "$root_build_dir/locales/de.pak",
302 "$root_build_dir/locales/el.pak",
303 "$root_build_dir/locales/en-GB.pak",
304 "$root_build_dir/locales/en-US.pak",
305 "$root_build_dir/locales/es-419.pak",
306 "$root_build_dir/locales/es.pak",
307 "$root_build_dir/locales/fa.pak",
308 "$root_build_dir/locales/fi.pak",
309 "$root_build_dir/locales/fil.pak",
310 "$root_build_dir/locales/fr.pak",
311 "$root_build_dir/locales/he.pak",
312 "$root_build_dir/locales/hi.pak",
313 "$root_build_dir/locales/hr.pak",
314 "$root_build_dir/locales/hu.pak",
315 "$root_build_dir/locales/id.pak",
316 "$root_build_dir/locales/it.pak",
317 "$root_build_dir/locales/ja.pak",
318 "$root_build_dir/locales/ko.pak",
319 "$root_build_dir/locales/lt.pak",
320 "$root_build_dir/locales/lv.pak",
321 "$root_build_dir/locales/nb.pak",
322 "$root_build_dir/locales/nl.pak",
323 "$root_build_dir/locales/pl.pak",
324 "$root_build_dir/locales/pt-BR.pak",
325 "$root_build_dir/locales/pt-PT.pak",
326 "$root_build_dir/locales/ro.pak",
327 "$root_build_dir/locales/ru.pak",
328 "$root_build_dir/locales/sk.pak",
329 "$root_build_dir/locales/sl.pak",
330 "$root_build_dir/locales/sr.pak",
331 "$root_build_dir/locales/sv.pak",
332 "$root_build_dir/locales/sw.pak",
333 "$root_build_dir/locales/th.pak",
334 "$root_build_dir/locales/tr.pak",
335 "$root_build_dir/locales/uk.pak",
336 "$root_build_dir/locales/vi.pak",
337 "$root_build_dir/locales/zh-CN.pak",
338 "$root_build_dir/locales/zh-TW.pak",
339 "$root_build_dir/resources.pak",
340 ]
341 deps = [
342 "//chrome:packed_resources",
343 "//chrome:packed_extra_resources",
344 ]
345
346 if (icu_use_data_file) {
347 sources += [ "$root_build_dir/icudtl.dat" ]
348 deps += [ "//third_party/icu:icudata" ]
349 }
350 if (v8_use_external_startup_data) {
351 sources += [
352 "$root_build_dir/natives_blob.bin",
353 "$root_build_dir/snapshot_blob.bin",
354 ]
355 deps += [ "//v8" ]
356 }
357 }
358
359 chrome_shell_manifest =
360 "$target_gen_dir/chrome_shell_manifest/AndroidManifest.xml"
361
362 # GYP: //chrome/chrome_shell.gypi:chrome_shell_manifest
363 jinja_template("chrome_shell_manifest") {
364 testonly = true
365 input = "shell/java/AndroidManifest.xml.jinja2"
366 output = chrome_shell_manifest
367 }
368
369 # GYP: //chrome/chrome_shell.gypi:chrome_shell_apk
370 android_apk("chrome_shell_apk") {
371 testonly = true
372 deps = [
373 ":chrome_shell",
374 ":chrome_shell_assets",
375 ":chrome_shell_java",
376 ":chrome_shell_manifest",
377 ":chrome_shell_resources",
378 "//base:base_java",
379 ]
380 apk_name = "ChromeShell"
381 android_manifest = chrome_shell_manifest
382 native_libs = [ "libchrome_shell.so" ]
383 native_lib_version_rule = "//build/util:chrome_version_json"
384 _native_lib_file =
385 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir)
386 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)"
387 asset_location = chrome_shell_assets_dir
388
389 #TODO(GYP):
390 #'variables': {
391 #'conditions': [
392 #['component != "shared_library" and target_arch != "arm64" and target_arch != "x64" and profiling_full_stack_frames != 1', {
393 ## Only enable the chromium linker on regular builds, since the
394 ## component build crashes on Android 4.4. See b/11379966
395 #'use_chromium_linker': '1',
396 #}],
397 #],
398 #},
399 }
400
401 # GYP: part of //chrome/chrome_tests.gypi:chrome_shell_test_apk
402 android_library("chrome_javatests") {
403 testonly = true
404 DEPRECATED_java_in_dir = "javatests_shell/src"
405 deps = [
406 ":chrome_java",
407 ":chrome_java_resources",
408 ":chrome_shell_java",
409 ":chrome_shell_resources",
410 ":chrome_shell_test_java",
411 "//base:base_java",
412 "//base:base_java_test_support",
413 "//chrome/test/android:chrome_java_test_support",
414 "//components/bookmarks/common/android:bookmarks_java",
415 "//components/dom_distiller/android:dom_distiller_core_java",
416 "//components/invalidation/impl:java",
417 "//components/navigation_interception/android:navigation_interception_java",
418 "//content/public/android:content_java",
419 "//content/public/test/android:content_java_test_support",
420 "//net/android:net_java_test_support",
421 "//sync/android:sync_java",
422 "//sync:sync_java_test_support",
423 "//third_party/android_protobuf:protobuf_nano_javalib",
424 "//third_party/android_tools:android_support_v13_java",
425 "//third_party/android_tools:android_support_v7_appcompat_java",
426 "//third_party/android_tools:legacy_http_javalib",
427 "//third_party/cacheinvalidation:cacheinvalidation_javalib",
428 "//third_party/cacheinvalidation:cacheinvalidation_proto_java",
429 "//third_party/jsr-305:jsr_305_javalib",
430 "//ui/android:ui_java",
431 ]
432 }
433
434 android_library("chrome_shell_test_java") {
435 testonly = true
436 deps = [
437 ":chrome_java",
438 ":chrome_shell_java",
439 "//base:base_java",
440 "//base:base_java_test_support",
441 "//chrome/test/android:chrome_java_test_support",
442 "//content/public/android:content_java",
443 "//content/public/test/android:content_java_test_support",
444 "//third_party/android_tools:android_support_v13_java",
445 "//third_party/android_tools:android_support_v7_appcompat_java",
446 "//ui/android:ui_java",
447 ]
448 DEPRECATED_java_in_dir = "shell/javatests/src"
449 }
450
451 # GYP: //chrome/chrome_tests.gypi:chrome_shell_test_apk
452 instrumentation_test_apk("chrome_shell_test_apk") {
453 apk_under_test = ":chrome_shell_apk"
454 deps = [
455 ":chrome_javatests",
456 ":chrome_shell_test_java",
457 ]
458 apk_name = "ChromeShellTest"
459 android_manifest = "shell/javatests/AndroidManifest.xml"
460 isolate_file = "../chrome_shell_test_apk.isolate"
461 }
462
463 # GYP: //chrome/chrome_tests.gypi:chrome_junit_tests 224 # GYP: //chrome/chrome_tests.gypi:chrome_junit_tests
464 junit_binary("chrome_junit_tests") { 225 junit_binary("chrome_junit_tests") {
465 java_files = [ 226 java_files = [
466 "junit/src/org/chromium/chrome/browser/childaccounts/ChildAccountServiceTest .java", 227 "junit/src/org/chromium/chrome/browser/childaccounts/ChildAccountServiceTest .java",
467 "junit/src/org/chromium/chrome/browser/externalauth/ExternalAuthUtilsTest.ja va", 228 "junit/src/org/chromium/chrome/browser/externalauth/ExternalAuthUtilsTest.ja va",
468 "junit/src/org/chromium/chrome/browser/omaha/ResponseParserTest.java", 229 "junit/src/org/chromium/chrome/browser/omaha/ResponseParserTest.java",
469 "junit/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteContro llerTest.java", 230 "junit/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteContro llerTest.java",
470 "junit/src/org/chromium/chrome/browser/media/remote/MediaUrlResolverTest.jav a", 231 "junit/src/org/chromium/chrome/browser/media/remote/MediaUrlResolverTest.jav a",
471 "junit/src/org/chromium/chrome/browser/media/remote/RemoteVideoInfoTest.java ", 232 "junit/src/org/chromium/chrome/browser/media/remote/RemoteVideoInfoTest.java ",
472 "junit/src/org/chromium/chrome/browser/media/remote/TransportControlTest.jav a", 233 "junit/src/org/chromium/chrome/browser/media/remote/TransportControlTest.jav a",
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 # TODO(GYP,cjhopman): Does this need version code/name? 451 # TODO(GYP,cjhopman): Does this need version code/name?
691 apk_name = "ChromePublicTest" 452 apk_name = "ChromePublicTest"
692 apk_under_test = ":chrome_public_apk" 453 apk_under_test = ":chrome_public_apk"
693 android_manifest = chrome_public_test_apk_manifest 454 android_manifest = chrome_public_test_apk_manifest
694 deps = [ 455 deps = [
695 ":chrome_public_test_apk_manifest", 456 ":chrome_public_test_apk_manifest",
696 "//chrome/android:chrome_shared_test_java", 457 "//chrome/android:chrome_shared_test_java",
697 ] 458 ]
698 isolate_file = "../chrome_public_test_apk.isolate" 459 isolate_file = "../chrome_public_test_apk.isolate"
699 } 460 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698