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