Chromium Code Reviews| 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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 839 rebase_path(depfile, root_build_dir), | 839 rebase_path(depfile, root_build_dir), |
| 840 "--lib-java-dir", | 840 "--lib-java-dir", |
| 841 rebase_path("$root_build_dir/lib.java/components/cronet/android", | 841 rebase_path("$root_build_dir/lib.java/components/cronet/android", |
| 842 root_build_dir), | 842 root_build_dir), |
| 843 ] | 843 ] |
| 844 deps = [ | 844 deps = [ |
| 845 ":cronet_javadoc_classpath", | 845 ":cronet_javadoc_classpath", |
| 846 ] | 846 ] |
| 847 } | 847 } |
| 848 | 848 |
| 849 action("enforce_no_neon") { | |
| 850 script = "//components/cronet/tools/check_no_neon.py" | |
| 851 args = [ | |
| 852 rebase_path("${android_tool_prefix}objdump", root_build_dir), | |
| 853 | |
| 854 # libcronet.so may contain ARM Neon instructions from BoringSSL, but these | |
| 855 # are only used after checking whether the CPU supports NEON at runtime, | |
| 856 # so instead check base/ as it represents a large swath of code that only | |
| 857 # contains Neon instructions when Neon is enabled by default. | |
| 858 rebase_path("$root_out_dir/obj/base/base/*.o", root_build_dir), | |
| 859 ] | |
| 860 outputs = [ | |
| 861 "$root_out_dir/cronet_$target_name.d", | |
| 862 ] | |
| 863 deps = [ | |
| 864 "//base:base", | |
| 865 ] | |
| 866 } | |
| 867 | |
| 849 copy("cronet_package_copy") { | 868 copy("cronet_package_copy") { |
| 850 sources = [ | 869 sources = [ |
| 851 "$root_out_dir/lib.java/components/cronet/android/cronet_api.jar", | 870 "$root_out_dir/lib.java/components/cronet/android/cronet_api.jar", |
| 852 "//AUTHORS", | 871 "//AUTHORS", |
| 853 "//chrome/VERSION", | 872 "//chrome/VERSION", |
| 854 "//components/cronet/android/proguard.cfg", | 873 "//components/cronet/android/proguard.cfg", |
| 855 ] | 874 ] |
| 856 outputs = [ | 875 outputs = [ |
| 857 "$_package_dir/{{source_file_part}}", | 876 "$_package_dir/{{source_file_part}}", |
| 858 ] | 877 ] |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 891 ":cronet_package_copy", | 910 ":cronet_package_copy", |
| 892 ":cronet_package_copy_native_lib", | 911 ":cronet_package_copy_native_lib", |
| 893 ":cronet_package_copy_native_lib_unstripped", | 912 ":cronet_package_copy_native_lib_unstripped", |
| 894 ":generate_javadoc", | 913 ":generate_javadoc", |
| 895 ":generate_licenses", | 914 ":generate_licenses", |
| 896 ":jar_cronet_api_source", | 915 ":jar_cronet_api_source", |
| 897 ":jar_cronet_other_source", | 916 ":jar_cronet_other_source", |
| 898 ":jar_cronet_sample_source", | 917 ":jar_cronet_sample_source", |
| 899 ":repackage_extracted_jars", | 918 ":repackage_extracted_jars", |
| 900 ] | 919 ] |
| 920 if (current_cpu == "arm" && arm_version == 7) { | |
| 921 deps += [ ":enforce_no_neon" ] | |
|
jbudorick
2016/07/19 18:49:16
This is an interesting way to handle this. You cou
pauljensen
2016/07/20 15:04:37
Done.
| |
| 922 } | |
| 901 } | 923 } |
| OLD | NEW |