• 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_brotli_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "stable_cronet_third_party_brotli_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: //third_party/brotli:common
39cc_library_static {
40    name: "stable_cronet_third_party_brotli_common",
41    srcs: [
42        "common/constants.c",
43        "common/context.c",
44        "common/dictionary.c",
45        "common/platform.c",
46        "common/shared_dictionary.c",
47        "common/transform.c",
48    ],
49    host_cross_supported: false,
50    defaults: [
51        "stable_cronet_cc_defaults",
52    ],
53    cflags: [
54        "-DANDROID",
55        "-DANDROID_NDK_VERSION_ROLL=r27_1",
56        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
57        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
58        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
59        "-DHAVE_SYS_UIO_H",
60        "-DNDEBUG",
61        "-DNVALGRIND",
62        "-DOFFICIAL_BUILD",
63        "-DTMP_REBUILD_HACK",
64        "-D_GNU_SOURCE",
65        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
66        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
67        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
68        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
69        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
70        "-D__STDC_CONSTANT_MACROS",
71        "-D__STDC_FORMAT_MACROS",
72        "-fdata-sections",
73        "-ffunction-sections",
74        "-fstack-protector",
75        "-fvisibility-inlines-hidden",
76        "-fvisibility=hidden",
77        "-g1",
78    ],
79    include_dirs: [
80        "external/cronet/stable/",
81        "external/cronet/stable/buildtools/third_party/libc++/",
82        "external/cronet/stable/third_party/brotli/include/",
83        "external/cronet/stable/third_party/libc++/src/include",
84        "external/cronet/stable/third_party/libc++abi/src/include",
85    ],
86    cpp_std: "c++20",
87    ldflags: [
88        "-Wl,--as-needed",
89        "-Wl,--gc-sections",
90        "-Wl,--icf=all",
91    ],
92    visibility: [
93        "//external/cronet:__subpackages__",
94    ],
95    target: {
96        android_arm: {
97            cflags: [
98                "-D_FORTIFY_SOURCE=2",
99            ],
100        },
101        android_arm64: {
102            cflags: [
103                "-D_FORTIFY_SOURCE=2",
104                "-D__ARM_NEON__=1",
105                "-O2",
106                "-mno-outline",
107            ],
108        },
109        android_x86: {
110            cflags: [
111                "-D_FORTIFY_SOURCE=2",
112                "-msse3",
113            ],
114        },
115        android_x86_64: {
116            cflags: [
117                "-D_FORTIFY_SOURCE=2",
118                "-O2",
119                "-msse3",
120            ],
121        },
122    },
123}
124
125// GN: //third_party/brotli:common__testing
126cc_library_static {
127    name: "stable_cronet_third_party_brotli_common__testing",
128    srcs: [
129        "common/constants.c",
130        "common/context.c",
131        "common/dictionary.c",
132        "common/platform.c",
133        "common/shared_dictionary.c",
134        "common/transform.c",
135    ],
136    host_cross_supported: false,
137    defaults: [
138        "stable_cronet_cc_defaults",
139    ],
140    cflags: [
141        "-DANDROID",
142        "-DANDROID_NDK_VERSION_ROLL=r27_1",
143        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
144        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
145        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
146        "-DHAVE_SYS_UIO_H",
147        "-DNDEBUG",
148        "-DNVALGRIND",
149        "-DOFFICIAL_BUILD",
150        "-DTMP_REBUILD_HACK",
151        "-D_GNU_SOURCE",
152        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
153        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
154        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
155        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
156        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
157        "-D__STDC_CONSTANT_MACROS",
158        "-D__STDC_FORMAT_MACROS",
159        "-fdata-sections",
160        "-ffunction-sections",
161        "-fstack-protector",
162        "-fvisibility-inlines-hidden",
163        "-fvisibility=hidden",
164        "-g1",
165    ],
166    include_dirs: [
167        "external/cronet/stable/",
168        "external/cronet/stable/buildtools/third_party/libc++/",
169        "external/cronet/stable/third_party/brotli/include/",
170        "external/cronet/stable/third_party/libc++/src/include",
171        "external/cronet/stable/third_party/libc++abi/src/include",
172    ],
173    cpp_std: "c++20",
174    ldflags: [
175        "-Wl,--as-needed",
176        "-Wl,--gc-sections",
177        "-Wl,--icf=all",
178    ],
179    visibility: [
180        "//external/cronet:__subpackages__",
181    ],
182    target: {
183        android_arm: {
184            cflags: [
185                "-D_FORTIFY_SOURCE=2",
186            ],
187        },
188        android_arm64: {
189            cflags: [
190                "-D_FORTIFY_SOURCE=2",
191                "-D__ARM_NEON__=1",
192                "-O2",
193                "-mno-outline",
194            ],
195        },
196        android_x86: {
197            cflags: [
198                "-D_FORTIFY_SOURCE=2",
199                "-msse3",
200            ],
201        },
202        android_x86_64: {
203            cflags: [
204                "-D_FORTIFY_SOURCE=2",
205                "-O2",
206                "-msse3",
207            ],
208        },
209    },
210}
211
212// GN: //third_party/brotli:dec
213cc_library_static {
214    name: "stable_cronet_third_party_brotli_dec",
215    srcs: [
216        "dec/bit_reader.c",
217        "dec/decode.c",
218        "dec/huffman.c",
219        "dec/state.c",
220    ],
221    host_cross_supported: false,
222    defaults: [
223        "stable_cronet_cc_defaults",
224    ],
225    cflags: [
226        "-DANDROID",
227        "-DANDROID_NDK_VERSION_ROLL=r27_1",
228        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
229        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
230        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
231        "-DHAVE_SYS_UIO_H",
232        "-DNDEBUG",
233        "-DNVALGRIND",
234        "-DOFFICIAL_BUILD",
235        "-DTMP_REBUILD_HACK",
236        "-D_GNU_SOURCE",
237        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
238        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
239        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
240        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
241        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
242        "-O2",
243        "-fdata-sections",
244        "-ffunction-sections",
245        "-fstack-protector",
246        "-fvisibility-inlines-hidden",
247        "-fvisibility=hidden",
248        "-g1",
249    ],
250    include_dirs: [
251        "external/cronet/stable/",
252        "external/cronet/stable/buildtools/third_party/libc++/",
253        "external/cronet/stable/third_party/brotli/include/",
254        "external/cronet/stable/third_party/libc++/src/include",
255        "external/cronet/stable/third_party/libc++abi/src/include",
256    ],
257    cpp_std: "c++20",
258    ldflags: [
259        "-Wl,--as-needed",
260        "-Wl,--gc-sections",
261        "-Wl,--icf=all",
262    ],
263    visibility: [
264        "//external/cronet:__subpackages__",
265    ],
266    target: {
267        android_arm64: {
268            cflags: [
269                "-D__ARM_NEON__=1",
270                "-mno-outline",
271            ],
272        },
273        android_x86: {
274            cflags: [
275                "-msse3",
276            ],
277        },
278        android_x86_64: {
279            cflags: [
280                "-msse3",
281            ],
282        },
283    },
284}
285
286// GN: //third_party/brotli:dec__testing
287cc_library_static {
288    name: "stable_cronet_third_party_brotli_dec__testing",
289    srcs: [
290        "dec/bit_reader.c",
291        "dec/decode.c",
292        "dec/huffman.c",
293        "dec/state.c",
294    ],
295    host_cross_supported: false,
296    defaults: [
297        "stable_cronet_cc_defaults",
298    ],
299    cflags: [
300        "-DANDROID",
301        "-DANDROID_NDK_VERSION_ROLL=r27_1",
302        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
303        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
304        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
305        "-DHAVE_SYS_UIO_H",
306        "-DNDEBUG",
307        "-DNVALGRIND",
308        "-DOFFICIAL_BUILD",
309        "-DTMP_REBUILD_HACK",
310        "-D_GNU_SOURCE",
311        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
312        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
313        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
314        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
315        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
316        "-O2",
317        "-fdata-sections",
318        "-ffunction-sections",
319        "-fstack-protector",
320        "-fvisibility-inlines-hidden",
321        "-fvisibility=hidden",
322        "-g1",
323    ],
324    include_dirs: [
325        "external/cronet/stable/",
326        "external/cronet/stable/buildtools/third_party/libc++/",
327        "external/cronet/stable/third_party/brotli/include/",
328        "external/cronet/stable/third_party/libc++/src/include",
329        "external/cronet/stable/third_party/libc++abi/src/include",
330    ],
331    cpp_std: "c++20",
332    ldflags: [
333        "-Wl,--as-needed",
334        "-Wl,--gc-sections",
335        "-Wl,--icf=all",
336    ],
337    visibility: [
338        "//external/cronet:__subpackages__",
339    ],
340    target: {
341        android_arm64: {
342            cflags: [
343                "-D__ARM_NEON__=1",
344                "-mno-outline",
345            ],
346        },
347        android_x86: {
348            cflags: [
349                "-msse3",
350            ],
351        },
352        android_x86_64: {
353            cflags: [
354                "-msse3",
355            ],
356        },
357    },
358}
359