• 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: //net/dns/public:public
25cc_library_static {
26    name: "stable_cronet_net_dns_public_public",
27    srcs: [
28        "dns_config_overrides.cc",
29        "dns_over_https_config.cc",
30        "dns_over_https_server_config.cc",
31        "dns_query_type.cc",
32        "doh_provider_entry.cc",
33        "host_resolver_results.cc",
34        "host_resolver_source.cc",
35        "resolve_error_info.cc",
36        "secure_dns_policy.cc",
37        "util.cc",
38    ],
39    shared_libs: [
40        "libandroid",
41        "liblog",
42        "libprotobuf-cpp-lite",
43        "libz",
44        "stable_cronet_libcrypto",
45        "stable_cronet_libpki",
46        "stable_cronet_libssl",
47    ],
48    host_cross_supported: false,
49    generated_headers: [
50        "stable_cronet_base_allocator_buildflags",
51        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags",
52        "stable_cronet_base_anchor_functions_buildflags",
53        "stable_cronet_base_android_runtime_jni_headers__action",
54        "stable_cronet_base_base_jni__action",
55        "stable_cronet_base_base_shared_preferences_jni__action",
56        "stable_cronet_base_build_date",
57        "stable_cronet_base_callback_jni__action",
58        "stable_cronet_base_cfi_buildflags",
59        "stable_cronet_base_check_version_internal_action",
60        "stable_cronet_base_clang_profiling_buildflags",
61        "stable_cronet_base_command_line_jni__action",
62        "stable_cronet_base_content_uri_utils_jni__action",
63        "stable_cronet_base_debugging_buildflags",
64        "stable_cronet_base_feature_list_buildflags",
65        "stable_cronet_base_fuzzing_buildflags",
66        "stable_cronet_base_ios_cronet_buildflags",
67        "stable_cronet_base_jank_tracker_jni__action",
68        "stable_cronet_base_library_loader_jni__action",
69        "stable_cronet_base_memory_jni__action",
70        "stable_cronet_base_metrics_jni__action",
71        "stable_cronet_base_orderfile_buildflags",
72        "stable_cronet_base_power_monitor_buildflags",
73        "stable_cronet_base_process_launcher_jni__action",
74        "stable_cronet_base_profiler_buildflags",
75        "stable_cronet_base_protected_memory_buildflags",
76        "stable_cronet_base_rust_logger_cxx_generated_gen_header",
77        "stable_cronet_base_sanitizer_buildflags",
78        "stable_cronet_base_synchronization_buildflags",
79        "stable_cronet_base_sys_utils_jni__action",
80        "stable_cronet_base_tasks_jni__action",
81        "stable_cronet_base_tracing_buildflags",
82        "stable_cronet_build_blink_buildflags",
83        "stable_cronet_build_branding_buildflags",
84        "stable_cronet_build_chromecast_buildflags",
85        "stable_cronet_build_chromeos_buildflags",
86        "stable_cronet_build_config_compiler_compiler_buildflags",
87        "stable_cronet_build_ios_buildflags",
88        "stable_cronet_build_robolectric_buildflags",
89        "stable_cronet_crypto_buildflags",
90        "stable_cronet_net_base_registry_controlled_domains_registry_controlled_domains",
91        "stable_cronet_net_buildflags",
92        "stable_cronet_net_cronet_buildflags",
93        "stable_cronet_net_isolation_info_proto_gen_headers",
94        "stable_cronet_net_net_jni_headers__action",
95        "stable_cronet_net_net_nqe_proto_gen_headers",
96        "stable_cronet_net_third_party_quiche_net_quic_proto_gen_headers",
97        "stable_cronet_net_third_party_quiche_net_quic_test_tools_proto_gen_headers",
98        "stable_cronet_third_party_jni_zero_generate_jni__action",
99        "stable_cronet_third_party_jni_zero_system_jni__action",
100        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header",
101        "stable_cronet_url_buildflags",
102        "stable_cronet_url_url_jni_headers__action",
103    ],
104    export_generated_headers: [
105        "stable_cronet_base_allocator_buildflags",
106        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags",
107        "stable_cronet_base_anchor_functions_buildflags",
108        "stable_cronet_base_android_runtime_jni_headers__action",
109        "stable_cronet_base_base_jni__action",
110        "stable_cronet_base_base_shared_preferences_jni__action",
111        "stable_cronet_base_build_date",
112        "stable_cronet_base_callback_jni__action",
113        "stable_cronet_base_cfi_buildflags",
114        "stable_cronet_base_check_version_internal_action",
115        "stable_cronet_base_clang_profiling_buildflags",
116        "stable_cronet_base_command_line_jni__action",
117        "stable_cronet_base_content_uri_utils_jni__action",
118        "stable_cronet_base_debugging_buildflags",
119        "stable_cronet_base_feature_list_buildflags",
120        "stable_cronet_base_fuzzing_buildflags",
121        "stable_cronet_base_ios_cronet_buildflags",
122        "stable_cronet_base_jank_tracker_jni__action",
123        "stable_cronet_base_library_loader_jni__action",
124        "stable_cronet_base_memory_jni__action",
125        "stable_cronet_base_metrics_jni__action",
126        "stable_cronet_base_orderfile_buildflags",
127        "stable_cronet_base_power_monitor_buildflags",
128        "stable_cronet_base_process_launcher_jni__action",
129        "stable_cronet_base_profiler_buildflags",
130        "stable_cronet_base_protected_memory_buildflags",
131        "stable_cronet_base_rust_logger_cxx_generated_gen_header",
132        "stable_cronet_base_sanitizer_buildflags",
133        "stable_cronet_base_synchronization_buildflags",
134        "stable_cronet_base_sys_utils_jni__action",
135        "stable_cronet_base_tasks_jni__action",
136        "stable_cronet_base_tracing_buildflags",
137        "stable_cronet_build_blink_buildflags",
138        "stable_cronet_build_branding_buildflags",
139        "stable_cronet_build_chromecast_buildflags",
140        "stable_cronet_build_chromeos_buildflags",
141        "stable_cronet_build_config_compiler_compiler_buildflags",
142        "stable_cronet_build_ios_buildflags",
143        "stable_cronet_build_robolectric_buildflags",
144        "stable_cronet_crypto_buildflags",
145        "stable_cronet_net_base_registry_controlled_domains_registry_controlled_domains",
146        "stable_cronet_net_buildflags",
147        "stable_cronet_net_cronet_buildflags",
148        "stable_cronet_net_isolation_info_proto_gen_headers",
149        "stable_cronet_net_net_jni_headers__action",
150        "stable_cronet_net_net_nqe_proto_gen_headers",
151        "stable_cronet_net_third_party_quiche_net_quic_proto_gen_headers",
152        "stable_cronet_net_third_party_quiche_net_quic_test_tools_proto_gen_headers",
153        "stable_cronet_third_party_jni_zero_generate_jni__action",
154        "stable_cronet_third_party_jni_zero_system_jni__action",
155        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header",
156        "stable_cronet_url_buildflags",
157        "stable_cronet_url_url_jni_headers__action",
158    ],
159    defaults: [
160        "stable_cronet_cc_defaults",
161    ],
162    cflags: [
163        "-DANDROID",
164        "-DANDROID_NDK_VERSION_ROLL=r27_1",
165        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
166        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
167        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
168        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
169        "-DENABLE_BUILT_IN_DNS",
170        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
171        "-DGOOGLE_PROTOBUF_NO_RTTI",
172        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
173        "-DHAVE_PTHREAD",
174        "-DHAVE_SYS_UIO_H",
175        "-DNDEBUG",
176        "-DNET_IMPLEMENTATION",
177        "-DNVALGRIND",
178        "-DOFFICIAL_BUILD",
179        "-DTMP_REBUILD_HACK",
180        "-D_GNU_SOURCE",
181        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
182        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
183        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
184        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
185        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
186        "-D__STDC_CONSTANT_MACROS",
187        "-D__STDC_FORMAT_MACROS",
188        "-fdata-sections",
189        "-ffunction-sections",
190        "-fstack-protector",
191        "-fvisibility-inlines-hidden",
192        "-fvisibility=hidden",
193        "-g1",
194    ],
195    include_dirs: [
196        "external/cronet/stable/",
197        "external/cronet/stable/base/allocator/partition_allocator/src/",
198        "external/cronet/stable/buildtools/third_party/libc++/",
199        "external/cronet/stable/net/third_party/quiche/overrides/",
200        "external/cronet/stable/net/third_party/quiche/src/",
201        "external/cronet/stable/net/third_party/quiche/src/quiche/common/platform/default/",
202        "external/cronet/stable/third_party/abseil-cpp/",
203        "external/cronet/stable/third_party/boringssl/src/include/",
204        "external/cronet/stable/third_party/brotli/include/",
205        "external/cronet/stable/third_party/libc++/src/include",
206        "external/cronet/stable/third_party/libc++abi/src/include",
207        "external/cronet/stable/third_party/protobuf/src/",
208    ],
209    cpp_std: "c++20",
210    ldflags: [
211        "-Wl,--as-needed",
212        "-Wl,--gc-sections",
213        "-Wl,--icf=all",
214        "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds",
215    ],
216    visibility: [
217        "//external/cronet:__subpackages__",
218    ],
219    target: {
220        android_arm: {
221            cflags: [
222                "-D_FORTIFY_SOURCE=2",
223            ],
224        },
225        android_arm64: {
226            cflags: [
227                "-D_FORTIFY_SOURCE=2",
228                "-D__ARM_NEON__=1",
229                "-O2",
230                "-mno-outline",
231            ],
232        },
233        android_x86: {
234            cflags: [
235                "-D_FORTIFY_SOURCE=2",
236                "-msse3",
237            ],
238        },
239        android_x86_64: {
240            cflags: [
241                "-D_FORTIFY_SOURCE=2",
242                "-O2",
243                "-msse3",
244            ],
245        },
246    },
247}
248
249// GN: //net/dns/public:public__testing
250cc_library_static {
251    name: "stable_cronet_net_dns_public_public__testing",
252    srcs: [
253        "dns_config_overrides.cc",
254        "dns_over_https_config.cc",
255        "dns_over_https_server_config.cc",
256        "dns_query_type.cc",
257        "doh_provider_entry.cc",
258        "host_resolver_results.cc",
259        "host_resolver_source.cc",
260        "resolve_error_info.cc",
261        "secure_dns_policy.cc",
262        "util.cc",
263    ],
264    shared_libs: [
265        "libandroid",
266        "liblog",
267        "libprotobuf-cpp-lite",
268        "libz",
269    ],
270    host_cross_supported: false,
271    generated_headers: [
272        "stable_cronet_base_allocator_buildflags__testing",
273        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
274        "stable_cronet_base_anchor_functions_buildflags__testing",
275        "stable_cronet_base_build_date__testing",
276        "stable_cronet_base_cfi_buildflags__testing",
277        "stable_cronet_base_check_version_internal_action__testing",
278        "stable_cronet_base_clang_profiling_buildflags__testing",
279        "stable_cronet_base_debugging_buildflags__testing",
280        "stable_cronet_base_feature_list_buildflags__testing",
281        "stable_cronet_base_fuzzing_buildflags__testing",
282        "stable_cronet_base_ios_cronet_buildflags__testing",
283        "stable_cronet_base_orderfile_buildflags__testing",
284        "stable_cronet_base_power_monitor_buildflags__testing",
285        "stable_cronet_base_profiler_buildflags__testing",
286        "stable_cronet_base_protected_memory_buildflags__testing",
287        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
288        "stable_cronet_base_sanitizer_buildflags__testing",
289        "stable_cronet_base_synchronization_buildflags__testing",
290        "stable_cronet_base_tracing_buildflags__testing",
291        "stable_cronet_build_blink_buildflags__testing",
292        "stable_cronet_build_branding_buildflags__testing",
293        "stable_cronet_build_chromecast_buildflags__testing",
294        "stable_cronet_build_chromeos_buildflags__testing",
295        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
296        "stable_cronet_build_ios_buildflags__testing",
297        "stable_cronet_build_robolectric_buildflags__testing",
298        "stable_cronet_crypto_buildflags__testing",
299        "stable_cronet_net_base_registry_controlled_domains_registry_controlled_domains__testing",
300        "stable_cronet_net_buildflags__testing",
301        "stable_cronet_net_cronet_buildflags__testing",
302        "stable_cronet_net_isolation_info_proto_gen__testing_headers",
303        "stable_cronet_net_net_jni_headers__action__testing",
304        "stable_cronet_net_net_nqe_proto_gen__testing_headers",
305        "stable_cronet_net_third_party_quiche_net_quic_proto_gen__testing_headers",
306        "stable_cronet_net_third_party_quiche_net_quic_test_tools_proto_gen__testing_headers",
307        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
308        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
309        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
310        "stable_cronet_url_buildflags__testing",
311        "stable_cronet_url_url_jni_headers__action__testing",
312    ],
313    export_generated_headers: [
314        "stable_cronet_base_allocator_buildflags__testing",
315        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
316        "stable_cronet_base_anchor_functions_buildflags__testing",
317        "stable_cronet_base_build_date__testing",
318        "stable_cronet_base_cfi_buildflags__testing",
319        "stable_cronet_base_check_version_internal_action__testing",
320        "stable_cronet_base_clang_profiling_buildflags__testing",
321        "stable_cronet_base_debugging_buildflags__testing",
322        "stable_cronet_base_feature_list_buildflags__testing",
323        "stable_cronet_base_fuzzing_buildflags__testing",
324        "stable_cronet_base_ios_cronet_buildflags__testing",
325        "stable_cronet_base_orderfile_buildflags__testing",
326        "stable_cronet_base_power_monitor_buildflags__testing",
327        "stable_cronet_base_profiler_buildflags__testing",
328        "stable_cronet_base_protected_memory_buildflags__testing",
329        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
330        "stable_cronet_base_sanitizer_buildflags__testing",
331        "stable_cronet_base_synchronization_buildflags__testing",
332        "stable_cronet_base_tracing_buildflags__testing",
333        "stable_cronet_build_blink_buildflags__testing",
334        "stable_cronet_build_branding_buildflags__testing",
335        "stable_cronet_build_chromecast_buildflags__testing",
336        "stable_cronet_build_chromeos_buildflags__testing",
337        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
338        "stable_cronet_build_ios_buildflags__testing",
339        "stable_cronet_build_robolectric_buildflags__testing",
340        "stable_cronet_crypto_buildflags__testing",
341        "stable_cronet_net_base_registry_controlled_domains_registry_controlled_domains__testing",
342        "stable_cronet_net_buildflags__testing",
343        "stable_cronet_net_cronet_buildflags__testing",
344        "stable_cronet_net_isolation_info_proto_gen__testing_headers",
345        "stable_cronet_net_net_jni_headers__action__testing",
346        "stable_cronet_net_net_nqe_proto_gen__testing_headers",
347        "stable_cronet_net_third_party_quiche_net_quic_proto_gen__testing_headers",
348        "stable_cronet_net_third_party_quiche_net_quic_test_tools_proto_gen__testing_headers",
349        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
350        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
351        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
352        "stable_cronet_url_buildflags__testing",
353        "stable_cronet_url_url_jni_headers__action__testing",
354    ],
355    defaults: [
356        "stable_cronet_cc_defaults",
357    ],
358    cflags: [
359        "-DANDROID",
360        "-DANDROID_NDK_VERSION_ROLL=r27_1",
361        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
362        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
363        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
364        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
365        "-DENABLE_BUILT_IN_DNS",
366        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
367        "-DGOOGLE_PROTOBUF_NO_RTTI",
368        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
369        "-DHAVE_PTHREAD",
370        "-DHAVE_SYS_UIO_H",
371        "-DNDEBUG",
372        "-DNET_IMPLEMENTATION",
373        "-DNVALGRIND",
374        "-DOFFICIAL_BUILD",
375        "-DTMP_REBUILD_HACK",
376        "-D_GNU_SOURCE",
377        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
378        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
379        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
380        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
381        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
382        "-D__STDC_CONSTANT_MACROS",
383        "-D__STDC_FORMAT_MACROS",
384        "-fdata-sections",
385        "-ffunction-sections",
386        "-fstack-protector",
387        "-fvisibility-inlines-hidden",
388        "-fvisibility=hidden",
389        "-g1",
390    ],
391    include_dirs: [
392        "external/cronet/stable/",
393        "external/cronet/stable/base/allocator/partition_allocator/src/",
394        "external/cronet/stable/buildtools/third_party/libc++/",
395        "external/cronet/stable/net/third_party/quiche/overrides/",
396        "external/cronet/stable/net/third_party/quiche/src/",
397        "external/cronet/stable/net/third_party/quiche/src/quiche/common/platform/default/",
398        "external/cronet/stable/third_party/abseil-cpp/",
399        "external/cronet/stable/third_party/boringssl/src/include/",
400        "external/cronet/stable/third_party/brotli/include/",
401        "external/cronet/stable/third_party/libc++/src/include",
402        "external/cronet/stable/third_party/libc++abi/src/include",
403        "external/cronet/stable/third_party/protobuf/src/",
404    ],
405    cpp_std: "c++20",
406    ldflags: [
407        "-Wl,--as-needed",
408        "-Wl,--gc-sections",
409        "-Wl,--icf=all",
410        "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds",
411    ],
412    visibility: [
413        "//external/cronet:__subpackages__",
414    ],
415    target: {
416        android_arm: {
417            cflags: [
418                "-D_FORTIFY_SOURCE=2",
419            ],
420        },
421        android_arm64: {
422            cflags: [
423                "-D_FORTIFY_SOURCE=2",
424                "-D__ARM_NEON__=1",
425                "-O2",
426                "-mno-outline",
427            ],
428        },
429        android_x86: {
430            cflags: [
431                "-D_FORTIFY_SOURCE=2",
432                "-msse3",
433            ],
434        },
435        android_x86_64: {
436            cflags: [
437                "-D_FORTIFY_SOURCE=2",
438                "-O2",
439                "-msse3",
440            ],
441        },
442    },
443}
444
445// GN: //net/dns/public:tests__testing
446cc_library_static {
447    name: "stable_cronet_net_dns_public_tests__testing",
448    srcs: [
449        "dns_over_https_config_unittest.cc",
450        "dns_over_https_server_config_unittest.cc",
451        "doh_provider_entry_unittest.cc",
452    ],
453    shared_libs: [
454        "libandroid",
455        "liblog",
456        "libprotobuf-cpp-lite",
457        "libz",
458    ],
459    host_cross_supported: false,
460    generated_headers: [
461        "stable_cronet_base_allocator_buildflags__testing",
462        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
463        "stable_cronet_base_anchor_functions_buildflags__testing",
464        "stable_cronet_base_build_date__testing",
465        "stable_cronet_base_cfi_buildflags__testing",
466        "stable_cronet_base_check_version_internal_action__testing",
467        "stable_cronet_base_clang_profiling_buildflags__testing",
468        "stable_cronet_base_debugging_buildflags__testing",
469        "stable_cronet_base_feature_list_buildflags__testing",
470        "stable_cronet_base_fuzzing_buildflags__testing",
471        "stable_cronet_base_ios_cronet_buildflags__testing",
472        "stable_cronet_base_orderfile_buildflags__testing",
473        "stable_cronet_base_power_monitor_buildflags__testing",
474        "stable_cronet_base_profiler_buildflags__testing",
475        "stable_cronet_base_protected_memory_buildflags__testing",
476        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
477        "stable_cronet_base_sanitizer_buildflags__testing",
478        "stable_cronet_base_synchronization_buildflags__testing",
479        "stable_cronet_base_tracing_buildflags__testing",
480        "stable_cronet_build_blink_buildflags__testing",
481        "stable_cronet_build_branding_buildflags__testing",
482        "stable_cronet_build_chromecast_buildflags__testing",
483        "stable_cronet_build_chromeos_buildflags__testing",
484        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
485        "stable_cronet_build_ios_buildflags__testing",
486        "stable_cronet_build_robolectric_buildflags__testing",
487        "stable_cronet_crypto_buildflags__testing",
488        "stable_cronet_net_base_registry_controlled_domains_registry_controlled_domains__testing",
489        "stable_cronet_net_buildflags__testing",
490        "stable_cronet_net_cronet_buildflags__testing",
491        "stable_cronet_net_isolation_info_proto_gen__testing_headers",
492        "stable_cronet_net_net_jni_headers__action__testing",
493        "stable_cronet_net_net_nqe_proto_gen__testing_headers",
494        "stable_cronet_net_third_party_quiche_net_quic_proto_gen__testing_headers",
495        "stable_cronet_net_third_party_quiche_net_quic_test_tools_proto_gen__testing_headers",
496        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
497        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
498        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
499        "stable_cronet_url_buildflags__testing",
500        "stable_cronet_url_url_jni_headers__action__testing",
501    ],
502    export_generated_headers: [
503        "stable_cronet_base_allocator_buildflags__testing",
504        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
505        "stable_cronet_base_anchor_functions_buildflags__testing",
506        "stable_cronet_base_build_date__testing",
507        "stable_cronet_base_cfi_buildflags__testing",
508        "stable_cronet_base_check_version_internal_action__testing",
509        "stable_cronet_base_clang_profiling_buildflags__testing",
510        "stable_cronet_base_debugging_buildflags__testing",
511        "stable_cronet_base_feature_list_buildflags__testing",
512        "stable_cronet_base_fuzzing_buildflags__testing",
513        "stable_cronet_base_ios_cronet_buildflags__testing",
514        "stable_cronet_base_orderfile_buildflags__testing",
515        "stable_cronet_base_power_monitor_buildflags__testing",
516        "stable_cronet_base_profiler_buildflags__testing",
517        "stable_cronet_base_protected_memory_buildflags__testing",
518        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
519        "stable_cronet_base_sanitizer_buildflags__testing",
520        "stable_cronet_base_synchronization_buildflags__testing",
521        "stable_cronet_base_tracing_buildflags__testing",
522        "stable_cronet_build_blink_buildflags__testing",
523        "stable_cronet_build_branding_buildflags__testing",
524        "stable_cronet_build_chromecast_buildflags__testing",
525        "stable_cronet_build_chromeos_buildflags__testing",
526        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
527        "stable_cronet_build_ios_buildflags__testing",
528        "stable_cronet_build_robolectric_buildflags__testing",
529        "stable_cronet_crypto_buildflags__testing",
530        "stable_cronet_net_base_registry_controlled_domains_registry_controlled_domains__testing",
531        "stable_cronet_net_buildflags__testing",
532        "stable_cronet_net_cronet_buildflags__testing",
533        "stable_cronet_net_isolation_info_proto_gen__testing_headers",
534        "stable_cronet_net_net_jni_headers__action__testing",
535        "stable_cronet_net_net_nqe_proto_gen__testing_headers",
536        "stable_cronet_net_third_party_quiche_net_quic_proto_gen__testing_headers",
537        "stable_cronet_net_third_party_quiche_net_quic_test_tools_proto_gen__testing_headers",
538        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
539        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
540        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
541        "stable_cronet_url_buildflags__testing",
542        "stable_cronet_url_url_jni_headers__action__testing",
543    ],
544    defaults: [
545        "stable_cronet_cc_defaults",
546    ],
547    cflags: [
548        "-DANDROID",
549        "-DANDROID_NDK_VERSION_ROLL=r27_1",
550        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
551        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
552        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
553        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
554        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
555        "-DGOOGLE_PROTOBUF_NO_RTTI",
556        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
557        "-DGTEST_API_=",
558        "-DGTEST_HAS_ABSL",
559        "-DGTEST_HAS_POSIX_RE=0",
560        "-DGTEST_HAS_TR1_TUPLE=0",
561        "-DGTEST_LANG_CXX11=1",
562        "-DGTEST_NO_ABSL_FLAGS",
563        "-DHAVE_PTHREAD",
564        "-DHAVE_SYS_UIO_H",
565        "-DNDEBUG",
566        "-DNVALGRIND",
567        "-DOFFICIAL_BUILD",
568        "-DTMP_REBUILD_HACK",
569        "-DUNIT_TEST",
570        "-D_GNU_SOURCE",
571        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
572        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
573        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
574        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
575        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
576        "-D__STDC_CONSTANT_MACROS",
577        "-D__STDC_FORMAT_MACROS",
578        "-fdata-sections",
579        "-ffunction-sections",
580        "-fstack-protector",
581        "-fvisibility-inlines-hidden",
582        "-fvisibility=hidden",
583        "-g1",
584    ],
585    include_dirs: [
586        "external/cronet/stable/",
587        "external/cronet/stable/base/allocator/partition_allocator/src/",
588        "external/cronet/stable/buildtools/third_party/libc++/",
589        "external/cronet/stable/net/third_party/quiche/overrides/",
590        "external/cronet/stable/net/third_party/quiche/src/",
591        "external/cronet/stable/net/third_party/quiche/src/quiche/common/platform/default/",
592        "external/cronet/stable/third_party/abseil-cpp/",
593        "external/cronet/stable/third_party/boringssl/src/include/",
594        "external/cronet/stable/third_party/googletest/custom/",
595        "external/cronet/stable/third_party/googletest/src/googlemock/include/",
596        "external/cronet/stable/third_party/googletest/src/googletest/include/",
597        "external/cronet/stable/third_party/libc++/src/include",
598        "external/cronet/stable/third_party/libc++abi/src/include",
599        "external/cronet/stable/third_party/protobuf/src/",
600        "external/cronet/stable/third_party/re2/src/",
601    ],
602    cpp_std: "c++20",
603    ldflags: [
604        "-Wl,--as-needed",
605        "-Wl,--gc-sections",
606        "-Wl,--icf=all",
607        "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds",
608    ],
609    visibility: [
610        "//external/cronet:__subpackages__",
611    ],
612    target: {
613        android_arm: {
614            cflags: [
615                "-D_FORTIFY_SOURCE=2",
616            ],
617        },
618        android_arm64: {
619            cflags: [
620                "-D_FORTIFY_SOURCE=2",
621                "-D__ARM_NEON__=1",
622                "-O2",
623                "-mno-outline",
624            ],
625        },
626        android_x86: {
627            cflags: [
628                "-D_FORTIFY_SOURCE=2",
629                "-msse3",
630            ],
631        },
632        android_x86_64: {
633            cflags: [
634                "-D_FORTIFY_SOURCE=2",
635                "-O2",
636                "-msse3",
637            ],
638        },
639    },
640}
641