OLD | NEW |
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_overrides/v8.gni") | 7 import("//build_overrides/v8.gni") |
8 import("//chrome/android/chrome_public_apk_tmpl.gni") | 8 import("//chrome/android/chrome_public_apk_tmpl.gni") |
9 import("//chrome/common/features.gni") | 9 import("//chrome/common/features.gni") |
10 import("//chrome/version.gni") | 10 import("//chrome/version.gni") |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 ] | 451 ] |
452 | 452 |
453 if (is_android && use_order_profiling) { | 453 if (is_android && use_order_profiling) { |
454 deps += [ "//tools/cygprofile" ] | 454 deps += [ "//tools/cygprofile" ] |
455 } | 455 } |
456 | 456 |
457 public_configs = extra_chrome_shared_library_configs | 457 public_configs = extra_chrome_shared_library_configs |
458 } | 458 } |
459 | 459 |
460 # GYP: none | 460 # GYP: none |
461 if (!defined(webview_only_libmonochrome) || !webview_only_libmonochrome) { | 461 # |
| 462 # //chrome/android/monochrome is only needed in two cases |
| 463 # - build with 32-bit default_toolchain, |
| 464 # - or build with 32-bit android_secondary_abi_toolchain. |
| 465 if (!android_64bit_target_cpu || |
| 466 current_toolchain == android_secondary_abi_toolchain) { |
462 shared_library("monochrome") { | 467 shared_library("monochrome") { |
463 sources = chrome_apk_gypi.monochrome_app_native_sources | 468 sources = chrome_apk_gypi.monochrome_app_native_sources |
464 deps = [ | 469 deps = [ |
465 "//android_webview:common", | 470 "//android_webview:common", |
466 "//chrome:chrome_android_core", | 471 "//chrome:chrome_android_core", |
467 ] | 472 ] |
468 | 473 |
469 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 474 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
470 if (is_android && use_order_profiling) { | 475 if (is_android && use_order_profiling) { |
471 deps += [ "//tools/cygprofile" ] | 476 deps += [ "//tools/cygprofile" ] |
472 } | 477 } |
473 | 478 |
474 public_configs = extra_chrome_shared_library_configs | 479 public_configs = extra_chrome_shared_library_configs |
475 } | 480 } |
| 481 } else { |
| 482 group("monochrome_secondary_abi_lib") { |
| 483 public_deps = [ |
| 484 ":monochrome($android_secondary_abi_toolchain)", |
| 485 ] |
| 486 } |
476 } | 487 } |
477 | 488 |
478 # GYP: //chrome/android/chrome_apk.gyp:libchrome_sync_shell | 489 # GYP: //chrome/android/chrome_apk.gyp:libchrome_sync_shell |
479 shared_library("chrome_sync_shell") { | 490 shared_library("chrome_sync_shell") { |
480 testonly = true | 491 testonly = true |
481 deps = [ | 492 deps = [ |
482 "//build/config/sanitizers:deps", | 493 "//build/config/sanitizers:deps", |
483 "//chrome:chrome_android_core", | 494 "//chrome:chrome_android_core", |
484 "//sync", | 495 "//sync", |
485 "//sync:test_support_sync_fake_server_android", | 496 "//sync:test_support_sync_fake_server_android", |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 instrumentation_test_apk("chrome_sync_shell_test_apk") { | 612 instrumentation_test_apk("chrome_sync_shell_test_apk") { |
602 apk_name = "ChromeSyncShellTest" | 613 apk_name = "ChromeSyncShellTest" |
603 apk_under_test = ":chrome_sync_shell_apk" | 614 apk_under_test = ":chrome_sync_shell_apk" |
604 android_manifest = chrome_sync_shell_test_apk_manifest | 615 android_manifest = chrome_sync_shell_test_apk_manifest |
605 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest" | 616 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest" |
606 deps = [ | 617 deps = [ |
607 ":chrome_sync_shell_test_apk_java", | 618 ":chrome_sync_shell_test_apk_java", |
608 ] | 619 ] |
609 proguard_enabled = !is_java_debug | 620 proguard_enabled = !is_java_debug |
610 } | 621 } |
OLD | NEW |