• 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_re2_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "stable_cronet_third_party_re2_license",
27    visibility: [
28        ":__subpackages__",
29    ],
30    license_text: [
31        "LICENSE",
32    ],
33    license_kinds: [
34        "SPDX-license-identifier-BSD-3-Clause",
35    ],
36}
37
38// GN: //third_party/re2:re2__testing
39cc_library_static {
40    name: "stable_cronet_third_party_re2_re2__testing",
41    srcs: [
42        "src/re2/bitmap256.cc",
43        "src/re2/bitstate.cc",
44        "src/re2/compile.cc",
45        "src/re2/dfa.cc",
46        "src/re2/filtered_re2.cc",
47        "src/re2/mimics_pcre.cc",
48        "src/re2/nfa.cc",
49        "src/re2/onepass.cc",
50        "src/re2/parse.cc",
51        "src/re2/perl_groups.cc",
52        "src/re2/prefilter.cc",
53        "src/re2/prefilter_tree.cc",
54        "src/re2/prog.cc",
55        "src/re2/re2.cc",
56        "src/re2/regexp.cc",
57        "src/re2/set.cc",
58        "src/re2/simplify.cc",
59        "src/re2/tostring.cc",
60        "src/re2/unicode_casefold.cc",
61        "src/re2/unicode_groups.cc",
62        "src/util/rune.cc",
63        "src/util/strutil.cc",
64    ],
65    shared_libs: [
66        "liblog",
67    ],
68    host_cross_supported: false,
69    generated_headers: [
70        "stable_cronet_build_chromeos_buildflags__testing",
71    ],
72    export_generated_headers: [
73        "stable_cronet_build_chromeos_buildflags__testing",
74    ],
75    defaults: [
76        "stable_cronet_cc_defaults",
77    ],
78    cflags: [
79        "-DANDROID",
80        "-DANDROID_NDK_VERSION_ROLL=r27_1",
81        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
82        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
83        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
84        "-DHAVE_SYS_UIO_H",
85        "-DNDEBUG",
86        "-DNVALGRIND",
87        "-DOFFICIAL_BUILD",
88        "-DTMP_REBUILD_HACK",
89        "-D_GNU_SOURCE",
90        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
91        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
92        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
93        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
94        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
95        "-fdata-sections",
96        "-ffunction-sections",
97        "-fstack-protector",
98        "-fvisibility-inlines-hidden",
99        "-fvisibility=hidden",
100        "-g1",
101    ],
102    include_dirs: [
103        "external/cronet/stable/",
104        "external/cronet/stable/buildtools/third_party/libc++/",
105        "external/cronet/stable/third_party/abseil-cpp/",
106        "external/cronet/stable/third_party/libc++/src/include",
107        "external/cronet/stable/third_party/libc++abi/src/include",
108        "external/cronet/stable/third_party/re2/src/",
109    ],
110    cpp_std: "c++20",
111    ldflags: [
112        "-Wl,--as-needed",
113        "-Wl,--gc-sections",
114        "-Wl,--icf=all",
115    ],
116    visibility: [
117        "//external/cronet:__subpackages__",
118    ],
119    target: {
120        android_arm64: {
121            cflags: [
122                "-D__ARM_NEON__=1",
123                "-O2",
124                "-mno-outline",
125            ],
126        },
127        android_x86: {
128            cflags: [
129                "-msse3",
130            ],
131        },
132        android_x86_64: {
133            cflags: [
134                "-O2",
135                "-msse3",
136            ],
137        },
138    },
139}
140