Chromium Code Reviews| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 447 ] | 447 ] |
| 448 | 448 |
| 449 if (is_android && use_order_profiling) { | 449 if (is_android && use_order_profiling) { |
| 450 deps += [ "//tools/cygprofile" ] | 450 deps += [ "//tools/cygprofile" ] |
| 451 } | 451 } |
| 452 | 452 |
| 453 public_configs = extra_chrome_shared_library_configs | 453 public_configs = extra_chrome_shared_library_configs |
| 454 } | 454 } |
| 455 | 455 |
| 456 # GYP: none | 456 # GYP: none |
| 457 if (!defined(webview_only_libmonochrome) || !webview_only_libmonochrome) { | 457 # |
| 458 # //chrome/android/monochrome is only needed in two cases | |
|
agrieve
2016/07/20 02:11:03
nit: comment says what the if statement says, but
michaelbai
2016/07/20 16:51:11
Refine the comment, hope it is clear now.
| |
| 459 # - build with 32-bit default_toolchain, | |
| 460 # - or build with 32-bit android_secondary_abi_toolchain. | |
| 461 if (!android_64bit_target_cpu || | |
| 462 current_toolchain == android_secondary_abi_toolchain) { | |
| 458 shared_library("monochrome") { | 463 shared_library("monochrome") { |
| 459 sources = chrome_apk_gypi.monochrome_app_native_sources | 464 sources = chrome_apk_gypi.monochrome_app_native_sources |
| 460 deps = [ | 465 deps = [ |
| 461 "//android_webview:common", | 466 "//android_webview:common", |
| 462 "//chrome:chrome_android_core", | 467 "//chrome:chrome_android_core", |
| 463 ] | 468 ] |
| 464 | 469 |
| 465 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 470 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
| 466 if (is_android && use_order_profiling) { | 471 if (is_android && use_order_profiling) { |
| 467 deps += [ "//tools/cygprofile" ] | 472 deps += [ "//tools/cygprofile" ] |
| 468 } | 473 } |
| 469 | 474 |
| 470 public_configs = extra_chrome_shared_library_configs | 475 public_configs = extra_chrome_shared_library_configs |
| 471 } | 476 } |
| 477 } else { | |
| 478 group("monochrome_secondary_abi_lib") { | |
| 479 public_deps = [ | |
| 480 ":monochrome($android_secondary_abi_toolchain)", | |
| 481 ] | |
| 482 } | |
| 472 } | 483 } |
| 473 | 484 |
| 474 # GYP: //chrome/android/chrome_apk.gyp:libchrome_sync_shell | 485 # GYP: //chrome/android/chrome_apk.gyp:libchrome_sync_shell |
| 475 shared_library("chrome_sync_shell") { | 486 shared_library("chrome_sync_shell") { |
| 476 testonly = true | 487 testonly = true |
| 477 deps = [ | 488 deps = [ |
| 478 "//build/config/sanitizers:deps", | 489 "//build/config/sanitizers:deps", |
| 479 "//chrome:chrome_android_core", | 490 "//chrome:chrome_android_core", |
| 480 "//sync", | 491 "//sync", |
| 481 "//sync:test_support_sync_fake_server_android", | 492 "//sync:test_support_sync_fake_server_android", |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 } |
| 611 } | 622 } |
| OLD | NEW |