• 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_abseil-cpp_license",
21    ],
22}
23
24// GN: //third_party/abseil-cpp/absl/time:time
25cc_library_static {
26    name: "stable_cronet_third_party_abseil_cpp_absl_time_time",
27    srcs: [
28        "civil_time.cc",
29        "clock.cc",
30        "duration.cc",
31        "format.cc",
32        "time.cc",
33    ],
34    host_cross_supported: false,
35    defaults: [
36        "stable_cronet_cc_defaults",
37    ],
38    cflags: [
39        "-DABSL_ALLOCATOR_NOTHROW=1",
40        "-DANDROID",
41        "-DANDROID_NDK_VERSION_ROLL=r27_1",
42        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
43        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
44        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
45        "-DHAVE_SYS_UIO_H",
46        "-DNDEBUG",
47        "-DNVALGRIND",
48        "-DOFFICIAL_BUILD",
49        "-DTMP_REBUILD_HACK",
50        "-D_GNU_SOURCE",
51        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
52        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
53        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
54        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
55        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
56        "-fdata-sections",
57        "-ffunction-sections",
58        "-fstack-protector",
59        "-fvisibility-inlines-hidden",
60        "-fvisibility=hidden",
61        "-g1",
62    ],
63    include_dirs: [
64        "external/cronet/stable/",
65        "external/cronet/stable/buildtools/third_party/libc++/",
66        "external/cronet/stable/third_party/abseil-cpp/",
67        "external/cronet/stable/third_party/libc++/src/include",
68        "external/cronet/stable/third_party/libc++abi/src/include",
69    ],
70    cpp_std: "c++20",
71    ldflags: [
72        "-Wl,--as-needed",
73        "-Wl,--gc-sections",
74        "-Wl,--icf=all",
75    ],
76    visibility: [
77        "//external/cronet:__subpackages__",
78    ],
79    target: {
80        android_arm64: {
81            cflags: [
82                "-D__ARM_NEON__=1",
83                "-O2",
84                "-mno-outline",
85            ],
86        },
87        android_x86: {
88            cflags: [
89                "-msse3",
90            ],
91        },
92        android_x86_64: {
93            cflags: [
94                "-O2",
95                "-msse3",
96            ],
97        },
98    },
99}
100
101// GN: //third_party/abseil-cpp/absl/time:time__testing
102cc_library_static {
103    name: "stable_cronet_third_party_abseil_cpp_absl_time_time__testing",
104    srcs: [
105        "civil_time.cc",
106        "clock.cc",
107        "duration.cc",
108        "format.cc",
109        "time.cc",
110    ],
111    host_supported: true,
112    host_cross_supported: false,
113    defaults: [
114        "stable_cronet_cc_defaults",
115    ],
116    cflags: [
117        "-DABSL_ALLOCATOR_NOTHROW=1",
118        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
119        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
120        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
121        "-DNDEBUG",
122        "-DNVALGRIND",
123        "-DOFFICIAL_BUILD",
124        "-DTMP_REBUILD_HACK",
125        "-D_GNU_SOURCE",
126        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
127        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
128        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
129        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
130        "-fdata-sections",
131        "-ffunction-sections",
132        "-fstack-protector",
133        "-fvisibility-inlines-hidden",
134        "-fvisibility=hidden",
135        "-g1",
136    ],
137    include_dirs: [
138        "external/cronet/stable/",
139        "external/cronet/stable/buildtools/third_party/libc++/",
140        "external/cronet/stable/third_party/abseil-cpp/",
141        "external/cronet/stable/third_party/libc++/src/include",
142        "external/cronet/stable/third_party/libc++abi/src/include",
143    ],
144    cpp_std: "c++20",
145    ldflags: [
146        "-Wl,--as-needed",
147        "-Wl,--gc-sections",
148        "-Wl,--icf=all",
149    ],
150    visibility: [
151        "//external/cronet:__subpackages__",
152    ],
153    target: {
154        android_arm: {
155            cflags: [
156                "-DANDROID",
157                "-DANDROID_NDK_VERSION_ROLL=r27_1",
158                "-DHAVE_SYS_UIO_H",
159                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
160            ],
161        },
162        android_arm64: {
163            cflags: [
164                "-DANDROID",
165                "-DANDROID_NDK_VERSION_ROLL=r27_1",
166                "-DHAVE_SYS_UIO_H",
167                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
168                "-D__ARM_NEON__=1",
169                "-O2",
170                "-mno-outline",
171            ],
172        },
173        android_riscv64: {
174            cflags: [
175                "-DANDROID",
176                "-DANDROID_NDK_VERSION_ROLL=r27_1",
177                "-DHAVE_SYS_UIO_H",
178                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
179            ],
180        },
181        android_x86: {
182            cflags: [
183                "-DANDROID",
184                "-DANDROID_NDK_VERSION_ROLL=r27_1",
185                "-DHAVE_SYS_UIO_H",
186                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
187                "-msse3",
188            ],
189        },
190        android_x86_64: {
191            cflags: [
192                "-DANDROID",
193                "-DANDROID_NDK_VERSION_ROLL=r27_1",
194                "-DHAVE_SYS_UIO_H",
195                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
196                "-O2",
197                "-msse3",
198            ],
199        },
200        host: {
201            cflags: [
202                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
203                "-DNO_UNWIND_TABLES",
204                "-DUSE_AURA=1",
205                "-DUSE_OZONE=1",
206                "-DUSE_UDEV",
207                "-D_FILE_OFFSET_BITS=64",
208                "-D_LARGEFILE64_SOURCE",
209                "-D_LARGEFILE_SOURCE",
210                "-O2",
211                "-fno-asynchronous-unwind-tables",
212                "-fno-unwind-tables",
213                "-msse3",
214            ],
215        },
216    },
217}
218