• 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: //components/prefs:prefs
25cc_library_static {
26    name: "tot_cronet_components_prefs_prefs",
27    srcs: [
28        "android/pref_change_registrar_android.cc",
29        "android/pref_service_android.cc",
30        "command_line_pref_store.cc",
31        "default_pref_store.cc",
32        "in_memory_pref_store.cc",
33        "json_pref_store.cc",
34        "overlay_user_pref_store.cc",
35        "persistent_pref_store.cc",
36        "pref_change_registrar.cc",
37        "pref_member.cc",
38        "pref_notifier_impl.cc",
39        "pref_registry.cc",
40        "pref_registry_simple.cc",
41        "pref_service.cc",
42        "pref_service_factory.cc",
43        "pref_store.cc",
44        "pref_value_map.cc",
45        "pref_value_store.cc",
46        "scoped_user_pref_update.cc",
47        "segregated_pref_store.cc",
48        "value_map_pref_store.cc",
49        "wrap_with_prefix_pref_store.cc",
50        "writeable_pref_store.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_components_prefs_android_jni_headers__action",
102        "tot_cronet_third_party_jni_zero_generate_jni__action",
103        "tot_cronet_third_party_jni_zero_system_jni__action",
104        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header",
105    ],
106    export_generated_headers: [
107        "tot_cronet_base_allocator_buildflags",
108        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags",
109        "tot_cronet_base_anchor_functions_buildflags",
110        "tot_cronet_base_android_runtime_jni_headers__action",
111        "tot_cronet_base_base_jni__action",
112        "tot_cronet_base_base_shared_preferences_jni__action",
113        "tot_cronet_base_build_date",
114        "tot_cronet_base_callback_jni__action",
115        "tot_cronet_base_cfi_buildflags",
116        "tot_cronet_base_check_version_internal_action",
117        "tot_cronet_base_clang_profiling_buildflags",
118        "tot_cronet_base_command_line_jni__action",
119        "tot_cronet_base_content_uri_utils_jni__action",
120        "tot_cronet_base_debugging_buildflags",
121        "tot_cronet_base_feature_list_buildflags",
122        "tot_cronet_base_fuzzing_buildflags",
123        "tot_cronet_base_ios_cronet_buildflags",
124        "tot_cronet_base_jank_tracker_jni__action",
125        "tot_cronet_base_library_loader_jni__action",
126        "tot_cronet_base_memory_jni__action",
127        "tot_cronet_base_metrics_jni__action",
128        "tot_cronet_base_orderfile_buildflags",
129        "tot_cronet_base_power_monitor_buildflags",
130        "tot_cronet_base_process_launcher_jni__action",
131        "tot_cronet_base_profiler_buildflags",
132        "tot_cronet_base_protected_memory_buildflags",
133        "tot_cronet_base_rust_logger_cxx_generated_gen_header",
134        "tot_cronet_base_sanitizer_buildflags",
135        "tot_cronet_base_synchronization_buildflags",
136        "tot_cronet_base_sys_utils_jni__action",
137        "tot_cronet_base_tasks_jni__action",
138        "tot_cronet_base_tracing_buildflags",
139        "tot_cronet_build_blink_buildflags",
140        "tot_cronet_build_branding_buildflags",
141        "tot_cronet_build_chromecast_buildflags",
142        "tot_cronet_build_chromeos_buildflags",
143        "tot_cronet_build_config_compiler_compiler_buildflags",
144        "tot_cronet_build_ios_buildflags",
145        "tot_cronet_build_robolectric_buildflags",
146        "tot_cronet_components_prefs_android_jni_headers__action",
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    ],
151    defaults: [
152        "tot_cronet_cc_defaults",
153    ],
154    cflags: [
155        "-DANDROID",
156        "-DANDROID_NDK_VERSION_ROLL=r27_1",
157        "-DCOMPONENTS_PREFS_IMPLEMENTATION",
158        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
159        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
160        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
161        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
162        "-DHAVE_SYS_UIO_H",
163        "-DNDEBUG",
164        "-DNVALGRIND",
165        "-DOFFICIAL_BUILD",
166        "-DTMP_REBUILD_HACK",
167        "-D_GNU_SOURCE",
168        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
169        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
170        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
171        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
172        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
173        "-D__STDC_CONSTANT_MACROS",
174        "-D__STDC_FORMAT_MACROS",
175        "-fdata-sections",
176        "-ffunction-sections",
177        "-fstack-protector",
178        "-fvisibility-inlines-hidden",
179        "-fvisibility=hidden",
180        "-g1",
181    ],
182    include_dirs: [
183        "external/cronet/tot/",
184        "external/cronet/tot/base/allocator/partition_allocator/src/",
185        "external/cronet/tot/buildtools/third_party/libc++/",
186        "external/cronet/tot/third_party/abseil-cpp/",
187        "external/cronet/tot/third_party/boringssl/src/include/",
188        "external/cronet/tot/third_party/libc++/src/include",
189        "external/cronet/tot/third_party/libc++abi/src/include",
190    ],
191    cpp_std: "c++20",
192    ldflags: [
193        "-Wl,--as-needed",
194        "-Wl,--gc-sections",
195        "-Wl,--icf=all",
196        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
197    ],
198    visibility: [
199        "//external/cronet:__subpackages__",
200    ],
201    target: {
202        android_arm: {
203            cflags: [
204                "-D_FORTIFY_SOURCE=2",
205            ],
206        },
207        android_arm64: {
208            cflags: [
209                "-D_FORTIFY_SOURCE=2",
210                "-D__ARM_NEON__=1",
211                "-O2",
212                "-mno-outline",
213            ],
214        },
215        android_x86: {
216            cflags: [
217                "-D_FORTIFY_SOURCE=2",
218                "-msse3",
219            ],
220        },
221        android_x86_64: {
222            cflags: [
223                "-D_FORTIFY_SOURCE=2",
224                "-O2",
225                "-msse3",
226            ],
227        },
228    },
229}
230
231// GN: //components/prefs:prefs__testing
232cc_library_static {
233    name: "tot_cronet_components_prefs_prefs__testing",
234    srcs: [
235        "android/pref_change_registrar_android.cc",
236        "android/pref_service_android.cc",
237        "command_line_pref_store.cc",
238        "default_pref_store.cc",
239        "in_memory_pref_store.cc",
240        "json_pref_store.cc",
241        "overlay_user_pref_store.cc",
242        "persistent_pref_store.cc",
243        "pref_change_registrar.cc",
244        "pref_member.cc",
245        "pref_notifier_impl.cc",
246        "pref_registry.cc",
247        "pref_registry_simple.cc",
248        "pref_service.cc",
249        "pref_service_factory.cc",
250        "pref_store.cc",
251        "pref_value_map.cc",
252        "pref_value_store.cc",
253        "scoped_user_pref_update.cc",
254        "segregated_pref_store.cc",
255        "value_map_pref_store.cc",
256        "wrap_with_prefix_pref_store.cc",
257        "writeable_pref_store.cc",
258    ],
259    shared_libs: [
260        "libandroid",
261        "liblog",
262        "libz",
263    ],
264    host_cross_supported: false,
265    generated_headers: [
266        "tot_cronet_base_allocator_buildflags__testing",
267        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
268        "tot_cronet_base_anchor_functions_buildflags__testing",
269        "tot_cronet_base_build_date__testing",
270        "tot_cronet_base_cfi_buildflags__testing",
271        "tot_cronet_base_check_version_internal_action__testing",
272        "tot_cronet_base_clang_profiling_buildflags__testing",
273        "tot_cronet_base_debugging_buildflags__testing",
274        "tot_cronet_base_feature_list_buildflags__testing",
275        "tot_cronet_base_fuzzing_buildflags__testing",
276        "tot_cronet_base_ios_cronet_buildflags__testing",
277        "tot_cronet_base_orderfile_buildflags__testing",
278        "tot_cronet_base_power_monitor_buildflags__testing",
279        "tot_cronet_base_profiler_buildflags__testing",
280        "tot_cronet_base_protected_memory_buildflags__testing",
281        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
282        "tot_cronet_base_sanitizer_buildflags__testing",
283        "tot_cronet_base_synchronization_buildflags__testing",
284        "tot_cronet_base_tracing_buildflags__testing",
285        "tot_cronet_build_blink_buildflags__testing",
286        "tot_cronet_build_branding_buildflags__testing",
287        "tot_cronet_build_chromecast_buildflags__testing",
288        "tot_cronet_build_chromeos_buildflags__testing",
289        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
290        "tot_cronet_build_ios_buildflags__testing",
291        "tot_cronet_components_prefs_android_jni_headers__action__testing",
292        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
293        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
294        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
295    ],
296    export_generated_headers: [
297        "tot_cronet_base_allocator_buildflags__testing",
298        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
299        "tot_cronet_base_anchor_functions_buildflags__testing",
300        "tot_cronet_base_build_date__testing",
301        "tot_cronet_base_cfi_buildflags__testing",
302        "tot_cronet_base_check_version_internal_action__testing",
303        "tot_cronet_base_clang_profiling_buildflags__testing",
304        "tot_cronet_base_debugging_buildflags__testing",
305        "tot_cronet_base_feature_list_buildflags__testing",
306        "tot_cronet_base_fuzzing_buildflags__testing",
307        "tot_cronet_base_ios_cronet_buildflags__testing",
308        "tot_cronet_base_orderfile_buildflags__testing",
309        "tot_cronet_base_power_monitor_buildflags__testing",
310        "tot_cronet_base_profiler_buildflags__testing",
311        "tot_cronet_base_protected_memory_buildflags__testing",
312        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
313        "tot_cronet_base_sanitizer_buildflags__testing",
314        "tot_cronet_base_synchronization_buildflags__testing",
315        "tot_cronet_base_tracing_buildflags__testing",
316        "tot_cronet_build_blink_buildflags__testing",
317        "tot_cronet_build_branding_buildflags__testing",
318        "tot_cronet_build_chromecast_buildflags__testing",
319        "tot_cronet_build_chromeos_buildflags__testing",
320        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
321        "tot_cronet_build_ios_buildflags__testing",
322        "tot_cronet_components_prefs_android_jni_headers__action__testing",
323        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
324        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
325        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
326    ],
327    defaults: [
328        "tot_cronet_cc_defaults",
329    ],
330    cflags: [
331        "-DANDROID",
332        "-DANDROID_NDK_VERSION_ROLL=r27_1",
333        "-DCOMPONENTS_PREFS_IMPLEMENTATION",
334        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
335        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
336        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
337        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
338        "-DHAVE_SYS_UIO_H",
339        "-DNDEBUG",
340        "-DNVALGRIND",
341        "-DOFFICIAL_BUILD",
342        "-DTMP_REBUILD_HACK",
343        "-D_GNU_SOURCE",
344        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
345        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
346        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
347        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
348        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
349        "-D__STDC_CONSTANT_MACROS",
350        "-D__STDC_FORMAT_MACROS",
351        "-fdata-sections",
352        "-ffunction-sections",
353        "-fstack-protector",
354        "-fvisibility-inlines-hidden",
355        "-fvisibility=hidden",
356        "-g1",
357    ],
358    include_dirs: [
359        "external/cronet/tot/",
360        "external/cronet/tot/base/allocator/partition_allocator/src/",
361        "external/cronet/tot/buildtools/third_party/libc++/",
362        "external/cronet/tot/third_party/abseil-cpp/",
363        "external/cronet/tot/third_party/boringssl/src/include/",
364        "external/cronet/tot/third_party/libc++/src/include",
365        "external/cronet/tot/third_party/libc++abi/src/include",
366    ],
367    cpp_std: "c++20",
368    ldflags: [
369        "-Wl,--as-needed",
370        "-Wl,--gc-sections",
371        "-Wl,--icf=all",
372        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
373    ],
374    visibility: [
375        "//external/cronet:__subpackages__",
376    ],
377    target: {
378        android_arm: {
379            cflags: [
380                "-D_FORTIFY_SOURCE=2",
381            ],
382        },
383        android_arm64: {
384            cflags: [
385                "-D_FORTIFY_SOURCE=2",
386                "-D__ARM_NEON__=1",
387                "-O2",
388                "-mno-outline",
389            ],
390        },
391        android_x86: {
392            cflags: [
393                "-D_FORTIFY_SOURCE=2",
394                "-msse3",
395            ],
396        },
397        android_x86_64: {
398            cflags: [
399                "-D_FORTIFY_SOURCE=2",
400                "-O2",
401                "-msse3",
402            ],
403        },
404    },
405}
406
407// GN: //components/prefs:test_support__testing
408cc_library_static {
409    name: "tot_cronet_components_prefs_test_support__testing",
410    srcs: [
411        "mock_pref_change_callback.cc",
412        "pref_store_observer_mock.cc",
413        "pref_test_utils.cc",
414        "testing_pref_service.cc",
415        "testing_pref_store.cc",
416    ],
417    shared_libs: [
418        "libandroid",
419        "liblog",
420        "libz",
421    ],
422    host_cross_supported: false,
423    generated_headers: [
424        "tot_cronet_base_allocator_buildflags__testing",
425        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
426        "tot_cronet_base_anchor_functions_buildflags__testing",
427        "tot_cronet_base_build_date__testing",
428        "tot_cronet_base_cfi_buildflags__testing",
429        "tot_cronet_base_check_version_internal_action__testing",
430        "tot_cronet_base_clang_profiling_buildflags__testing",
431        "tot_cronet_base_debugging_buildflags__testing",
432        "tot_cronet_base_feature_list_buildflags__testing",
433        "tot_cronet_base_fuzzing_buildflags__testing",
434        "tot_cronet_base_ios_cronet_buildflags__testing",
435        "tot_cronet_base_orderfile_buildflags__testing",
436        "tot_cronet_base_power_monitor_buildflags__testing",
437        "tot_cronet_base_profiler_buildflags__testing",
438        "tot_cronet_base_protected_memory_buildflags__testing",
439        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
440        "tot_cronet_base_sanitizer_buildflags__testing",
441        "tot_cronet_base_synchronization_buildflags__testing",
442        "tot_cronet_base_test_base_unittests_jni_headers__action__testing",
443        "tot_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
444        "tot_cronet_base_test_test_support_jni_headers__action__testing",
445        "tot_cronet_base_tracing_buildflags__testing",
446        "tot_cronet_build_blink_buildflags__testing",
447        "tot_cronet_build_branding_buildflags__testing",
448        "tot_cronet_build_chromecast_buildflags__testing",
449        "tot_cronet_build_chromeos_buildflags__testing",
450        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
451        "tot_cronet_build_ios_buildflags__testing",
452        "tot_cronet_components_prefs_android_jni_headers__action__testing",
453        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
454        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
455        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
456    ],
457    export_generated_headers: [
458        "tot_cronet_base_allocator_buildflags__testing",
459        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
460        "tot_cronet_base_anchor_functions_buildflags__testing",
461        "tot_cronet_base_build_date__testing",
462        "tot_cronet_base_cfi_buildflags__testing",
463        "tot_cronet_base_check_version_internal_action__testing",
464        "tot_cronet_base_clang_profiling_buildflags__testing",
465        "tot_cronet_base_debugging_buildflags__testing",
466        "tot_cronet_base_feature_list_buildflags__testing",
467        "tot_cronet_base_fuzzing_buildflags__testing",
468        "tot_cronet_base_ios_cronet_buildflags__testing",
469        "tot_cronet_base_orderfile_buildflags__testing",
470        "tot_cronet_base_power_monitor_buildflags__testing",
471        "tot_cronet_base_profiler_buildflags__testing",
472        "tot_cronet_base_protected_memory_buildflags__testing",
473        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
474        "tot_cronet_base_sanitizer_buildflags__testing",
475        "tot_cronet_base_synchronization_buildflags__testing",
476        "tot_cronet_base_test_base_unittests_jni_headers__action__testing",
477        "tot_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
478        "tot_cronet_base_test_test_support_jni_headers__action__testing",
479        "tot_cronet_base_tracing_buildflags__testing",
480        "tot_cronet_build_blink_buildflags__testing",
481        "tot_cronet_build_branding_buildflags__testing",
482        "tot_cronet_build_chromecast_buildflags__testing",
483        "tot_cronet_build_chromeos_buildflags__testing",
484        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
485        "tot_cronet_build_ios_buildflags__testing",
486        "tot_cronet_components_prefs_android_jni_headers__action__testing",
487        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
488        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
489        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
490    ],
491    defaults: [
492        "tot_cronet_cc_defaults",
493    ],
494    cflags: [
495        "-DANDROID",
496        "-DANDROID_NDK_VERSION_ROLL=r27_1",
497        "-DBENCHMARK_STATIC_DEFINE",
498        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
499        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
500        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
501        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
502        "-DGTEST_API_=",
503        "-DGTEST_HAS_ABSL",
504        "-DGTEST_HAS_POSIX_RE=0",
505        "-DGTEST_HAS_TR1_TUPLE=0",
506        "-DGTEST_LANG_CXX11=1",
507        "-DGTEST_NO_ABSL_FLAGS",
508        "-DHAVE_SYS_UIO_H",
509        "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
510        "-DNDEBUG",
511        "-DNVALGRIND",
512        "-DOFFICIAL_BUILD",
513        "-DTMP_REBUILD_HACK",
514        "-DUNIT_TEST",
515        "-DUSE_CHROMIUM_ICU=1",
516        "-DU_ENABLE_DYLOAD=0",
517        "-DU_ENABLE_RESOURCE_TRACING=0",
518        "-DU_ENABLE_TRACING=1",
519        "-DU_STATIC_IMPLEMENTATION",
520        "-DU_USING_ICU_NAMESPACE=0",
521        "-D_GNU_SOURCE",
522        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
523        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
524        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
525        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
526        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
527        "-D__STDC_CONSTANT_MACROS",
528        "-D__STDC_FORMAT_MACROS",
529        "-fdata-sections",
530        "-ffunction-sections",
531        "-fstack-protector",
532        "-fvisibility-inlines-hidden",
533        "-fvisibility=hidden",
534        "-g1",
535    ],
536    include_dirs: [
537        "external/cronet/tot/",
538        "external/cronet/tot/base/allocator/partition_allocator/src/",
539        "external/cronet/tot/buildtools/third_party/libc++/",
540        "external/cronet/tot/third_party/abseil-cpp/",
541        "external/cronet/tot/third_party/boringssl/src/include/",
542        "external/cronet/tot/third_party/ced/src/",
543        "external/cronet/tot/third_party/google_benchmark/src/include/",
544        "external/cronet/tot/third_party/googletest/custom/",
545        "external/cronet/tot/third_party/googletest/src/googlemock/include/",
546        "external/cronet/tot/third_party/googletest/src/googletest/include/",
547        "external/cronet/tot/third_party/icu/source/common/",
548        "external/cronet/tot/third_party/icu/source/i18n/",
549        "external/cronet/tot/third_party/libc++/src/include",
550        "external/cronet/tot/third_party/libc++abi/src/include",
551        "external/cronet/tot/third_party/re2/src/",
552    ],
553    cpp_std: "c++20",
554    ldflags: [
555        "-Wl,--as-needed",
556        "-Wl,--gc-sections",
557        "-Wl,--icf=all",
558        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
559    ],
560    visibility: [
561        "//external/cronet:__subpackages__",
562    ],
563    target: {
564        android_arm: {
565            cflags: [
566                "-D_FORTIFY_SOURCE=2",
567            ],
568        },
569        android_arm64: {
570            cflags: [
571                "-D_FORTIFY_SOURCE=2",
572                "-D__ARM_NEON__=1",
573                "-O2",
574                "-mno-outline",
575            ],
576        },
577        android_x86: {
578            cflags: [
579                "-D_FORTIFY_SOURCE=2",
580                "-msse3",
581            ],
582        },
583        android_x86_64: {
584            cflags: [
585                "-D_FORTIFY_SOURCE=2",
586                "-O2",
587                "-msse3",
588            ],
589        },
590    },
591}
592