xref: /aosp_15_r20/external/cronet/third_party/abseil-cpp/absl/numeric/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/numeric:int128
25cc_library_static {
26    name: "cronet_aml_third_party_abseil_cpp_absl_numeric_int128",
27    srcs: [
28        "int128.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/numeric:int128__testing
96cc_library_static {
97    name: "cronet_aml_third_party_abseil_cpp_absl_numeric_int128__testing",
98    srcs: [
99        "int128.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