• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2022 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// This file is automatically generated by gen_android_bp.py. Do not edit.
16
17// GN: Package-Artificial
18package {
19    default_applicable_licenses: [
20        "external_cronet_license",
21    ],
22}
23
24// GN: //url:url
25cc_library_static {
26    name: "tot_cronet_url_url",
27    srcs: [
28        "gurl.cc",
29        "origin.cc",
30        "scheme_host_port.cc",
31        "third_party/mozilla/url_parse.cc",
32        "url_canon.cc",
33        "url_canon_etc.cc",
34        "url_canon_filesystemurl.cc",
35        "url_canon_fileurl.cc",
36        "url_canon_host.cc",
37        "url_canon_internal.cc",
38        "url_canon_ip.cc",
39        "url_canon_mailtourl.cc",
40        "url_canon_non_special_url.cc",
41        "url_canon_path.cc",
42        "url_canon_pathurl.cc",
43        "url_canon_query.cc",
44        "url_canon_relative.cc",
45        "url_canon_stdstring.cc",
46        "url_canon_stdurl.cc",
47        "url_features.cc",
48        "url_idna_icu_alternatives_android.cc",
49        "url_parse_file.cc",
50        "url_util.cc",
51    ],
52    shared_libs: [
53        "libandroid",
54        "liblog",
55        "libz",
56        "tot_cronet_libcrypto",
57        "tot_cronet_libpki",
58        "tot_cronet_libssl",
59    ],
60    host_cross_supported: false,
61    generated_headers: [
62        "tot_cronet_base_allocator_buildflags",
63        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags",
64        "tot_cronet_base_anchor_functions_buildflags",
65        "tot_cronet_base_android_runtime_jni_headers__action",
66        "tot_cronet_base_base_jni__action",
67        "tot_cronet_base_base_shared_preferences_jni__action",
68        "tot_cronet_base_build_date",
69        "tot_cronet_base_callback_jni__action",
70        "tot_cronet_base_cfi_buildflags",
71        "tot_cronet_base_check_version_internal_action",
72        "tot_cronet_base_clang_profiling_buildflags",
73        "tot_cronet_base_command_line_jni__action",
74        "tot_cronet_base_content_uri_utils_jni__action",
75        "tot_cronet_base_debugging_buildflags",
76        "tot_cronet_base_feature_list_buildflags",
77        "tot_cronet_base_fuzzing_buildflags",
78        "tot_cronet_base_ios_cronet_buildflags",
79        "tot_cronet_base_jank_tracker_jni__action",
80        "tot_cronet_base_library_loader_jni__action",
81        "tot_cronet_base_memory_jni__action",
82        "tot_cronet_base_metrics_jni__action",
83        "tot_cronet_base_orderfile_buildflags",
84        "tot_cronet_base_power_monitor_buildflags",
85        "tot_cronet_base_process_launcher_jni__action",
86        "tot_cronet_base_profiler_buildflags",
87        "tot_cronet_base_protected_memory_buildflags",
88        "tot_cronet_base_rust_logger_cxx_generated_gen_header",
89        "tot_cronet_base_sanitizer_buildflags",
90        "tot_cronet_base_synchronization_buildflags",
91        "tot_cronet_base_sys_utils_jni__action",
92        "tot_cronet_base_tasks_jni__action",
93        "tot_cronet_base_tracing_buildflags",
94        "tot_cronet_build_blink_buildflags",
95        "tot_cronet_build_branding_buildflags",
96        "tot_cronet_build_chromecast_buildflags",
97        "tot_cronet_build_chromeos_buildflags",
98        "tot_cronet_build_config_compiler_compiler_buildflags",
99        "tot_cronet_build_ios_buildflags",
100        "tot_cronet_build_robolectric_buildflags",
101        "tot_cronet_third_party_jni_zero_generate_jni__action",
102        "tot_cronet_third_party_jni_zero_system_jni__action",
103        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header",
104        "tot_cronet_url_buildflags",
105        "tot_cronet_url_url_jni_headers__action",
106    ],
107    export_generated_headers: [
108        "tot_cronet_base_allocator_buildflags",
109        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags",
110        "tot_cronet_base_anchor_functions_buildflags",
111        "tot_cronet_base_android_runtime_jni_headers__action",
112        "tot_cronet_base_base_jni__action",
113        "tot_cronet_base_base_shared_preferences_jni__action",
114        "tot_cronet_base_build_date",
115        "tot_cronet_base_callback_jni__action",
116        "tot_cronet_base_cfi_buildflags",
117        "tot_cronet_base_check_version_internal_action",
118        "tot_cronet_base_clang_profiling_buildflags",
119        "tot_cronet_base_command_line_jni__action",
120        "tot_cronet_base_content_uri_utils_jni__action",
121        "tot_cronet_base_debugging_buildflags",
122        "tot_cronet_base_feature_list_buildflags",
123        "tot_cronet_base_fuzzing_buildflags",
124        "tot_cronet_base_ios_cronet_buildflags",
125        "tot_cronet_base_jank_tracker_jni__action",
126        "tot_cronet_base_library_loader_jni__action",
127        "tot_cronet_base_memory_jni__action",
128        "tot_cronet_base_metrics_jni__action",
129        "tot_cronet_base_orderfile_buildflags",
130        "tot_cronet_base_power_monitor_buildflags",
131        "tot_cronet_base_process_launcher_jni__action",
132        "tot_cronet_base_profiler_buildflags",
133        "tot_cronet_base_protected_memory_buildflags",
134        "tot_cronet_base_rust_logger_cxx_generated_gen_header",
135        "tot_cronet_base_sanitizer_buildflags",
136        "tot_cronet_base_synchronization_buildflags",
137        "tot_cronet_base_sys_utils_jni__action",
138        "tot_cronet_base_tasks_jni__action",
139        "tot_cronet_base_tracing_buildflags",
140        "tot_cronet_build_blink_buildflags",
141        "tot_cronet_build_branding_buildflags",
142        "tot_cronet_build_chromecast_buildflags",
143        "tot_cronet_build_chromeos_buildflags",
144        "tot_cronet_build_config_compiler_compiler_buildflags",
145        "tot_cronet_build_ios_buildflags",
146        "tot_cronet_build_robolectric_buildflags",
147        "tot_cronet_third_party_jni_zero_generate_jni__action",
148        "tot_cronet_third_party_jni_zero_system_jni__action",
149        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header",
150        "tot_cronet_url_buildflags",
151        "tot_cronet_url_url_jni_headers__action",
152    ],
153    defaults: [
154        "tot_cronet_cc_defaults",
155    ],
156    cflags: [
157        "-DANDROID",
158        "-DANDROID_NDK_VERSION_ROLL=r27_1",
159        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
160        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
161        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
162        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
163        "-DHAVE_SYS_UIO_H",
164        "-DIS_URL_IMPL",
165        "-DNDEBUG",
166        "-DNVALGRIND",
167        "-DOFFICIAL_BUILD",
168        "-DTMP_REBUILD_HACK",
169        "-D_GNU_SOURCE",
170        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
171        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
172        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
173        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
174        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
175        "-D__STDC_CONSTANT_MACROS",
176        "-D__STDC_FORMAT_MACROS",
177        "-fdata-sections",
178        "-ffunction-sections",
179        "-fstack-protector",
180        "-fvisibility-inlines-hidden",
181        "-fvisibility=hidden",
182        "-g1",
183    ],
184    include_dirs: [
185        "external/cronet/tot/",
186        "external/cronet/tot/base/allocator/partition_allocator/src/",
187        "external/cronet/tot/buildtools/third_party/libc++/",
188        "external/cronet/tot/third_party/abseil-cpp/",
189        "external/cronet/tot/third_party/boringssl/src/include/",
190        "external/cronet/tot/third_party/libc++/src/include",
191        "external/cronet/tot/third_party/libc++abi/src/include",
192    ],
193    cpp_std: "c++20",
194    ldflags: [
195        "-Wl,--as-needed",
196        "-Wl,--gc-sections",
197        "-Wl,--icf=all",
198        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
199    ],
200    visibility: [
201        "//external/cronet:__subpackages__",
202    ],
203    target: {
204        android_arm: {
205            cflags: [
206                "-D_FORTIFY_SOURCE=2",
207            ],
208        },
209        android_arm64: {
210            cflags: [
211                "-D_FORTIFY_SOURCE=2",
212                "-D__ARM_NEON__=1",
213                "-O2",
214                "-mno-outline",
215            ],
216        },
217        android_x86: {
218            cflags: [
219                "-D_FORTIFY_SOURCE=2",
220                "-msse3",
221            ],
222        },
223        android_x86_64: {
224            cflags: [
225                "-D_FORTIFY_SOURCE=2",
226                "-O2",
227                "-msse3",
228            ],
229        },
230    },
231}
232
233// GN: //url:url__testing
234cc_library_static {
235    name: "tot_cronet_url_url__testing",
236    srcs: [
237        "gurl.cc",
238        "origin.cc",
239        "scheme_host_port.cc",
240        "third_party/mozilla/url_parse.cc",
241        "url_canon.cc",
242        "url_canon_etc.cc",
243        "url_canon_filesystemurl.cc",
244        "url_canon_fileurl.cc",
245        "url_canon_host.cc",
246        "url_canon_internal.cc",
247        "url_canon_ip.cc",
248        "url_canon_mailtourl.cc",
249        "url_canon_non_special_url.cc",
250        "url_canon_path.cc",
251        "url_canon_pathurl.cc",
252        "url_canon_query.cc",
253        "url_canon_relative.cc",
254        "url_canon_stdstring.cc",
255        "url_canon_stdurl.cc",
256        "url_features.cc",
257        "url_idna_icu_alternatives_android.cc",
258        "url_parse_file.cc",
259        "url_util.cc",
260    ],
261    shared_libs: [
262        "libandroid",
263        "liblog",
264        "libz",
265    ],
266    host_cross_supported: false,
267    generated_headers: [
268        "tot_cronet_base_allocator_buildflags__testing",
269        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
270        "tot_cronet_base_anchor_functions_buildflags__testing",
271        "tot_cronet_base_build_date__testing",
272        "tot_cronet_base_cfi_buildflags__testing",
273        "tot_cronet_base_check_version_internal_action__testing",
274        "tot_cronet_base_clang_profiling_buildflags__testing",
275        "tot_cronet_base_debugging_buildflags__testing",
276        "tot_cronet_base_feature_list_buildflags__testing",
277        "tot_cronet_base_fuzzing_buildflags__testing",
278        "tot_cronet_base_ios_cronet_buildflags__testing",
279        "tot_cronet_base_orderfile_buildflags__testing",
280        "tot_cronet_base_power_monitor_buildflags__testing",
281        "tot_cronet_base_profiler_buildflags__testing",
282        "tot_cronet_base_protected_memory_buildflags__testing",
283        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
284        "tot_cronet_base_sanitizer_buildflags__testing",
285        "tot_cronet_base_synchronization_buildflags__testing",
286        "tot_cronet_base_tracing_buildflags__testing",
287        "tot_cronet_build_blink_buildflags__testing",
288        "tot_cronet_build_branding_buildflags__testing",
289        "tot_cronet_build_chromecast_buildflags__testing",
290        "tot_cronet_build_chromeos_buildflags__testing",
291        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
292        "tot_cronet_build_ios_buildflags__testing",
293        "tot_cronet_build_robolectric_buildflags__testing",
294        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
295        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
296        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
297        "tot_cronet_url_buildflags__testing",
298        "tot_cronet_url_url_jni_headers__action__testing",
299    ],
300    export_generated_headers: [
301        "tot_cronet_base_allocator_buildflags__testing",
302        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
303        "tot_cronet_base_anchor_functions_buildflags__testing",
304        "tot_cronet_base_build_date__testing",
305        "tot_cronet_base_cfi_buildflags__testing",
306        "tot_cronet_base_check_version_internal_action__testing",
307        "tot_cronet_base_clang_profiling_buildflags__testing",
308        "tot_cronet_base_debugging_buildflags__testing",
309        "tot_cronet_base_feature_list_buildflags__testing",
310        "tot_cronet_base_fuzzing_buildflags__testing",
311        "tot_cronet_base_ios_cronet_buildflags__testing",
312        "tot_cronet_base_orderfile_buildflags__testing",
313        "tot_cronet_base_power_monitor_buildflags__testing",
314        "tot_cronet_base_profiler_buildflags__testing",
315        "tot_cronet_base_protected_memory_buildflags__testing",
316        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
317        "tot_cronet_base_sanitizer_buildflags__testing",
318        "tot_cronet_base_synchronization_buildflags__testing",
319        "tot_cronet_base_tracing_buildflags__testing",
320        "tot_cronet_build_blink_buildflags__testing",
321        "tot_cronet_build_branding_buildflags__testing",
322        "tot_cronet_build_chromecast_buildflags__testing",
323        "tot_cronet_build_chromeos_buildflags__testing",
324        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
325        "tot_cronet_build_ios_buildflags__testing",
326        "tot_cronet_build_robolectric_buildflags__testing",
327        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
328        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
329        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
330        "tot_cronet_url_buildflags__testing",
331        "tot_cronet_url_url_jni_headers__action__testing",
332    ],
333    defaults: [
334        "tot_cronet_cc_defaults",
335    ],
336    cflags: [
337        "-DANDROID",
338        "-DANDROID_NDK_VERSION_ROLL=r27_1",
339        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
340        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
341        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
342        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
343        "-DHAVE_SYS_UIO_H",
344        "-DIS_URL_IMPL",
345        "-DNDEBUG",
346        "-DNVALGRIND",
347        "-DOFFICIAL_BUILD",
348        "-DTMP_REBUILD_HACK",
349        "-D_GNU_SOURCE",
350        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
351        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
352        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
353        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
354        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
355        "-D__STDC_CONSTANT_MACROS",
356        "-D__STDC_FORMAT_MACROS",
357        "-fdata-sections",
358        "-ffunction-sections",
359        "-fstack-protector",
360        "-fvisibility-inlines-hidden",
361        "-fvisibility=hidden",
362        "-g1",
363    ],
364    include_dirs: [
365        "external/cronet/tot/",
366        "external/cronet/tot/base/allocator/partition_allocator/src/",
367        "external/cronet/tot/buildtools/third_party/libc++/",
368        "external/cronet/tot/third_party/abseil-cpp/",
369        "external/cronet/tot/third_party/boringssl/src/include/",
370        "external/cronet/tot/third_party/libc++/src/include",
371        "external/cronet/tot/third_party/libc++abi/src/include",
372    ],
373    cpp_std: "c++20",
374    ldflags: [
375        "-Wl,--as-needed",
376        "-Wl,--gc-sections",
377        "-Wl,--icf=all",
378        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
379    ],
380    visibility: [
381        "//external/cronet:__subpackages__",
382    ],
383    target: {
384        android_arm: {
385            cflags: [
386                "-D_FORTIFY_SOURCE=2",
387            ],
388        },
389        android_arm64: {
390            cflags: [
391                "-D_FORTIFY_SOURCE=2",
392                "-D__ARM_NEON__=1",
393                "-O2",
394                "-mno-outline",
395            ],
396        },
397        android_x86: {
398            cflags: [
399                "-D_FORTIFY_SOURCE=2",
400                "-msse3",
401            ],
402        },
403        android_x86_64: {
404            cflags: [
405                "-D_FORTIFY_SOURCE=2",
406                "-O2",
407                "-msse3",
408            ],
409        },
410    },
411}
412
413// GN: //url:url_java
414java_library {
415    name: "tot_cronet_url_url_java",
416    srcs: [
417        ":tot_cronet_url_url_jni_headers__action__java",
418        "android/java/src/org/chromium/url/IDNStringUtil.java",
419    ],
420    static_libs: [
421        "tot_cronet_third_party_jni_zero_jni_zero_java",
422    ],
423    defaults: [
424        "tot_cronet_java_framework_defaults",
425    ],
426    apex_available: [
427        "com.android.tethering",
428    ],
429    min_sdk_version: "30",
430    visibility: [
431        "//external/cronet:__subpackages__",
432    ],
433    jarjar_rules: ":remove_gen_jni_jarjar_rules",
434}
435
436// GN: //url:url_java__testing
437java_library {
438    name: "tot_cronet_url_url_java__testing",
439    srcs: [
440        ":tot_cronet_url_url_jni_headers__action__testing__java",
441        "android/java/src/org/chromium/url/IDNStringUtil.java",
442    ],
443    static_libs: [
444        "tot_cronet_third_party_jni_zero_jni_zero_java__testing",
445    ],
446    apex_available: [
447        "com.android.tethering",
448    ],
449    min_sdk_version: "30",
450    sdk_version: "current",
451    visibility: [
452        "//external/cronet:__subpackages__",
453    ],
454    jarjar_rules: ":remove_gen_jni_jarjar_rules",
455}
456