| 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/process_version.gni") | 8 import("//build/util/process_version.gni") |
| 9 import("//build/util/version.gni") | 9 import("//build/util/version.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ] | 27 ] |
| 28 jni_package = "cronet" | 28 jni_package = "cronet" |
| 29 } | 29 } |
| 30 | 30 |
| 31 java_cpp_enum("effective_connection_type_java") { | 31 java_cpp_enum("effective_connection_type_java") { |
| 32 sources = [ | 32 sources = [ |
| 33 "//net/nqe/effective_connection_type.h", | 33 "//net/nqe/effective_connection_type.h", |
| 34 ] | 34 ] |
| 35 } | 35 } |
| 36 | 36 |
| 37 java_cpp_enum("rtt_throughput_values_java") { |
| 38 sources = [ |
| 39 "//net/nqe/network_quality.h", |
| 40 ] |
| 41 } |
| 42 |
| 37 java_cpp_enum("chromium_url_request_java") { | 43 java_cpp_enum("chromium_url_request_java") { |
| 38 sources = [ | 44 sources = [ |
| 39 "chromium_url_request.h", | 45 "chromium_url_request.h", |
| 40 ] | 46 ] |
| 41 } | 47 } |
| 42 | 48 |
| 43 java_cpp_enum("net_request_priority_java") { | 49 java_cpp_enum("net_request_priority_java") { |
| 44 sources = [ | 50 sources = [ |
| 45 "//net/base/request_priority.h", | 51 "//net/base/request_priority.h", |
| 46 ] | 52 ] |
| (...skipping 12 matching lines...) Expand all Loading... |
| 59 } | 65 } |
| 60 | 66 |
| 61 # This target is a jar file containing classes that Cronet's javadocs | 67 # This target is a jar file containing classes that Cronet's javadocs |
| 62 # may reference but are not included in the javadocs themselves. | 68 # may reference but are not included in the javadocs themselves. |
| 63 android_library("cronet_javadoc_classpath") { | 69 android_library("cronet_javadoc_classpath") { |
| 64 deps = [ | 70 deps = [ |
| 65 "//third_party/android_tools:android_support_annotations_java", | 71 "//third_party/android_tools:android_support_annotations_java", |
| 66 ] | 72 ] |
| 67 srcjar_deps = [ | 73 srcjar_deps = [ |
| 68 ":effective_connection_type_java", | 74 ":effective_connection_type_java", |
| 75 ":rtt_throughput_values_java", |
| 69 ":url_request_error_java", | 76 ":url_request_error_java", |
| 70 ] | 77 ] |
| 71 } | 78 } |
| 72 | 79 |
| 73 java_cpp_enum("http_cache_type_java") { | 80 java_cpp_enum("http_cache_type_java") { |
| 74 sources = [ | 81 sources = [ |
| 75 "//components/cronet/url_request_context_config.h", | 82 "//components/cronet/url_request_context_config.h", |
| 76 ] | 83 ] |
| 77 } | 84 } |
| 78 | 85 |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 "api/src/org/chromium/net/UserAgent.java", | 308 "api/src/org/chromium/net/UserAgent.java", |
| 302 ] | 309 ] |
| 303 | 310 |
| 304 deps = [ | 311 deps = [ |
| 305 "//third_party/android_tools:android_support_annotations_java", | 312 "//third_party/android_tools:android_support_annotations_java", |
| 306 ] | 313 ] |
| 307 | 314 |
| 308 srcjar_deps = [ | 315 srcjar_deps = [ |
| 309 ":cronet_api_version_srcjar", | 316 ":cronet_api_version_srcjar", |
| 310 ":effective_connection_type_java", | 317 ":effective_connection_type_java", |
| 318 ":rtt_throughput_values_java", |
| 311 ":http_cache_type_java", | 319 ":http_cache_type_java", |
| 312 ":url_request_error_java", | 320 ":url_request_error_java", |
| 313 ":load_states_list", | 321 ":load_states_list", |
| 314 ":network_quality_observation_source_java", | 322 ":network_quality_observation_source_java", |
| 315 ] | 323 ] |
| 316 | 324 |
| 317 run_findbugs_override = true | 325 run_findbugs_override = true |
| 318 } | 326 } |
| 319 | 327 |
| 320 android_library("cronet_java") { | 328 android_library("cronet_java") { |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 inputs = _src_jars | 865 inputs = _src_jars |
| 858 inputs += _src_files | 866 inputs += _src_files |
| 859 inputs += _src_list_files | 867 inputs += _src_list_files |
| 860 } | 868 } |
| 861 } | 869 } |
| 862 | 870 |
| 863 jar_src("jar_cronet_api_source") { | 871 jar_src("jar_cronet_api_source") { |
| 864 src_search_dirs = [ "api/src" ] | 872 src_search_dirs = [ "api/src" ] |
| 865 | 873 |
| 866 # Include generated Java files which should be a part of the API. | 874 # Include generated Java files which should be a part of the API. |
| 867 srcjar_deps = [ ":effective_connection_type_java" ] | 875 srcjar_deps = [ |
| 876 ":effective_connection_type_java", |
| 877 ":rtt_throughput_values_java", |
| 878 ] |
| 868 source_deps = [ ":cronet_api" ] | 879 source_deps = [ ":cronet_api" ] |
| 869 jar_path = "$_package_dir/cronet_api-src.jar" | 880 jar_path = "$_package_dir/cronet_api-src.jar" |
| 870 } | 881 } |
| 871 | 882 |
| 872 zip("jar_cronet_sample_source") { | 883 zip("jar_cronet_sample_source") { |
| 873 inputs = [ | 884 inputs = [ |
| 874 "sample/AndroidManifest.xml", | 885 "sample/AndroidManifest.xml", |
| 875 "sample/javatests/AndroidManifest.xml", | 886 "sample/javatests/AndroidManifest.xml", |
| 876 "sample/javatests/proguard.cfg", | 887 "sample/javatests/proguard.cfg", |
| 877 "sample/javatests/src/org/chromium/cronet_sample_apk/Criteria.java", | 888 "sample/javatests/src/org/chromium/cronet_sample_apk/Criteria.java", |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 ":jar_cronet_api_source", | 1053 ":jar_cronet_api_source", |
| 1043 ":jar_cronet_other_source", | 1054 ":jar_cronet_other_source", |
| 1044 ":jar_cronet_sample_source", | 1055 ":jar_cronet_sample_source", |
| 1045 ":repackage_extracted_jars", | 1056 ":repackage_extracted_jars", |
| 1046 ] | 1057 ] |
| 1047 if (current_cpu == "arm" && arm_version == 7) { | 1058 if (current_cpu == "arm" && arm_version == 7) { |
| 1048 deps += [ ":enforce_no_neon" ] | 1059 deps += [ ":enforce_no_neon" ] |
| 1049 } | 1060 } |
| 1050 } | 1061 } |
| 1051 } | 1062 } |
| OLD | NEW |