xref: /aosp_15_r20/external/cronet/third_party/abseil-cpp/absl/hash/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/hash:city
25cc_library_static {
26    name: "cronet_aml_third_party_abseil_cpp_absl_hash_city",
27    srcs: [
28        "internal/city.cc",
29    ],
30    defaults: [
31        "cronet_aml_cc_defaults",
32    ],
33    cflags: [
34        "-DABSL_ALLOCATOR_NOTHROW=1",
35        "-DANDROID",
36        "-DANDROID_NDK_VERSION_ROLL=r26b_1",
37        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
38        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
39        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
40        "-DHAVE_SYS_UIO_H",
41        "-DNDEBUG",
42        "-DNO_UNWIND_TABLES",
43        "-DNVALGRIND",
44        "-DOFFICIAL_BUILD",
45        "-D_GNU_SOURCE",
46        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
47        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
48        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
49        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
50        "-fdata-sections",
51        "-ffunction-sections",
52        "-fno-asynchronous-unwind-tables",
53        "-fno-unwind-tables",
54        "-fstack-protector",
55        "-fvisibility-inlines-hidden",
56        "-fvisibility=hidden",
57        "-g1",
58    ],
59    include_dirs: [
60        "external/cronet/",
61        "external/cronet/buildtools/third_party/libc++/",
62        "external/cronet/third_party/abseil-cpp/",
63        "external/cronet/third_party/libc++/src/include",
64        "external/cronet/third_party/libc++abi/src/include",
65    ],
66    cpp_std: "c++20",
67    ldflags: [
68        "-Wl,--as-needed",
69        "-Wl,--gc-sections",
70        "-Wl,--icf=all",
71    ],
72    visibility: [
73        "//external/cronet:__subpackages__",
74    ],
75    target: {
76        android_arm64: {
77            cflags: [
78                "-O2",
79                "-mno-outline",
80            ],
81        },
82        android_x86: {
83            cflags: [
84                "-msse3",
85            ],
86        },
87        android_x86_64: {
88            cflags: [
89                "-msse3",
90            ],
91        },
92    },
93}
94
95// GN: //third_party/abseil-cpp/absl/hash:city__testing
96cc_library_static {
97    name: "cronet_aml_third_party_abseil_cpp_absl_hash_city__testing",
98    srcs: [
99        "internal/city.cc",
100    ],
101    host_supported: true,
102    defaults: [
103        "cronet_aml_cc_defaults",
104    ],
105    cflags: [
106        "-DABSL_ALLOCATOR_NOTHROW=1",
107        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
108        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
109        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
110        "-DNDEBUG",
111        "-DNO_UNWIND_TABLES",
112        "-DNVALGRIND",
113        "-DOFFICIAL_BUILD",
114        "-D_GNU_SOURCE",
115        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
116        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
117        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
118        "-fdata-sections",
119        "-ffunction-sections",
120        "-fno-asynchronous-unwind-tables",
121        "-fno-unwind-tables",
122        "-fstack-protector",
123        "-fvisibility-inlines-hidden",
124        "-fvisibility=hidden",
125        "-g1",
126    ],
127    include_dirs: [
128        "external/cronet/",
129        "external/cronet/buildtools/third_party/libc++/",
130        "external/cronet/third_party/abseil-cpp/",
131        "external/cronet/third_party/libc++/src/include",
132        "external/cronet/third_party/libc++abi/src/include",
133    ],
134    cpp_std: "c++20",
135    ldflags: [
136        "-Wl,--as-needed",
137        "-Wl,--gc-sections",
138        "-Wl,--icf=all",
139    ],
140    visibility: [
141        "//external/cronet:__subpackages__",
142    ],
143    target: {
144        android_arm: {
145            cflags: [
146                "-DANDROID",
147                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
148                "-DHAVE_SYS_UIO_H",
149                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
150            ],
151        },
152        android_arm64: {
153            cflags: [
154                "-DANDROID",
155                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
156                "-DHAVE_SYS_UIO_H",
157                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
158                "-O2",
159                "-mno-outline",
160            ],
161        },
162        android_riscv64: {
163            cflags: [
164                "-DANDROID",
165                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
166                "-DHAVE_SYS_UIO_H",
167                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
168            ],
169        },
170        android_x86: {
171            cflags: [
172                "-DANDROID",
173                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
174                "-DHAVE_SYS_UIO_H",
175                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
176                "-msse3",
177            ],
178        },
179        android_x86_64: {
180            cflags: [
181                "-DANDROID",
182                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
183                "-DHAVE_SYS_UIO_H",
184                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
185                "-msse3",
186            ],
187        },
188        host: {
189            cflags: [
190                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
191                "-DUSE_AURA=1",
192                "-DUSE_OZONE=1",
193                "-DUSE_UDEV",
194                "-D_FILE_OFFSET_BITS=64",
195                "-D_LARGEFILE64_SOURCE",
196                "-D_LARGEFILE_SOURCE",
197                "-O2",
198                "-msse3",
199            ],
200            compile_multilib: "64",
201        },
202    },
203}
204
205// GN: //third_party/abseil-cpp/absl/hash:hash
206cc_library_static {
207    name: "cronet_aml_third_party_abseil_cpp_absl_hash_hash",
208    srcs: [
209        "internal/hash.cc",
210    ],
211    defaults: [
212        "cronet_aml_cc_defaults",
213    ],
214    cflags: [
215        "-DABSL_ALLOCATOR_NOTHROW=1",
216        "-DANDROID",
217        "-DANDROID_NDK_VERSION_ROLL=r26b_1",
218        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
219        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
220        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
221        "-DHAVE_SYS_UIO_H",
222        "-DNDEBUG",
223        "-DNO_UNWIND_TABLES",
224        "-DNVALGRIND",
225        "-DOFFICIAL_BUILD",
226        "-D_GNU_SOURCE",
227        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
228        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
229        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
230        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
231        "-fdata-sections",
232        "-ffunction-sections",
233        "-fno-asynchronous-unwind-tables",
234        "-fno-unwind-tables",
235        "-fstack-protector",
236        "-fvisibility-inlines-hidden",
237        "-fvisibility=hidden",
238        "-g1",
239    ],
240    include_dirs: [
241        "external/cronet/",
242        "external/cronet/buildtools/third_party/libc++/",
243        "external/cronet/third_party/abseil-cpp/",
244        "external/cronet/third_party/libc++/src/include",
245        "external/cronet/third_party/libc++abi/src/include",
246    ],
247    cpp_std: "c++20",
248    ldflags: [
249        "-Wl,--as-needed",
250        "-Wl,--gc-sections",
251        "-Wl,--icf=all",
252    ],
253    visibility: [
254        "//external/cronet:__subpackages__",
255    ],
256    target: {
257        android_arm64: {
258            cflags: [
259                "-O2",
260                "-mno-outline",
261            ],
262        },
263        android_x86: {
264            cflags: [
265                "-msse3",
266            ],
267        },
268        android_x86_64: {
269            cflags: [
270                "-msse3",
271            ],
272        },
273    },
274}
275
276// GN: //third_party/abseil-cpp/absl/hash:hash__testing
277cc_library_static {
278    name: "cronet_aml_third_party_abseil_cpp_absl_hash_hash__testing",
279    srcs: [
280        "internal/hash.cc",
281    ],
282    host_supported: true,
283    defaults: [
284        "cronet_aml_cc_defaults",
285    ],
286    cflags: [
287        "-DABSL_ALLOCATOR_NOTHROW=1",
288        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
289        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
290        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
291        "-DNDEBUG",
292        "-DNO_UNWIND_TABLES",
293        "-DNVALGRIND",
294        "-DOFFICIAL_BUILD",
295        "-D_GNU_SOURCE",
296        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
297        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
298        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
299        "-fdata-sections",
300        "-ffunction-sections",
301        "-fno-asynchronous-unwind-tables",
302        "-fno-unwind-tables",
303        "-fstack-protector",
304        "-fvisibility-inlines-hidden",
305        "-fvisibility=hidden",
306        "-g1",
307    ],
308    include_dirs: [
309        "external/cronet/",
310        "external/cronet/buildtools/third_party/libc++/",
311        "external/cronet/third_party/abseil-cpp/",
312        "external/cronet/third_party/libc++/src/include",
313        "external/cronet/third_party/libc++abi/src/include",
314    ],
315    cpp_std: "c++20",
316    ldflags: [
317        "-Wl,--as-needed",
318        "-Wl,--gc-sections",
319        "-Wl,--icf=all",
320    ],
321    visibility: [
322        "//external/cronet:__subpackages__",
323    ],
324    target: {
325        android_arm: {
326            cflags: [
327                "-DANDROID",
328                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
329                "-DHAVE_SYS_UIO_H",
330                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
331            ],
332        },
333        android_arm64: {
334            cflags: [
335                "-DANDROID",
336                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
337                "-DHAVE_SYS_UIO_H",
338                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
339                "-O2",
340                "-mno-outline",
341            ],
342        },
343        android_riscv64: {
344            cflags: [
345                "-DANDROID",
346                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
347                "-DHAVE_SYS_UIO_H",
348                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
349            ],
350        },
351        android_x86: {
352            cflags: [
353                "-DANDROID",
354                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
355                "-DHAVE_SYS_UIO_H",
356                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
357                "-msse3",
358            ],
359        },
360        android_x86_64: {
361            cflags: [
362                "-DANDROID",
363                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
364                "-DHAVE_SYS_UIO_H",
365                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
366                "-msse3",
367            ],
368        },
369        host: {
370            cflags: [
371                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
372                "-DUSE_AURA=1",
373                "-DUSE_OZONE=1",
374                "-DUSE_UDEV",
375                "-D_FILE_OFFSET_BITS=64",
376                "-D_LARGEFILE64_SOURCE",
377                "-D_LARGEFILE_SOURCE",
378                "-O2",
379                "-msse3",
380            ],
381            compile_multilib: "64",
382        },
383    },
384}
385
386// GN: //third_party/abseil-cpp/absl/hash:low_level_hash
387cc_library_static {
388    name: "cronet_aml_third_party_abseil_cpp_absl_hash_low_level_hash",
389    srcs: [
390        "internal/low_level_hash.cc",
391    ],
392    defaults: [
393        "cronet_aml_cc_defaults",
394    ],
395    cflags: [
396        "-DABSL_ALLOCATOR_NOTHROW=1",
397        "-DANDROID",
398        "-DANDROID_NDK_VERSION_ROLL=r26b_1",
399        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
400        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
401        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
402        "-DHAVE_SYS_UIO_H",
403        "-DNDEBUG",
404        "-DNO_UNWIND_TABLES",
405        "-DNVALGRIND",
406        "-DOFFICIAL_BUILD",
407        "-D_GNU_SOURCE",
408        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
409        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
410        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
411        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
412        "-fdata-sections",
413        "-ffunction-sections",
414        "-fno-asynchronous-unwind-tables",
415        "-fno-unwind-tables",
416        "-fstack-protector",
417        "-fvisibility-inlines-hidden",
418        "-fvisibility=hidden",
419        "-g1",
420    ],
421    include_dirs: [
422        "external/cronet/",
423        "external/cronet/buildtools/third_party/libc++/",
424        "external/cronet/third_party/abseil-cpp/",
425        "external/cronet/third_party/libc++/src/include",
426        "external/cronet/third_party/libc++abi/src/include",
427    ],
428    cpp_std: "c++20",
429    ldflags: [
430        "-Wl,--as-needed",
431        "-Wl,--gc-sections",
432        "-Wl,--icf=all",
433    ],
434    visibility: [
435        "//external/cronet:__subpackages__",
436    ],
437    target: {
438        android_arm64: {
439            cflags: [
440                "-O2",
441                "-mno-outline",
442            ],
443        },
444        android_x86: {
445            cflags: [
446                "-msse3",
447            ],
448        },
449        android_x86_64: {
450            cflags: [
451                "-msse3",
452            ],
453        },
454    },
455}
456
457// GN: //third_party/abseil-cpp/absl/hash:low_level_hash__testing
458cc_library_static {
459    name: "cronet_aml_third_party_abseil_cpp_absl_hash_low_level_hash__testing",
460    srcs: [
461        "internal/low_level_hash.cc",
462    ],
463    host_supported: true,
464    defaults: [
465        "cronet_aml_cc_defaults",
466    ],
467    cflags: [
468        "-DABSL_ALLOCATOR_NOTHROW=1",
469        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
470        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
471        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
472        "-DNDEBUG",
473        "-DNO_UNWIND_TABLES",
474        "-DNVALGRIND",
475        "-DOFFICIAL_BUILD",
476        "-D_GNU_SOURCE",
477        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
478        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
479        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
480        "-fdata-sections",
481        "-ffunction-sections",
482        "-fno-asynchronous-unwind-tables",
483        "-fno-unwind-tables",
484        "-fstack-protector",
485        "-fvisibility-inlines-hidden",
486        "-fvisibility=hidden",
487        "-g1",
488    ],
489    include_dirs: [
490        "external/cronet/",
491        "external/cronet/buildtools/third_party/libc++/",
492        "external/cronet/third_party/abseil-cpp/",
493        "external/cronet/third_party/libc++/src/include",
494        "external/cronet/third_party/libc++abi/src/include",
495    ],
496    cpp_std: "c++20",
497    ldflags: [
498        "-Wl,--as-needed",
499        "-Wl,--gc-sections",
500        "-Wl,--icf=all",
501    ],
502    visibility: [
503        "//external/cronet:__subpackages__",
504    ],
505    target: {
506        android_arm: {
507            cflags: [
508                "-DANDROID",
509                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
510                "-DHAVE_SYS_UIO_H",
511                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
512            ],
513        },
514        android_arm64: {
515            cflags: [
516                "-DANDROID",
517                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
518                "-DHAVE_SYS_UIO_H",
519                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
520                "-O2",
521                "-mno-outline",
522            ],
523        },
524        android_riscv64: {
525            cflags: [
526                "-DANDROID",
527                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
528                "-DHAVE_SYS_UIO_H",
529                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
530            ],
531        },
532        android_x86: {
533            cflags: [
534                "-DANDROID",
535                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
536                "-DHAVE_SYS_UIO_H",
537                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
538                "-msse3",
539            ],
540        },
541        android_x86_64: {
542            cflags: [
543                "-DANDROID",
544                "-DANDROID_NDK_VERSION_ROLL=r26b_1",
545                "-DHAVE_SYS_UIO_H",
546                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
547                "-msse3",
548            ],
549        },
550        host: {
551            cflags: [
552                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
553                "-DUSE_AURA=1",
554                "-DUSE_OZONE=1",
555                "-DUSE_UDEV",
556                "-D_FILE_OFFSET_BITS=64",
557                "-D_LARGEFILE64_SOURCE",
558                "-D_LARGEFILE_SOURCE",
559                "-O2",
560                "-msse3",
561            ],
562            compile_multilib: "64",
563        },
564    },
565}
566