• 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/network_time/time_tracker:time_tracker
25cc_library_static {
26    name: "tot_cronet_components_network_time_time_tracker_time_tracker",
27    srcs: [
28        "time_tracker.cc",
29    ],
30    shared_libs: [
31        "libandroid",
32        "liblog",
33        "libz",
34        "tot_cronet_libcrypto",
35        "tot_cronet_libpki",
36        "tot_cronet_libssl",
37    ],
38    host_cross_supported: false,
39    generated_headers: [
40        "tot_cronet_base_allocator_buildflags",
41        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags",
42        "tot_cronet_base_anchor_functions_buildflags",
43        "tot_cronet_base_android_runtime_jni_headers__action",
44        "tot_cronet_base_base_jni__action",
45        "tot_cronet_base_base_shared_preferences_jni__action",
46        "tot_cronet_base_build_date",
47        "tot_cronet_base_callback_jni__action",
48        "tot_cronet_base_cfi_buildflags",
49        "tot_cronet_base_check_version_internal_action",
50        "tot_cronet_base_clang_profiling_buildflags",
51        "tot_cronet_base_command_line_jni__action",
52        "tot_cronet_base_content_uri_utils_jni__action",
53        "tot_cronet_base_debugging_buildflags",
54        "tot_cronet_base_feature_list_buildflags",
55        "tot_cronet_base_fuzzing_buildflags",
56        "tot_cronet_base_ios_cronet_buildflags",
57        "tot_cronet_base_jank_tracker_jni__action",
58        "tot_cronet_base_library_loader_jni__action",
59        "tot_cronet_base_memory_jni__action",
60        "tot_cronet_base_metrics_jni__action",
61        "tot_cronet_base_orderfile_buildflags",
62        "tot_cronet_base_power_monitor_buildflags",
63        "tot_cronet_base_process_launcher_jni__action",
64        "tot_cronet_base_profiler_buildflags",
65        "tot_cronet_base_protected_memory_buildflags",
66        "tot_cronet_base_rust_logger_cxx_generated_gen_header",
67        "tot_cronet_base_sanitizer_buildflags",
68        "tot_cronet_base_synchronization_buildflags",
69        "tot_cronet_base_sys_utils_jni__action",
70        "tot_cronet_base_tasks_jni__action",
71        "tot_cronet_base_tracing_buildflags",
72        "tot_cronet_build_blink_buildflags",
73        "tot_cronet_build_branding_buildflags",
74        "tot_cronet_build_chromecast_buildflags",
75        "tot_cronet_build_chromeos_buildflags",
76        "tot_cronet_build_config_compiler_compiler_buildflags",
77        "tot_cronet_build_ios_buildflags",
78        "tot_cronet_build_robolectric_buildflags",
79        "tot_cronet_third_party_jni_zero_generate_jni__action",
80        "tot_cronet_third_party_jni_zero_system_jni__action",
81        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header",
82    ],
83    export_generated_headers: [
84        "tot_cronet_base_allocator_buildflags",
85        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags",
86        "tot_cronet_base_anchor_functions_buildflags",
87        "tot_cronet_base_android_runtime_jni_headers__action",
88        "tot_cronet_base_base_jni__action",
89        "tot_cronet_base_base_shared_preferences_jni__action",
90        "tot_cronet_base_build_date",
91        "tot_cronet_base_callback_jni__action",
92        "tot_cronet_base_cfi_buildflags",
93        "tot_cronet_base_check_version_internal_action",
94        "tot_cronet_base_clang_profiling_buildflags",
95        "tot_cronet_base_command_line_jni__action",
96        "tot_cronet_base_content_uri_utils_jni__action",
97        "tot_cronet_base_debugging_buildflags",
98        "tot_cronet_base_feature_list_buildflags",
99        "tot_cronet_base_fuzzing_buildflags",
100        "tot_cronet_base_ios_cronet_buildflags",
101        "tot_cronet_base_jank_tracker_jni__action",
102        "tot_cronet_base_library_loader_jni__action",
103        "tot_cronet_base_memory_jni__action",
104        "tot_cronet_base_metrics_jni__action",
105        "tot_cronet_base_orderfile_buildflags",
106        "tot_cronet_base_power_monitor_buildflags",
107        "tot_cronet_base_process_launcher_jni__action",
108        "tot_cronet_base_profiler_buildflags",
109        "tot_cronet_base_protected_memory_buildflags",
110        "tot_cronet_base_rust_logger_cxx_generated_gen_header",
111        "tot_cronet_base_sanitizer_buildflags",
112        "tot_cronet_base_synchronization_buildflags",
113        "tot_cronet_base_sys_utils_jni__action",
114        "tot_cronet_base_tasks_jni__action",
115        "tot_cronet_base_tracing_buildflags",
116        "tot_cronet_build_blink_buildflags",
117        "tot_cronet_build_branding_buildflags",
118        "tot_cronet_build_chromecast_buildflags",
119        "tot_cronet_build_chromeos_buildflags",
120        "tot_cronet_build_config_compiler_compiler_buildflags",
121        "tot_cronet_build_ios_buildflags",
122        "tot_cronet_build_robolectric_buildflags",
123        "tot_cronet_third_party_jni_zero_generate_jni__action",
124        "tot_cronet_third_party_jni_zero_system_jni__action",
125        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen_header",
126    ],
127    defaults: [
128        "tot_cronet_cc_defaults",
129    ],
130    cflags: [
131        "-DANDROID",
132        "-DANDROID_NDK_VERSION_ROLL=r27_1",
133        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
134        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
135        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
136        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
137        "-DHAVE_SYS_UIO_H",
138        "-DNDEBUG",
139        "-DNVALGRIND",
140        "-DOFFICIAL_BUILD",
141        "-DTMP_REBUILD_HACK",
142        "-D_GNU_SOURCE",
143        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
144        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
145        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
146        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
147        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
148        "-D__STDC_CONSTANT_MACROS",
149        "-D__STDC_FORMAT_MACROS",
150        "-fdata-sections",
151        "-ffunction-sections",
152        "-fstack-protector",
153        "-fvisibility-inlines-hidden",
154        "-fvisibility=hidden",
155        "-g1",
156    ],
157    include_dirs: [
158        "external/cronet/tot/",
159        "external/cronet/tot/base/allocator/partition_allocator/src/",
160        "external/cronet/tot/buildtools/third_party/libc++/",
161        "external/cronet/tot/third_party/abseil-cpp/",
162        "external/cronet/tot/third_party/boringssl/src/include/",
163        "external/cronet/tot/third_party/libc++/src/include",
164        "external/cronet/tot/third_party/libc++abi/src/include",
165    ],
166    cpp_std: "c++20",
167    ldflags: [
168        "-Wl,--as-needed",
169        "-Wl,--gc-sections",
170        "-Wl,--icf=all",
171        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
172    ],
173    visibility: [
174        "//external/cronet:__subpackages__",
175    ],
176    target: {
177        android_arm: {
178            cflags: [
179                "-D_FORTIFY_SOURCE=2",
180            ],
181        },
182        android_arm64: {
183            cflags: [
184                "-D_FORTIFY_SOURCE=2",
185                "-D__ARM_NEON__=1",
186                "-O2",
187                "-mno-outline",
188            ],
189        },
190        android_x86: {
191            cflags: [
192                "-D_FORTIFY_SOURCE=2",
193                "-msse3",
194            ],
195        },
196        android_x86_64: {
197            cflags: [
198                "-D_FORTIFY_SOURCE=2",
199                "-O2",
200                "-msse3",
201            ],
202        },
203    },
204}
205
206// GN: //components/network_time/time_tracker:time_tracker__testing
207cc_library_static {
208    name: "tot_cronet_components_network_time_time_tracker_time_tracker__testing",
209    srcs: [
210        "time_tracker.cc",
211    ],
212    shared_libs: [
213        "libandroid",
214        "liblog",
215        "libz",
216    ],
217    host_cross_supported: false,
218    generated_headers: [
219        "tot_cronet_base_allocator_buildflags__testing",
220        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
221        "tot_cronet_base_anchor_functions_buildflags__testing",
222        "tot_cronet_base_build_date__testing",
223        "tot_cronet_base_cfi_buildflags__testing",
224        "tot_cronet_base_check_version_internal_action__testing",
225        "tot_cronet_base_clang_profiling_buildflags__testing",
226        "tot_cronet_base_debugging_buildflags__testing",
227        "tot_cronet_base_feature_list_buildflags__testing",
228        "tot_cronet_base_fuzzing_buildflags__testing",
229        "tot_cronet_base_ios_cronet_buildflags__testing",
230        "tot_cronet_base_orderfile_buildflags__testing",
231        "tot_cronet_base_power_monitor_buildflags__testing",
232        "tot_cronet_base_profiler_buildflags__testing",
233        "tot_cronet_base_protected_memory_buildflags__testing",
234        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
235        "tot_cronet_base_sanitizer_buildflags__testing",
236        "tot_cronet_base_synchronization_buildflags__testing",
237        "tot_cronet_base_tracing_buildflags__testing",
238        "tot_cronet_build_blink_buildflags__testing",
239        "tot_cronet_build_branding_buildflags__testing",
240        "tot_cronet_build_chromecast_buildflags__testing",
241        "tot_cronet_build_chromeos_buildflags__testing",
242        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
243        "tot_cronet_build_ios_buildflags__testing",
244        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
245        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
246        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
247    ],
248    export_generated_headers: [
249        "tot_cronet_base_allocator_buildflags__testing",
250        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
251        "tot_cronet_base_anchor_functions_buildflags__testing",
252        "tot_cronet_base_build_date__testing",
253        "tot_cronet_base_cfi_buildflags__testing",
254        "tot_cronet_base_check_version_internal_action__testing",
255        "tot_cronet_base_clang_profiling_buildflags__testing",
256        "tot_cronet_base_debugging_buildflags__testing",
257        "tot_cronet_base_feature_list_buildflags__testing",
258        "tot_cronet_base_fuzzing_buildflags__testing",
259        "tot_cronet_base_ios_cronet_buildflags__testing",
260        "tot_cronet_base_orderfile_buildflags__testing",
261        "tot_cronet_base_power_monitor_buildflags__testing",
262        "tot_cronet_base_profiler_buildflags__testing",
263        "tot_cronet_base_protected_memory_buildflags__testing",
264        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
265        "tot_cronet_base_sanitizer_buildflags__testing",
266        "tot_cronet_base_synchronization_buildflags__testing",
267        "tot_cronet_base_tracing_buildflags__testing",
268        "tot_cronet_build_blink_buildflags__testing",
269        "tot_cronet_build_branding_buildflags__testing",
270        "tot_cronet_build_chromecast_buildflags__testing",
271        "tot_cronet_build_chromeos_buildflags__testing",
272        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
273        "tot_cronet_build_ios_buildflags__testing",
274        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
275        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
276        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
277    ],
278    defaults: [
279        "tot_cronet_cc_defaults",
280    ],
281    cflags: [
282        "-DANDROID",
283        "-DANDROID_NDK_VERSION_ROLL=r27_1",
284        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
285        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
286        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
287        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
288        "-DHAVE_SYS_UIO_H",
289        "-DNDEBUG",
290        "-DNVALGRIND",
291        "-DOFFICIAL_BUILD",
292        "-DTMP_REBUILD_HACK",
293        "-D_GNU_SOURCE",
294        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
295        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
296        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
297        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
298        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
299        "-D__STDC_CONSTANT_MACROS",
300        "-D__STDC_FORMAT_MACROS",
301        "-fdata-sections",
302        "-ffunction-sections",
303        "-fstack-protector",
304        "-fvisibility-inlines-hidden",
305        "-fvisibility=hidden",
306        "-g1",
307    ],
308    include_dirs: [
309        "external/cronet/tot/",
310        "external/cronet/tot/base/allocator/partition_allocator/src/",
311        "external/cronet/tot/buildtools/third_party/libc++/",
312        "external/cronet/tot/third_party/abseil-cpp/",
313        "external/cronet/tot/third_party/boringssl/src/include/",
314        "external/cronet/tot/third_party/libc++/src/include",
315        "external/cronet/tot/third_party/libc++abi/src/include",
316    ],
317    cpp_std: "c++20",
318    ldflags: [
319        "-Wl,--as-needed",
320        "-Wl,--gc-sections",
321        "-Wl,--icf=all",
322        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
323    ],
324    visibility: [
325        "//external/cronet:__subpackages__",
326    ],
327    target: {
328        android_arm: {
329            cflags: [
330                "-D_FORTIFY_SOURCE=2",
331            ],
332        },
333        android_arm64: {
334            cflags: [
335                "-D_FORTIFY_SOURCE=2",
336                "-D__ARM_NEON__=1",
337                "-O2",
338                "-mno-outline",
339            ],
340        },
341        android_x86: {
342            cflags: [
343                "-D_FORTIFY_SOURCE=2",
344                "-msse3",
345            ],
346        },
347        android_x86_64: {
348            cflags: [
349                "-D_FORTIFY_SOURCE=2",
350                "-O2",
351                "-msse3",
352            ],
353        },
354    },
355}
356