• 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        "stable_cronet_third_party_libc++_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "stable_cronet_third_party_libc++_license",
27    visibility: [
28        ":__subpackages__",
29    ],
30    license_text: [
31        "LICENSE",
32    ],
33    license_kinds: [
34        "SPDX-license-identifier-MIT",
35    ],
36}
37
38// GN: //buildtools/third_party/libc++:libc++
39cc_library_static {
40    name: "stable_cronet_buildtools_third_party_libc___libc__",
41    srcs: [
42        "src/src/algorithm.cpp",
43        "src/src/any.cpp",
44        "src/src/atomic.cpp",
45        "src/src/barrier.cpp",
46        "src/src/bind.cpp",
47        "src/src/call_once.cpp",
48        "src/src/charconv.cpp",
49        "src/src/chrono.cpp",
50        "src/src/condition_variable.cpp",
51        "src/src/condition_variable_destructor.cpp",
52        "src/src/error_category.cpp",
53        "src/src/exception.cpp",
54        "src/src/filesystem/directory_iterator.cpp",
55        "src/src/filesystem/filesystem_error.cpp",
56        "src/src/filesystem/operations.cpp",
57        "src/src/filesystem/path.cpp",
58        "src/src/functional.cpp",
59        "src/src/future.cpp",
60        "src/src/hash.cpp",
61        "src/src/ios.cpp",
62        "src/src/ios.instantiations.cpp",
63        "src/src/iostream.cpp",
64        "src/src/locale.cpp",
65        "src/src/memory.cpp",
66        "src/src/mutex.cpp",
67        "src/src/mutex_destructor.cpp",
68        "src/src/new.cpp",
69        "src/src/new_handler.cpp",
70        "src/src/new_helpers.cpp",
71        "src/src/optional.cpp",
72        "src/src/random.cpp",
73        "src/src/random_shuffle.cpp",
74        "src/src/regex.cpp",
75        "src/src/ryu/d2fixed.cpp",
76        "src/src/ryu/d2s.cpp",
77        "src/src/ryu/f2s.cpp",
78        "src/src/shared_mutex.cpp",
79        "src/src/stdexcept.cpp",
80        "src/src/string.cpp",
81        "src/src/strstream.cpp",
82        "src/src/system_error.cpp",
83        "src/src/thread.cpp",
84        "src/src/typeinfo.cpp",
85        "src/src/valarray.cpp",
86        "src/src/variant.cpp",
87        "src/src/vector.cpp",
88        "src/src/verbose_abort.cpp",
89    ],
90    host_supported: true,
91    host_cross_supported: false,
92    defaults: [
93        "stable_cronet_cc_defaults",
94    ],
95    cflags: [
96        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
97        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
98        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
99        "-DLIBCXX_BUILDING_LIBCXXABI",
100        "-DLIBC_NAMESPACE=__llvm_libc_cr",
101        "-DNDEBUG",
102        "-DNVALGRIND",
103        "-DOFFICIAL_BUILD",
104        "-DTMP_REBUILD_HACK",
105        "-D_GNU_SOURCE",
106        "-D_LIBCPP_BUILDING_LIBRARY",
107        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
108        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
109        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
110        "-D_LIBCPP_OVERRIDABLE_FUNC_VIS=__attribute__((__visibility__(\"default\")))",
111        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
112        "-fdata-sections",
113        "-ffunction-sections",
114        "-fstack-protector",
115        "-fvisibility-inlines-hidden",
116        "-fvisibility=hidden",
117        "-g1",
118    ],
119    include_dirs: [
120        "external/cronet/stable/",
121        "external/cronet/stable/buildtools/third_party/libc++/",
122        "external/cronet/stable/third_party/libc++/src/include",
123        "external/cronet/stable/third_party/libc++/src/src/",
124        "external/cronet/stable/third_party/libc++abi/src/include",
125        "external/cronet/stable/third_party/llvm-libc/src/",
126    ],
127    cpp_std: "c++20",
128    ldflags: [
129        "-Wl,--as-needed",
130        "-Wl,--gc-sections",
131        "-Wl,--icf=all",
132    ],
133    cppflags: [
134        "-fexceptions",
135    ],
136    visibility: [
137        "//external/cronet:__subpackages__",
138    ],
139    rtti: true,
140    target: {
141        android_arm: {
142            cflags: [
143                "-DANDROID",
144                "-DANDROID_NDK_VERSION_ROLL=r27_1",
145                "-DHAVE_SYS_UIO_H",
146                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
147            ],
148        },
149        android_arm64: {
150            cflags: [
151                "-DANDROID",
152                "-DANDROID_NDK_VERSION_ROLL=r27_1",
153                "-DHAVE_SYS_UIO_H",
154                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
155                "-D__ARM_NEON__=1",
156                "-O2",
157                "-mno-outline",
158            ],
159        },
160        android_riscv64: {
161            cflags: [
162                "-DANDROID",
163                "-DANDROID_NDK_VERSION_ROLL=r27_1",
164                "-DHAVE_SYS_UIO_H",
165                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
166            ],
167        },
168        android_x86: {
169            cflags: [
170                "-DANDROID",
171                "-DANDROID_NDK_VERSION_ROLL=r27_1",
172                "-DHAVE_SYS_UIO_H",
173                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
174                "-msse3",
175            ],
176        },
177        android_x86_64: {
178            cflags: [
179                "-DANDROID",
180                "-DANDROID_NDK_VERSION_ROLL=r27_1",
181                "-DHAVE_SYS_UIO_H",
182                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
183                "-O2",
184                "-msse3",
185            ],
186        },
187        host: {
188            srcs: [
189                "src/src/filesystem/directory_entry.cpp",
190                "src/src/filesystem/filesystem_clock.cpp",
191            ],
192            cflags: [
193                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
194                "-DNO_UNWIND_TABLES",
195                "-DUSE_AURA=1",
196                "-DUSE_OZONE=1",
197                "-DUSE_UDEV",
198                "-D_FILE_OFFSET_BITS=64",
199                "-D_LARGEFILE64_SOURCE",
200                "-D_LARGEFILE_SOURCE",
201                "-O2",
202                "-fno-asynchronous-unwind-tables",
203                "-fno-unwind-tables",
204                "-msse3",
205            ],
206        },
207    },
208}
209
210// GN: //buildtools/third_party/libc++:libc++__testing
211cc_library_static {
212    name: "stable_cronet_buildtools_third_party_libc___libc____testing",
213    srcs: [
214        "src/src/algorithm.cpp",
215        "src/src/any.cpp",
216        "src/src/atomic.cpp",
217        "src/src/barrier.cpp",
218        "src/src/bind.cpp",
219        "src/src/call_once.cpp",
220        "src/src/charconv.cpp",
221        "src/src/chrono.cpp",
222        "src/src/condition_variable.cpp",
223        "src/src/condition_variable_destructor.cpp",
224        "src/src/error_category.cpp",
225        "src/src/exception.cpp",
226        "src/src/filesystem/directory_iterator.cpp",
227        "src/src/filesystem/filesystem_error.cpp",
228        "src/src/filesystem/operations.cpp",
229        "src/src/filesystem/path.cpp",
230        "src/src/functional.cpp",
231        "src/src/future.cpp",
232        "src/src/hash.cpp",
233        "src/src/ios.cpp",
234        "src/src/ios.instantiations.cpp",
235        "src/src/iostream.cpp",
236        "src/src/locale.cpp",
237        "src/src/memory.cpp",
238        "src/src/mutex.cpp",
239        "src/src/mutex_destructor.cpp",
240        "src/src/new.cpp",
241        "src/src/new_handler.cpp",
242        "src/src/new_helpers.cpp",
243        "src/src/optional.cpp",
244        "src/src/random.cpp",
245        "src/src/random_shuffle.cpp",
246        "src/src/regex.cpp",
247        "src/src/ryu/d2fixed.cpp",
248        "src/src/ryu/d2s.cpp",
249        "src/src/ryu/f2s.cpp",
250        "src/src/shared_mutex.cpp",
251        "src/src/stdexcept.cpp",
252        "src/src/string.cpp",
253        "src/src/strstream.cpp",
254        "src/src/system_error.cpp",
255        "src/src/thread.cpp",
256        "src/src/typeinfo.cpp",
257        "src/src/valarray.cpp",
258        "src/src/variant.cpp",
259        "src/src/vector.cpp",
260        "src/src/verbose_abort.cpp",
261    ],
262    host_supported: true,
263    host_cross_supported: false,
264    defaults: [
265        "stable_cronet_cc_defaults",
266    ],
267    cflags: [
268        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
269        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
270        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
271        "-DLIBCXX_BUILDING_LIBCXXABI",
272        "-DLIBC_NAMESPACE=__llvm_libc_cr",
273        "-DNDEBUG",
274        "-DNVALGRIND",
275        "-DOFFICIAL_BUILD",
276        "-DTMP_REBUILD_HACK",
277        "-D_GNU_SOURCE",
278        "-D_LIBCPP_BUILDING_LIBRARY",
279        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
280        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
281        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
282        "-D_LIBCPP_OVERRIDABLE_FUNC_VIS=__attribute__((__visibility__(\"default\")))",
283        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
284        "-fdata-sections",
285        "-ffunction-sections",
286        "-fstack-protector",
287        "-fvisibility-inlines-hidden",
288        "-fvisibility=hidden",
289        "-g1",
290    ],
291    include_dirs: [
292        "external/cronet/stable/",
293        "external/cronet/stable/buildtools/third_party/libc++/",
294        "external/cronet/stable/third_party/libc++/src/include",
295        "external/cronet/stable/third_party/libc++/src/src/",
296        "external/cronet/stable/third_party/libc++abi/src/include",
297        "external/cronet/stable/third_party/llvm-libc/src/",
298    ],
299    cpp_std: "c++20",
300    ldflags: [
301        "-Wl,--as-needed",
302        "-Wl,--gc-sections",
303        "-Wl,--icf=all",
304    ],
305    cppflags: [
306        "-fexceptions",
307    ],
308    visibility: [
309        "//external/cronet:__subpackages__",
310    ],
311    rtti: true,
312    target: {
313        android_arm: {
314            cflags: [
315                "-DANDROID",
316                "-DANDROID_NDK_VERSION_ROLL=r27_1",
317                "-DHAVE_SYS_UIO_H",
318                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
319            ],
320        },
321        android_arm64: {
322            cflags: [
323                "-DANDROID",
324                "-DANDROID_NDK_VERSION_ROLL=r27_1",
325                "-DHAVE_SYS_UIO_H",
326                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
327                "-D__ARM_NEON__=1",
328                "-O2",
329                "-mno-outline",
330            ],
331        },
332        android_riscv64: {
333            cflags: [
334                "-DANDROID",
335                "-DANDROID_NDK_VERSION_ROLL=r27_1",
336                "-DHAVE_SYS_UIO_H",
337                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
338            ],
339        },
340        android_x86: {
341            cflags: [
342                "-DANDROID",
343                "-DANDROID_NDK_VERSION_ROLL=r27_1",
344                "-DHAVE_SYS_UIO_H",
345                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
346                "-msse3",
347            ],
348        },
349        android_x86_64: {
350            cflags: [
351                "-DANDROID",
352                "-DANDROID_NDK_VERSION_ROLL=r27_1",
353                "-DHAVE_SYS_UIO_H",
354                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
355                "-O2",
356                "-msse3",
357            ],
358        },
359        host: {
360            srcs: [
361                "src/src/filesystem/directory_entry.cpp",
362                "src/src/filesystem/filesystem_clock.cpp",
363            ],
364            cflags: [
365                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
366                "-DNO_UNWIND_TABLES",
367                "-DUSE_AURA=1",
368                "-DUSE_OZONE=1",
369                "-DUSE_UDEV",
370                "-D_FILE_OFFSET_BITS=64",
371                "-D_LARGEFILE64_SOURCE",
372                "-D_LARGEFILE_SOURCE",
373                "-O2",
374                "-fno-asynchronous-unwind-tables",
375                "-fno-unwind-tables",
376                "-msse3",
377            ],
378        },
379    },
380}
381