xref: /aosp_15_r20/external/cronet/third_party/abseil-cpp/absl/container/Android.bp (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 gn2bp/gen_android_bp.py. Do not edit.
16
17// GN: Package-Artificial
18package {
19    default_applicable_licenses: [
20        "external_cronet_third_party_abseil-cpp_license",
21    ],
22}
23
24// GN: //third_party/abseil-cpp/absl/container:hashtablez_sampler
25cc_library_static {
26    name: "cronet_aml_third_party_abseil_cpp_absl_container_hashtablez_sampler",
27    srcs: [
28        "internal/hashtablez_sampler.cc",
29        "internal/hashtablez_sampler_force_weak_definition.cc",
30    ],
31    defaults: [
32        "cronet_aml_cc_defaults",
33    ],
34    cflags: [
35        "-DABSL_ALLOCATOR_NOTHROW=1",
36        "-DANDROID",
37        "-DANDROID_NDK_VERSION_ROLL=r26b_1",
38        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
39        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
40        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
41        "-DHAVE_SYS_UIO_H",
42        "-DNDEBUG",
43        "-DNO_UNWIND_TABLES",
44        "-DNVALGRIND",
45        "-DOFFICIAL_BUILD",
46        "-D_GNU_SOURCE",
47        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
48        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
49        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
50        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
51        "-fdata-sections",
52        "-ffunction-sections",
53        "-fno-asynchronous-unwind-tables",
54        "-fno-unwind-tables",
55        "-fstack-protector",
56        "-fvisibility-inlines-hidden",
57        "-fvisibility=hidden",
58        "-g1",
59    ],
60    include_dirs: [
61        "external/cronet/",
62        "external/cronet/buildtools/third_party/libc++/",
63        "external/cronet/third_party/abseil-cpp/",
64        "external/cronet/third_party/libc++/src/include",
65        "external/cronet/third_party/libc++abi/src/include",
66    ],
67    cpp_std: "c++20",
68    ldflags: [
69        "-Wl,--as-needed",
70        "-Wl,--gc-sections",
71        "-Wl,--icf=all",
72    ],
73    visibility: [
74        "//external/cronet:__subpackages__",
75    ],
76    target: {
77        android_arm64: {
78            cflags: [
79                "-O2",
80                "-mno-outline",
81            ],
82        },
83        android_x86: {
84            cflags: [
85                "-msse3",
86            ],
87        },
88        android_x86_64: {
89            cflags: [
90                "-msse3",
91            ],
92        },
93    },
94}
95
96// GN: //third_party/abseil-cpp/absl/container:hashtablez_sampler__testing
97cc_library_static {
98    name: "cronet_aml_third_party_abseil_cpp_absl_container_hashtablez_sampler__testing",
99    srcs: [
100        "internal/hashtablez_sampler.cc",
101        "internal/hashtablez_sampler_force_weak_definition.cc",
102    ],
103    host_supported: true,
104    defaults: [
105        "cronet_aml_cc_defaults",
106    ],
107    cflags: [
108        "-DABSL_ALLOCATOR_NOTHROW=1",
109        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
110        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
111        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
112        "-DNDEBUG",
113        "-DNO_UNWIND_TABLES",
114        "-DNVALGRIND",
115        "-DOFFICIAL_BUILD",
116        "-D_GNU_SOURCE",
117        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
118        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
119        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
120        "-fdata-sections",
121        "-ffunction-sections",
122        "-fno-asynchronous-unwind-tables",
123        "-fno-unwind-tables",
124        "-fstack-protector",
125        "-fvisibility-inlines-hidden",
126        "-fvisibility=hidden",
127        "-g1",
128    ],
129    include_dirs: [
130        "external/cronet/",
131        "external/cronet/buildtools/third_party/libc++/",
132        "external/cronet/third_party/abseil-cpp/",
133        "external/cronet/third_party/libc++/src/include",
134        "external/cronet/third_party/libc++abi/src/include",
135    ],
136    cpp_std: "c++20",
137    ldflags: [
138        "-Wl,--as-needed",
139        "-Wl,--gc-sections",
140        "-Wl,--icf=all",
141    ],
142    visibility: [
143        "//external/cronet:__subpackages__",
144    ],
145    target: {
146        android_arm: {
147            cflags: [
148                "-DANDROID",
149                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
150                "-DHAVE_SYS_UIO_H",
151                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
152            ],
153        },
154        android_arm64: {
155            cflags: [
156                "-DANDROID",
157                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
158                "-DHAVE_SYS_UIO_H",
159                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
160                "-O2",
161                "-mno-outline",
162            ],
163        },
164        android_riscv64: {
165            cflags: [
166                "-DANDROID",
167                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
168                "-DHAVE_SYS_UIO_H",
169                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
170            ],
171        },
172        android_x86: {
173            cflags: [
174                "-DANDROID",
175                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
176                "-DHAVE_SYS_UIO_H",
177                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
178                "-msse3",
179            ],
180        },
181        android_x86_64: {
182            cflags: [
183                "-DANDROID",
184                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
185                "-DHAVE_SYS_UIO_H",
186                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
187                "-msse3",
188            ],
189        },
190        host: {
191            cflags: [
192                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
193                "-DUSE_AURA=1",
194                "-DUSE_OZONE=1",
195                "-DUSE_UDEV",
196                "-D_FILE_OFFSET_BITS=64",
197                "-D_LARGEFILE64_SOURCE",
198                "-D_LARGEFILE_SOURCE",
199                "-O2",
200                "-msse3",
201            ],
202            compile_multilib: "64",
203        },
204    },
205}
206
207// GN: //third_party/abseil-cpp/absl/container:raw_hash_set
208cc_library_static {
209    name: "cronet_aml_third_party_abseil_cpp_absl_container_raw_hash_set",
210    srcs: [
211        "internal/raw_hash_set.cc",
212    ],
213    defaults: [
214        "cronet_aml_cc_defaults",
215    ],
216    cflags: [
217        "-DABSL_ALLOCATOR_NOTHROW=1",
218        "-DANDROID",
219        "-DANDROID_NDK_VERSION_ROLL=r26b_1",
220        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
221        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
222        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
223        "-DHAVE_SYS_UIO_H",
224        "-DNDEBUG",
225        "-DNO_UNWIND_TABLES",
226        "-DNVALGRIND",
227        "-DOFFICIAL_BUILD",
228        "-D_GNU_SOURCE",
229        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
230        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
231        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
232        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
233        "-fdata-sections",
234        "-ffunction-sections",
235        "-fno-asynchronous-unwind-tables",
236        "-fno-unwind-tables",
237        "-fstack-protector",
238        "-fvisibility-inlines-hidden",
239        "-fvisibility=hidden",
240        "-g1",
241    ],
242    include_dirs: [
243        "external/cronet/",
244        "external/cronet/buildtools/third_party/libc++/",
245        "external/cronet/third_party/abseil-cpp/",
246        "external/cronet/third_party/libc++/src/include",
247        "external/cronet/third_party/libc++abi/src/include",
248    ],
249    cpp_std: "c++20",
250    ldflags: [
251        "-Wl,--as-needed",
252        "-Wl,--gc-sections",
253        "-Wl,--icf=all",
254    ],
255    visibility: [
256        "//external/cronet:__subpackages__",
257    ],
258    target: {
259        android_arm64: {
260            cflags: [
261                "-O2",
262                "-mno-outline",
263            ],
264        },
265        android_x86: {
266            cflags: [
267                "-msse3",
268            ],
269        },
270        android_x86_64: {
271            cflags: [
272                "-msse3",
273            ],
274        },
275    },
276}
277
278// GN: //third_party/abseil-cpp/absl/container:raw_hash_set__testing
279cc_library_static {
280    name: "cronet_aml_third_party_abseil_cpp_absl_container_raw_hash_set__testing",
281    srcs: [
282        "internal/raw_hash_set.cc",
283    ],
284    host_supported: true,
285    defaults: [
286        "cronet_aml_cc_defaults",
287    ],
288    cflags: [
289        "-DABSL_ALLOCATOR_NOTHROW=1",
290        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
291        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
292        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
293        "-DNDEBUG",
294        "-DNO_UNWIND_TABLES",
295        "-DNVALGRIND",
296        "-DOFFICIAL_BUILD",
297        "-D_GNU_SOURCE",
298        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
299        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
300        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
301        "-fdata-sections",
302        "-ffunction-sections",
303        "-fno-asynchronous-unwind-tables",
304        "-fno-unwind-tables",
305        "-fstack-protector",
306        "-fvisibility-inlines-hidden",
307        "-fvisibility=hidden",
308        "-g1",
309    ],
310    include_dirs: [
311        "external/cronet/",
312        "external/cronet/buildtools/third_party/libc++/",
313        "external/cronet/third_party/abseil-cpp/",
314        "external/cronet/third_party/libc++/src/include",
315        "external/cronet/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    ],
323    visibility: [
324        "//external/cronet:__subpackages__",
325    ],
326    target: {
327        android_arm: {
328            cflags: [
329                "-DANDROID",
330                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
331                "-DHAVE_SYS_UIO_H",
332                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
333            ],
334        },
335        android_arm64: {
336            cflags: [
337                "-DANDROID",
338                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
339                "-DHAVE_SYS_UIO_H",
340                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
341                "-O2",
342                "-mno-outline",
343            ],
344        },
345        android_riscv64: {
346            cflags: [
347                "-DANDROID",
348                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
349                "-DHAVE_SYS_UIO_H",
350                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
351            ],
352        },
353        android_x86: {
354            cflags: [
355                "-DANDROID",
356                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
357                "-DHAVE_SYS_UIO_H",
358                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
359                "-msse3",
360            ],
361        },
362        android_x86_64: {
363            cflags: [
364                "-DANDROID",
365                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
366                "-DHAVE_SYS_UIO_H",
367                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
368                "-msse3",
369            ],
370        },
371        host: {
372            cflags: [
373                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
374                "-DUSE_AURA=1",
375                "-DUSE_OZONE=1",
376                "-DUSE_UDEV",
377                "-D_FILE_OFFSET_BITS=64",
378                "-D_LARGEFILE64_SOURCE",
379                "-D_LARGEFILE_SOURCE",
380                "-O2",
381                "-msse3",
382            ],
383            compile_multilib: "64",
384        },
385    },
386}
387