| 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("//android_webview/webview_repack_locales_list.gni") | 5 import("//android_webview/webview_repack_locales_list.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/rules.gni") | 7 import("//build/config/android/rules.gni") |
| 8 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/util/process_version.gni") | 9 import("//build/util/process_version.gni") |
| 9 import("//build_overrides/v8.gni") | 10 import("//build_overrides/v8.gni") |
| 10 import("//chrome/android/chrome_public_apk_tmpl.gni") | 11 import("//chrome/android/chrome_public_apk_tmpl.gni") |
| 11 import("//chrome/android/monochrome_android_manifest_jinja_variables.gni") | 12 import("//chrome/android/monochrome_android_manifest_jinja_variables.gni") |
| 12 import("//chrome/chrome_paks.gni") | 13 import("//chrome/chrome_paks.gni") |
| 13 import("//chrome/common/features.gni") | 14 import("//chrome/common/features.gni") |
| 14 import("//chrome/process_version_rc_template.gni") # For branding_file_path. | 15 import("//chrome/process_version_rc_template.gni") # For branding_file_path. |
| 15 import("//testing/test.gni") | 16 import("//testing/test.gni") |
| 16 import("//third_party/icu/config.gni") | 17 import("//third_party/icu/config.gni") |
| 17 import("//third_party/protobuf/proto_library.gni") | 18 import("//third_party/protobuf/proto_library.gni") |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 public_configs = extra_chrome_shared_library_configs | 560 public_configs = extra_chrome_shared_library_configs |
| 560 } | 561 } |
| 561 | 562 |
| 562 # Ensure that .pak files are built only once (build them in the default | 563 # Ensure that .pak files are built only once (build them in the default |
| 563 # toolchain). | 564 # toolchain). |
| 564 if (current_toolchain == default_toolchain) { | 565 if (current_toolchain == default_toolchain) { |
| 565 if (enable_resource_whitelist_generation) { | 566 if (enable_resource_whitelist_generation) { |
| 566 generate_resource_whitelist("monochrome_resource_whitelist") { | 567 generate_resource_whitelist("monochrome_resource_whitelist") { |
| 567 # Always use the 32-bit library's whitelist since the 64-bit one is | 568 # Always use the 32-bit library's whitelist since the 64-bit one is |
| 568 # webview-only. | 569 # webview-only. |
| 569 if (!android_64bit_target_cpu) { | 570 if (!is_target_cpu_64bit) { |
| 570 _fat_lib_toolchain = current_toolchain | 571 _fat_lib_toolchain = current_toolchain |
| 571 } else { | 572 } else { |
| 572 _fat_lib_toolchain = android_secondary_abi_toolchain | 573 _fat_lib_toolchain = android_secondary_abi_toolchain |
| 573 } | 574 } |
| 574 deps = [ | 575 deps = [ |
| 575 ":monochrome($_fat_lib_toolchain)", | 576 ":monochrome($_fat_lib_toolchain)", |
| 576 ] | 577 ] |
| 577 | 578 |
| 578 input = get_label_info(deps[0], "root_out_dir") + | 579 input = get_label_info(deps[0], "root_out_dir") + |
| 579 "/libmonochrome$shlib_extension.whitelist" | 580 "/libmonochrome$shlib_extension.whitelist" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 ] | 614 ] |
| 614 } | 615 } |
| 615 } # current_toolchain == host_toolchain | 616 } # current_toolchain == host_toolchain |
| 616 | 617 |
| 617 # | 618 # |
| 618 # Only 32-bit //chrome/android/monochrome is needed, beside | 619 # Only 32-bit //chrome/android/monochrome is needed, beside |
| 619 # being built with 32-bit default toolchain, it is also built | 620 # being built with 32-bit default toolchain, it is also built |
| 620 # with secondary 32-bit toolchain in 64-bit platform because we | 621 # with secondary 32-bit toolchain in 64-bit platform because we |
| 621 # need 64-bit //android_webview/monochrome and 32-bit this target | 622 # need 64-bit //android_webview/monochrome and 32-bit this target |
| 622 # for 64-bit APK. | 623 # for 64-bit APK. |
| 623 if (!android_64bit_target_cpu || | 624 if (!is_target_cpu_64bit || |
| 624 current_toolchain == android_secondary_abi_toolchain) { | 625 current_toolchain == android_secondary_abi_toolchain) { |
| 625 shared_library("monochrome") { | 626 shared_library("monochrome") { |
| 626 sources = [ | 627 sources = [ |
| 627 "../app/android/chrome_main_delegate_android_initializer.cc", | 628 "../app/android/chrome_main_delegate_android_initializer.cc", |
| 628 "../browser/android/monochrome_entry_point.cc", | 629 "../browser/android/monochrome_entry_point.cc", |
| 629 ] | 630 ] |
| 630 deps = [ | 631 deps = [ |
| 631 "//android_webview:common", | 632 "//android_webview:common", |
| 632 "//chrome:chrome_android_core", | 633 "//chrome:chrome_android_core", |
| 633 ] | 634 ] |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 instrumentation_test_apk("chrome_sync_shell_test_apk") { | 794 instrumentation_test_apk("chrome_sync_shell_test_apk") { |
| 794 apk_name = "ChromeSyncShellTest" | 795 apk_name = "ChromeSyncShellTest" |
| 795 apk_under_test = ":chrome_sync_shell_apk" | 796 apk_under_test = ":chrome_sync_shell_apk" |
| 796 android_manifest = chrome_sync_shell_test_apk_manifest | 797 android_manifest = chrome_sync_shell_test_apk_manifest |
| 797 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest" | 798 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest" |
| 798 deps = [ | 799 deps = [ |
| 799 ":chrome_sync_shell_test_apk_java", | 800 ":chrome_sync_shell_test_apk_java", |
| 800 ] | 801 ] |
| 801 proguard_enabled = !is_java_debug | 802 proguard_enabled = !is_java_debug |
| 802 } | 803 } |
| OLD | NEW |