• 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: //base/test:test_rust_logger_consumer__testing
25rust_ffi_static {
26    name: "libbase_stest_ctest_urust_ulogger_uconsumer__e3402fa6f5ab6d8c",
27    srcs: [
28        "logging/test_rust_logger_consumer.rs",
29    ],
30    host_cross_supported: false,
31    apex_available: [
32        "com.android.tethering",
33    ],
34    min_sdk_version: "30",
35    visibility: [
36        "//external/cronet:__subpackages__",
37    ],
38    crate_name: "base_stest_ctest_urust_ulogger_uconsumer",
39    crate_root: "logging/test_rust_logger_consumer.rs",
40    rustlibs: [
41        "libchromium__eb6193a5492aad4d",
42        "libcxx__20522d26522c8543",
43        "liblog__0854b48a002f9679",
44    ],
45    target: {
46        android_arm: {
47            edition: "2021",
48            cfgs: [
49                "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"",
50            ],
51            flags: [
52                "-Dunsafe_op_in_unsafe_fn",
53                "-Dwarnings",
54                "-Aunused-imports",
55                "-Cforce-unwind-tables=yes",
56                "-Crelocation-model=pic",
57                "-Coverflow-checks=on",
58                "-Cdefault-linker-libraries",
59                "-Clto=no",
60                "-Ccodegen-units=1",
61                "-Copt-level=s",
62                "-Cdebuginfo=1",
63            ],
64        },
65        android_arm64: {
66            edition: "2021",
67            cfgs: [
68                "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"",
69            ],
70            flags: [
71                "-Dunsafe_op_in_unsafe_fn",
72                "-Dwarnings",
73                "-Aunused-imports",
74                "-Cforce-unwind-tables=yes",
75                "-Crelocation-model=pic",
76                "-Coverflow-checks=on",
77                "-Cdefault-linker-libraries",
78                "-Clto=no",
79                "-Ccodegen-units=1",
80                "-Copt-level=3",
81                "-Cdebuginfo=1",
82            ],
83        },
84        android_riscv64: {
85            edition: "2021",
86            cfgs: [
87                "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"",
88            ],
89            flags: [
90                "-Dunsafe_op_in_unsafe_fn",
91                "-Dwarnings",
92                "-Aunused-imports",
93                "-Cforce-unwind-tables=yes",
94                "-Crelocation-model=pic",
95                "-Coverflow-checks=on",
96                "-Cdefault-linker-libraries",
97                "-Clto=no",
98                "-Ccodegen-units=1",
99                "-Copt-level=s",
100                "-Cdebuginfo=1",
101            ],
102        },
103        android_x86: {
104            edition: "2021",
105            cfgs: [
106                "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"",
107            ],
108            flags: [
109                "-Dunsafe_op_in_unsafe_fn",
110                "-Dwarnings",
111                "-Aunused-imports",
112                "-Cforce-unwind-tables=yes",
113                "-Crelocation-model=pic",
114                "-Coverflow-checks=on",
115                "-Cdefault-linker-libraries",
116                "-Clto=no",
117                "-Ccodegen-units=1",
118                "-Copt-level=s",
119                "-Cdebuginfo=1",
120            ],
121        },
122        android_x86_64: {
123            edition: "2021",
124            cfgs: [
125                "cr_rustc_revision=\"a522d78598415cdd614ccc6d961160f192f64b5c-1-llvmorg-20-init-13894-g8cb44859\"",
126            ],
127            flags: [
128                "-Dunsafe_op_in_unsafe_fn",
129                "-Dwarnings",
130                "-Aunused-imports",
131                "-Cforce-unwind-tables=yes",
132                "-Crelocation-model=pic",
133                "-Coverflow-checks=on",
134                "-Cdefault-linker-libraries",
135                "-Clto=no",
136                "-Ccodegen-units=1",
137                "-Copt-level=3",
138                "-Cdebuginfo=1",
139            ],
140        },
141        host: {
142            compile_multilib: "64",
143        },
144    },
145}
146
147// GN: //base/test:proto_test_support__testing
148cc_library_static {
149    name: "stable_cronet_base_test_proto_test_support__testing",
150    srcs: [
151        "test_proto_loader.cc",
152    ],
153    shared_libs: [
154        "libandroid",
155        "liblog",
156        "libz",
157    ],
158    host_cross_supported: false,
159    generated_headers: [
160        "stable_cronet_base_allocator_buildflags__testing",
161        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
162        "stable_cronet_base_anchor_functions_buildflags__testing",
163        "stable_cronet_base_build_date__testing",
164        "stable_cronet_base_cfi_buildflags__testing",
165        "stable_cronet_base_check_version_internal_action__testing",
166        "stable_cronet_base_clang_profiling_buildflags__testing",
167        "stable_cronet_base_debugging_buildflags__testing",
168        "stable_cronet_base_feature_list_buildflags__testing",
169        "stable_cronet_base_fuzzing_buildflags__testing",
170        "stable_cronet_base_ios_cronet_buildflags__testing",
171        "stable_cronet_base_orderfile_buildflags__testing",
172        "stable_cronet_base_power_monitor_buildflags__testing",
173        "stable_cronet_base_profiler_buildflags__testing",
174        "stable_cronet_base_protected_memory_buildflags__testing",
175        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
176        "stable_cronet_base_sanitizer_buildflags__testing",
177        "stable_cronet_base_synchronization_buildflags__testing",
178        "stable_cronet_base_tracing_buildflags__testing",
179        "stable_cronet_build_blink_buildflags__testing",
180        "stable_cronet_build_branding_buildflags__testing",
181        "stable_cronet_build_chromecast_buildflags__testing",
182        "stable_cronet_build_chromeos_buildflags__testing",
183        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
184        "stable_cronet_build_ios_buildflags__testing",
185        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
186        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
187        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
188    ],
189    export_generated_headers: [
190        "stable_cronet_base_allocator_buildflags__testing",
191        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
192        "stable_cronet_base_anchor_functions_buildflags__testing",
193        "stable_cronet_base_build_date__testing",
194        "stable_cronet_base_cfi_buildflags__testing",
195        "stable_cronet_base_check_version_internal_action__testing",
196        "stable_cronet_base_clang_profiling_buildflags__testing",
197        "stable_cronet_base_debugging_buildflags__testing",
198        "stable_cronet_base_feature_list_buildflags__testing",
199        "stable_cronet_base_fuzzing_buildflags__testing",
200        "stable_cronet_base_ios_cronet_buildflags__testing",
201        "stable_cronet_base_orderfile_buildflags__testing",
202        "stable_cronet_base_power_monitor_buildflags__testing",
203        "stable_cronet_base_profiler_buildflags__testing",
204        "stable_cronet_base_protected_memory_buildflags__testing",
205        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
206        "stable_cronet_base_sanitizer_buildflags__testing",
207        "stable_cronet_base_synchronization_buildflags__testing",
208        "stable_cronet_base_tracing_buildflags__testing",
209        "stable_cronet_build_blink_buildflags__testing",
210        "stable_cronet_build_branding_buildflags__testing",
211        "stable_cronet_build_chromecast_buildflags__testing",
212        "stable_cronet_build_chromeos_buildflags__testing",
213        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
214        "stable_cronet_build_ios_buildflags__testing",
215        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
216        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
217        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
218    ],
219    defaults: [
220        "stable_cronet_cc_defaults",
221    ],
222    cflags: [
223        "-DANDROID",
224        "-DANDROID_NDK_VERSION_ROLL=r27_1",
225        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
226        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
227        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
228        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
229        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
230        "-DGOOGLE_PROTOBUF_NO_RTTI",
231        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
232        "-DHAVE_PTHREAD",
233        "-DHAVE_SYS_UIO_H",
234        "-DNDEBUG",
235        "-DNVALGRIND",
236        "-DOFFICIAL_BUILD",
237        "-DPROTO_TEST_IMPLEMENTATION",
238        "-DTMP_REBUILD_HACK",
239        "-D_GNU_SOURCE",
240        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
241        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
242        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
243        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
244        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
245        "-D__STDC_CONSTANT_MACROS",
246        "-D__STDC_FORMAT_MACROS",
247        "-fdata-sections",
248        "-ffunction-sections",
249        "-fstack-protector",
250        "-fvisibility-inlines-hidden",
251        "-fvisibility=hidden",
252        "-g1",
253    ],
254    include_dirs: [
255        "external/cronet/stable/",
256        "external/cronet/stable/base/allocator/partition_allocator/src/",
257        "external/cronet/stable/buildtools/third_party/libc++/",
258        "external/cronet/stable/third_party/abseil-cpp/",
259        "external/cronet/stable/third_party/boringssl/src/include/",
260        "external/cronet/stable/third_party/libc++/src/include",
261        "external/cronet/stable/third_party/libc++abi/src/include",
262        "external/cronet/stable/third_party/protobuf/src/",
263    ],
264    cpp_std: "c++20",
265    ldflags: [
266        "-Wl,--as-needed",
267        "-Wl,--gc-sections",
268        "-Wl,--icf=all",
269        "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds",
270    ],
271    visibility: [
272        "//external/cronet:__subpackages__",
273    ],
274    target: {
275        android_arm: {
276            cflags: [
277                "-D_FORTIFY_SOURCE=2",
278            ],
279        },
280        android_arm64: {
281            cflags: [
282                "-D_FORTIFY_SOURCE=2",
283                "-D__ARM_NEON__=1",
284                "-O2",
285                "-mno-outline",
286            ],
287        },
288        android_x86: {
289            cflags: [
290                "-D_FORTIFY_SOURCE=2",
291                "-msse3",
292            ],
293        },
294        android_x86_64: {
295            cflags: [
296                "-D_FORTIFY_SOURCE=2",
297                "-O2",
298                "-msse3",
299            ],
300        },
301    },
302}
303
304// GN: //base/test:run_all_unittests__testing
305cc_library_static {
306    name: "stable_cronet_base_test_run_all_unittests__testing",
307    srcs: [
308        "run_all_unittests.cc",
309    ],
310    shared_libs: [
311        "libandroid",
312        "liblog",
313        "libz",
314    ],
315    host_cross_supported: false,
316    generated_headers: [
317        "stable_cronet_base_allocator_buildflags__testing",
318        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
319        "stable_cronet_base_anchor_functions_buildflags__testing",
320        "stable_cronet_base_build_date__testing",
321        "stable_cronet_base_cfi_buildflags__testing",
322        "stable_cronet_base_check_version_internal_action__testing",
323        "stable_cronet_base_clang_profiling_buildflags__testing",
324        "stable_cronet_base_debugging_buildflags__testing",
325        "stable_cronet_base_feature_list_buildflags__testing",
326        "stable_cronet_base_fuzzing_buildflags__testing",
327        "stable_cronet_base_ios_cronet_buildflags__testing",
328        "stable_cronet_base_orderfile_buildflags__testing",
329        "stable_cronet_base_power_monitor_buildflags__testing",
330        "stable_cronet_base_profiler_buildflags__testing",
331        "stable_cronet_base_protected_memory_buildflags__testing",
332        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
333        "stable_cronet_base_sanitizer_buildflags__testing",
334        "stable_cronet_base_synchronization_buildflags__testing",
335        "stable_cronet_base_test_base_unittests_jni_headers__action__testing",
336        "stable_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
337        "stable_cronet_base_test_test_support_jni_headers__action__testing",
338        "stable_cronet_base_tracing_buildflags__testing",
339        "stable_cronet_build_blink_buildflags__testing",
340        "stable_cronet_build_branding_buildflags__testing",
341        "stable_cronet_build_chromecast_buildflags__testing",
342        "stable_cronet_build_chromeos_buildflags__testing",
343        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
344        "stable_cronet_build_ios_buildflags__testing",
345        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
346        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
347        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
348    ],
349    export_generated_headers: [
350        "stable_cronet_base_allocator_buildflags__testing",
351        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
352        "stable_cronet_base_anchor_functions_buildflags__testing",
353        "stable_cronet_base_build_date__testing",
354        "stable_cronet_base_cfi_buildflags__testing",
355        "stable_cronet_base_check_version_internal_action__testing",
356        "stable_cronet_base_clang_profiling_buildflags__testing",
357        "stable_cronet_base_debugging_buildflags__testing",
358        "stable_cronet_base_feature_list_buildflags__testing",
359        "stable_cronet_base_fuzzing_buildflags__testing",
360        "stable_cronet_base_ios_cronet_buildflags__testing",
361        "stable_cronet_base_orderfile_buildflags__testing",
362        "stable_cronet_base_power_monitor_buildflags__testing",
363        "stable_cronet_base_profiler_buildflags__testing",
364        "stable_cronet_base_protected_memory_buildflags__testing",
365        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
366        "stable_cronet_base_sanitizer_buildflags__testing",
367        "stable_cronet_base_synchronization_buildflags__testing",
368        "stable_cronet_base_test_base_unittests_jni_headers__action__testing",
369        "stable_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
370        "stable_cronet_base_test_test_support_jni_headers__action__testing",
371        "stable_cronet_base_tracing_buildflags__testing",
372        "stable_cronet_build_blink_buildflags__testing",
373        "stable_cronet_build_branding_buildflags__testing",
374        "stable_cronet_build_chromecast_buildflags__testing",
375        "stable_cronet_build_chromeos_buildflags__testing",
376        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
377        "stable_cronet_build_ios_buildflags__testing",
378        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
379        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
380        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
381    ],
382    defaults: [
383        "stable_cronet_cc_defaults",
384    ],
385    cflags: [
386        "-DANDROID",
387        "-DANDROID_NDK_VERSION_ROLL=r27_1",
388        "-DBENCHMARK_STATIC_DEFINE",
389        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
390        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
391        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
392        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
393        "-DGTEST_API_=",
394        "-DGTEST_HAS_ABSL",
395        "-DGTEST_HAS_POSIX_RE=0",
396        "-DGTEST_HAS_TR1_TUPLE=0",
397        "-DGTEST_LANG_CXX11=1",
398        "-DGTEST_NO_ABSL_FLAGS",
399        "-DHAVE_SYS_UIO_H",
400        "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
401        "-DNDEBUG",
402        "-DNVALGRIND",
403        "-DOFFICIAL_BUILD",
404        "-DTMP_REBUILD_HACK",
405        "-DUNIT_TEST",
406        "-DUSE_CHROMIUM_ICU=1",
407        "-DU_ENABLE_DYLOAD=0",
408        "-DU_ENABLE_RESOURCE_TRACING=0",
409        "-DU_ENABLE_TRACING=1",
410        "-DU_STATIC_IMPLEMENTATION",
411        "-DU_USING_ICU_NAMESPACE=0",
412        "-D_GNU_SOURCE",
413        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
414        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
415        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
416        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
417        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
418        "-D__STDC_CONSTANT_MACROS",
419        "-D__STDC_FORMAT_MACROS",
420        "-fdata-sections",
421        "-ffunction-sections",
422        "-fstack-protector",
423        "-fvisibility-inlines-hidden",
424        "-fvisibility=hidden",
425        "-g1",
426    ],
427    include_dirs: [
428        "external/cronet/stable/",
429        "external/cronet/stable/base/allocator/partition_allocator/src/",
430        "external/cronet/stable/buildtools/third_party/libc++/",
431        "external/cronet/stable/third_party/abseil-cpp/",
432        "external/cronet/stable/third_party/boringssl/src/include/",
433        "external/cronet/stable/third_party/ced/src/",
434        "external/cronet/stable/third_party/google_benchmark/src/include/",
435        "external/cronet/stable/third_party/googletest/custom/",
436        "external/cronet/stable/third_party/googletest/src/googlemock/include/",
437        "external/cronet/stable/third_party/googletest/src/googletest/include/",
438        "external/cronet/stable/third_party/icu/source/common/",
439        "external/cronet/stable/third_party/icu/source/i18n/",
440        "external/cronet/stable/third_party/libc++/src/include",
441        "external/cronet/stable/third_party/libc++abi/src/include",
442        "external/cronet/stable/third_party/re2/src/",
443    ],
444    cpp_std: "c++20",
445    ldflags: [
446        "-Wl,--as-needed",
447        "-Wl,--gc-sections",
448        "-Wl,--icf=all",
449        "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds",
450    ],
451    visibility: [
452        "//external/cronet:__subpackages__",
453    ],
454    target: {
455        android_arm: {
456            cflags: [
457                "-D_FORTIFY_SOURCE=2",
458            ],
459        },
460        android_arm64: {
461            cflags: [
462                "-D_FORTIFY_SOURCE=2",
463                "-D__ARM_NEON__=1",
464                "-O2",
465                "-mno-outline",
466            ],
467        },
468        android_x86: {
469            cflags: [
470                "-D_FORTIFY_SOURCE=2",
471                "-msse3",
472            ],
473        },
474        android_x86_64: {
475            cflags: [
476                "-D_FORTIFY_SOURCE=2",
477                "-O2",
478                "-msse3",
479            ],
480        },
481    },
482}
483
484// GN: //base/test:test_config__testing
485cc_library_static {
486    name: "stable_cronet_base_test_test_config__testing",
487    srcs: [
488        "test_switches.cc",
489        "test_timeouts.cc",
490    ],
491    shared_libs: [
492        "libandroid",
493        "liblog",
494        "libz",
495    ],
496    host_cross_supported: false,
497    generated_headers: [
498        "stable_cronet_base_allocator_buildflags__testing",
499        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
500        "stable_cronet_base_anchor_functions_buildflags__testing",
501        "stable_cronet_base_build_date__testing",
502        "stable_cronet_base_cfi_buildflags__testing",
503        "stable_cronet_base_check_version_internal_action__testing",
504        "stable_cronet_base_clang_profiling_buildflags__testing",
505        "stable_cronet_base_debugging_buildflags__testing",
506        "stable_cronet_base_feature_list_buildflags__testing",
507        "stable_cronet_base_fuzzing_buildflags__testing",
508        "stable_cronet_base_ios_cronet_buildflags__testing",
509        "stable_cronet_base_orderfile_buildflags__testing",
510        "stable_cronet_base_power_monitor_buildflags__testing",
511        "stable_cronet_base_profiler_buildflags__testing",
512        "stable_cronet_base_protected_memory_buildflags__testing",
513        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
514        "stable_cronet_base_sanitizer_buildflags__testing",
515        "stable_cronet_base_synchronization_buildflags__testing",
516        "stable_cronet_base_tracing_buildflags__testing",
517        "stable_cronet_build_blink_buildflags__testing",
518        "stable_cronet_build_branding_buildflags__testing",
519        "stable_cronet_build_chromecast_buildflags__testing",
520        "stable_cronet_build_chromeos_buildflags__testing",
521        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
522        "stable_cronet_build_ios_buildflags__testing",
523        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
524        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
525        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
526    ],
527    export_generated_headers: [
528        "stable_cronet_base_allocator_buildflags__testing",
529        "stable_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
530        "stable_cronet_base_anchor_functions_buildflags__testing",
531        "stable_cronet_base_build_date__testing",
532        "stable_cronet_base_cfi_buildflags__testing",
533        "stable_cronet_base_check_version_internal_action__testing",
534        "stable_cronet_base_clang_profiling_buildflags__testing",
535        "stable_cronet_base_debugging_buildflags__testing",
536        "stable_cronet_base_feature_list_buildflags__testing",
537        "stable_cronet_base_fuzzing_buildflags__testing",
538        "stable_cronet_base_ios_cronet_buildflags__testing",
539        "stable_cronet_base_orderfile_buildflags__testing",
540        "stable_cronet_base_power_monitor_buildflags__testing",
541        "stable_cronet_base_profiler_buildflags__testing",
542        "stable_cronet_base_protected_memory_buildflags__testing",
543        "stable_cronet_base_rust_logger_cxx_generated_gen__testing_header",
544        "stable_cronet_base_sanitizer_buildflags__testing",
545        "stable_cronet_base_synchronization_buildflags__testing",
546        "stable_cronet_base_tracing_buildflags__testing",
547        "stable_cronet_build_blink_buildflags__testing",
548        "stable_cronet_build_branding_buildflags__testing",
549        "stable_cronet_build_chromecast_buildflags__testing",
550        "stable_cronet_build_chromeos_buildflags__testing",
551        "stable_cronet_build_config_compiler_compiler_buildflags__testing",
552        "stable_cronet_build_ios_buildflags__testing",
553        "stable_cronet_third_party_jni_zero_generate_jni__action__testing",
554        "stable_cronet_third_party_jni_zero_system_jni__action__testing",
555        "stable_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
556    ],
557    defaults: [
558        "stable_cronet_cc_defaults",
559    ],
560    cflags: [
561        "-DANDROID",
562        "-DANDROID_NDK_VERSION_ROLL=r27_1",
563        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
564        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
565        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
566        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
567        "-DHAVE_SYS_UIO_H",
568        "-DNDEBUG",
569        "-DNVALGRIND",
570        "-DOFFICIAL_BUILD",
571        "-DTMP_REBUILD_HACK",
572        "-D_GNU_SOURCE",
573        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
574        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
575        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
576        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
577        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
578        "-D__STDC_CONSTANT_MACROS",
579        "-D__STDC_FORMAT_MACROS",
580        "-fdata-sections",
581        "-ffunction-sections",
582        "-fstack-protector",
583        "-fvisibility-inlines-hidden",
584        "-fvisibility=hidden",
585        "-g1",
586    ],
587    include_dirs: [
588        "external/cronet/stable/",
589        "external/cronet/stable/base/allocator/partition_allocator/src/",
590        "external/cronet/stable/buildtools/third_party/libc++/",
591        "external/cronet/stable/third_party/abseil-cpp/",
592        "external/cronet/stable/third_party/boringssl/src/include/",
593        "external/cronet/stable/third_party/libc++/src/include",
594        "external/cronet/stable/third_party/libc++abi/src/include",
595    ],
596    cpp_std: "c++20",
597    ldflags: [
598        "-Wl,--as-needed",
599        "-Wl,--gc-sections",
600        "-Wl,--icf=all",
601        "-Wl,--script,external/cronet/stable/base/android/library_loader/anchor_functions.lds",
602    ],
603    visibility: [
604        "//external/cronet:__subpackages__",
605    ],
606    target: {
607        android_arm: {
608            cflags: [
609                "-D_FORTIFY_SOURCE=2",
610            ],
611        },
612        android_arm64: {
613            cflags: [
614                "-D_FORTIFY_SOURCE=2",
615                "-D__ARM_NEON__=1",
616                "-O2",
617                "-mno-outline",
618            ],
619        },
620        android_x86: {
621            cflags: [
622                "-D_FORTIFY_SOURCE=2",
623                "-msse3",
624            ],
625        },
626        android_x86_64: {
627            cflags: [
628                "-D_FORTIFY_SOURCE=2",
629                "-O2",
630                "-msse3",
631            ],
632        },
633    },
634}
635
636// GN: //base/test:test_rust_logger_consumer_cxx_generated__testing
637cc_library_static {
638    name: "stable_cronet_base_test_test_rust_logger_consumer_cxx_generated__testing",
639    srcs: [
640        ":stable_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing",
641    ],
642    host_cross_supported: false,
643    generated_headers: [
644        "stable_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
645    ],
646    export_generated_headers: [
647        "stable_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
648    ],
649    defaults: [
650        "stable_cronet_cc_defaults",
651    ],
652    cflags: [
653        "-DANDROID",
654        "-DANDROID_NDK_VERSION_ROLL=r27_1",
655        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
656        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
657        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
658        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
659        "-DHAVE_SYS_UIO_H",
660        "-DNDEBUG",
661        "-DNVALGRIND",
662        "-DOFFICIAL_BUILD",
663        "-DTMP_REBUILD_HACK",
664        "-D_GNU_SOURCE",
665        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
666        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
667        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
668        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
669        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
670        "-D__STDC_CONSTANT_MACROS",
671        "-D__STDC_FORMAT_MACROS",
672        "-fdata-sections",
673        "-ffunction-sections",
674        "-fstack-protector",
675        "-fvisibility-inlines-hidden",
676        "-fvisibility=hidden",
677        "-g1",
678    ],
679    include_dirs: [
680        "external/cronet/stable/",
681        "external/cronet/stable/buildtools/third_party/libc++/",
682        "external/cronet/stable/third_party/libc++/src/include",
683        "external/cronet/stable/third_party/libc++abi/src/include",
684    ],
685    cpp_std: "c++20",
686    ldflags: [
687        "-Wl,--as-needed",
688        "-Wl,--gc-sections",
689        "-Wl,--icf=all",
690    ],
691    visibility: [
692        "//external/cronet:__subpackages__",
693    ],
694    target: {
695        android_arm: {
696            cflags: [
697                "-D_FORTIFY_SOURCE=2",
698            ],
699        },
700        android_arm64: {
701            cflags: [
702                "-D_FORTIFY_SOURCE=2",
703                "-D__ARM_NEON__=1",
704                "-O2",
705                "-mno-outline",
706            ],
707        },
708        android_x86: {
709            cflags: [
710                "-D_FORTIFY_SOURCE=2",
711                "-msse3",
712            ],
713        },
714        android_x86_64: {
715            cflags: [
716                "-D_FORTIFY_SOURCE=2",
717                "-O2",
718                "-msse3",
719            ],
720        },
721    },
722}
723