| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/buildflag_header.gni") | 5 import("//build/buildflag_header.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/util/version.gni") | 8 import("//build/util/version.gni") |
| 9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 "//base:base_java", | 395 "//base:base_java", |
| 396 "//third_party/jsr-305:jsr_305_javalib", | 396 "//third_party/jsr-305:jsr_305_javalib", |
| 397 ] | 397 ] |
| 398 | 398 |
| 399 run_findbugs_override = true | 399 run_findbugs_override = true |
| 400 if (!is_java_debug) { | 400 if (!is_java_debug) { |
| 401 proguard_enabled = true | 401 proguard_enabled = true |
| 402 proguard_configs = [ | 402 proguard_configs = [ |
| 403 "proguard.cfg", | 403 "proguard.cfg", |
| 404 "sample/javatests/proguard.cfg", | 404 "sample/javatests/proguard.cfg", |
| 405 "//base/android/base_proguard_config.flags", | 405 "//base/android/proguard/chromium_apk.flags", |
| 406 "//base/android/proguard/chromium_code.flags", |
| 406 ] | 407 ] |
| 407 } | 408 } |
| 408 } | 409 } |
| 409 | 410 |
| 410 # cronet_sample_test_apk_resources is identical to | 411 # cronet_sample_test_apk_resources is identical to |
| 411 # cronet_sample_apk_resources. The two have to be different targets because | 412 # cronet_sample_apk_resources. The two have to be different targets because |
| 412 # targets which are common between the "instrumentation test apk" and the | 413 # targets which are common between the "instrumentation test apk" and the |
| 413 # "tested apk" are removed from the "instrumentation test apk". | 414 # "tested apk" are removed from the "instrumentation test apk". |
| 414 android_resources("cronet_sample_test_apk_resources") { | 415 android_resources("cronet_sample_test_apk_resources") { |
| 415 resource_dirs = [ "sample/res" ] | 416 resource_dirs = [ "sample/res" ] |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 ":cronet_perf_test_apk_java", | 712 ":cronet_perf_test_apk_java", |
| 712 ":cronet_test_apk_java", | 713 ":cronet_test_apk_java", |
| 713 "//base:base_java", | 714 "//base:base_java", |
| 714 ] | 715 ] |
| 715 | 716 |
| 716 run_findbugs_override = true | 717 run_findbugs_override = true |
| 717 proguard_enabled = true | 718 proguard_enabled = true |
| 718 proguard_configs = [ | 719 proguard_configs = [ |
| 719 "proguard.cfg", | 720 "proguard.cfg", |
| 720 "test/javaperftests/proguard.cfg", | 721 "test/javaperftests/proguard.cfg", |
| 721 "//base/android/base_proguard_config.flags", | 722 "//base/android/proguard/chromium_apk.flags", |
| 723 "//base/android/proguard/chromium_code.flags", |
| 722 ] | 724 ] |
| 723 } | 725 } |
| 724 | 726 |
| 725 test("cronet_unittests") { | 727 test("cronet_unittests") { |
| 726 sources = [ | 728 sources = [ |
| 727 "//components/cronet/android/cert/cert_verifier_cache_serializer_unittest.cc
", | 729 "//components/cronet/android/cert/cert_verifier_cache_serializer_unittest.cc
", |
| 728 "//components/cronet/histogram_manager_unittest.cc", | 730 "//components/cronet/histogram_manager_unittest.cc", |
| 729 "//components/cronet/run_all_unittests.cc", | 731 "//components/cronet/run_all_unittests.cc", |
| 730 "//components/cronet/stale_host_resolver_unittest.cc", | 732 "//components/cronet/stale_host_resolver_unittest.cc", |
| 731 "//components/cronet/url_request_context_config_unittest.cc", | 733 "//components/cronet/url_request_context_config_unittest.cc", |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 | 917 |
| 916 action("cronet_combine_proguard_flags") { | 918 action("cronet_combine_proguard_flags") { |
| 917 script = "//components/cronet/tools/generate_proguard_file.py" | 919 script = "//components/cronet/tools/generate_proguard_file.py" |
| 918 outputs = [ | 920 outputs = [ |
| 919 "$_package_dir/proguard.cfg", | 921 "$_package_dir/proguard.cfg", |
| 920 ] | 922 ] |
| 921 | 923 |
| 922 args = [ | 924 args = [ |
| 923 "--output-file", | 925 "--output-file", |
| 924 rebase_path("$_package_dir/proguard.cfg", root_build_dir), | 926 rebase_path("$_package_dir/proguard.cfg", root_build_dir), |
| 925 rebase_path("//base/android/base_proguard_config.flags", root_build_dir), | 927 rebase_path("//base/android/proguard/chromium_code.flags", root_build_dir), |
| 926 rebase_path("//components/cronet/android/proguard.cfg", root_build_dir), | 928 rebase_path("//components/cronet/android/proguard.cfg", root_build_dir), |
| 927 ] | 929 ] |
| 928 } | 930 } |
| 929 | 931 |
| 930 copy("cronet_package_copy_native_lib") { | 932 copy("cronet_package_copy_native_lib") { |
| 931 sources = [ | 933 sources = [ |
| 932 "$root_out_dir/libcronet.so", | 934 "$root_out_dir/libcronet.so", |
| 933 ] | 935 ] |
| 934 outputs = [ | 936 outputs = [ |
| 935 "$_package_dir/libs/${android_app_abi}/libcronet.so", | 937 "$_package_dir/libs/${android_app_abi}/libcronet.so", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 ":jar_cronet_api_source", | 989 ":jar_cronet_api_source", |
| 988 ":jar_cronet_other_source", | 990 ":jar_cronet_other_source", |
| 989 ":jar_cronet_sample_source", | 991 ":jar_cronet_sample_source", |
| 990 ":repackage_extracted_jars", | 992 ":repackage_extracted_jars", |
| 991 ] | 993 ] |
| 992 if (current_cpu == "arm" && arm_version == 7) { | 994 if (current_cpu == "arm" && arm_version == 7) { |
| 993 deps += [ ":enforce_no_neon" ] | 995 deps += [ ":enforce_no_neon" ] |
| 994 } | 996 } |
| 995 } | 997 } |
| 996 } | 998 } |
| OLD | NEW |