blob: 938d492dbde8f0bb986cb2dcf1a69d4afd779c12 [file] [log] [blame]
Motomu Utsumifcac4852022-10-26 19:28:31 +09001// 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. Do not edit.
16
Motomu Utsumibf569d42022-10-28 16:47:34 +090017// GN: //base:base_static
18cc_library_static {
19 name: "cronet_aml_base_base_static",
20 srcs: [
21 "base/base_switches.cc",
22 ],
23 generated_headers: [
24 "cronet_aml_build_chromeos_buildflags",
25 ],
26 export_generated_headers: [
27 "cronet_aml_build_chromeos_buildflags",
28 ],
29 defaults: [
30 "cronet_aml_defaults",
31 ],
32 cflags: [
33 "-DANDROID",
34 "-DANDROID_NDK_VERSION_ROLL=r23_1",
35 "-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
36 "-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
37 "-DDCHECK_ALWAYS_ON=1",
38 "-DDYNAMIC_ANNOTATIONS_ENABLED=1",
39 "-DHAVE_SYS_UIO_H",
40 "-D_DEBUG",
41 "-D_GNU_SOURCE",
42 "-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
43 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
44 "-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
45 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
46 "-D__STDC_CONSTANT_MACROS",
47 "-D__STDC_FORMAT_MACROS",
48 ],
49 local_include_dirs: [
50 "./",
51 "buildtools/third_party/libc++/",
52 "out/test/gen/",
53 ],
54}
55
Motomu Utsumie0d20212022-10-28 17:06:46 +090056// GN: //base:build_date
57genrule {
58 name: "cronet_aml_base_build_date",
59 cmd: "$(location build/write_build_date_header.py) $(out) 1664686800",
60 out: [
61 "base/generated_build_date.h",
62 ],
63 tool_files: [
64 "build/write_build_date_header.py",
65 ],
66}
67
Motomu Utsumibf569d42022-10-28 16:47:34 +090068// GN: //build:buildflag_header_h
69filegroup {
70 name: "cronet_aml_build_buildflag_header_h",
71}
72
73// GN: //build:chromeos_buildflags
74genrule {
75 name: "cronet_aml_build_chromeos_buildflags",
76 cmd: "echo '--flags IS_CHROMEOS_DEVICE=false IS_CHROMEOS_LACROS=false IS_CHROMEOS_ASH=false IS_CHROMEOS_WITH_HW_DETAILS=false IS_REVEN=false' | $(location build/write_buildflag_header.py) --output $(out) --rulename //build:chromeos_buildflags --gen-dir . --definitions /dev/stdin",
77 out: [
78 "build/chromeos_buildflags.h",
79 ],
80 tool_files: [
81 "build/write_buildflag_header.py",
82 ],
83}
84
Motomu Utsumifcac4852022-10-26 19:28:31 +090085// GN: //gn:default_deps
86cc_defaults {
87 name: "cronet_aml_defaults",
88 cflags: [
89 "-O2",
90 "-Wno-error=return-type",
91 "-Wno-sign-compare",
92 "-Wno-sign-promo",
93 "-Wno-unused-parameter",
94 "-fvisibility=hidden",
95 ],
96}
97
98// GN: //third_party/android_ndk:cpu_features
99filegroup {
100 name: "cronet_aml_third_party_android_ndk_cpu_features",
101 srcs: [
102 "third_party/android_ndk/sources/android/cpufeatures/cpu-features.c",
103 ],
104}
105
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900106// GN: //third_party/libevent:libevent
107cc_library_static {
108 name: "cronet_aml_third_party_libevent_libevent",
109 srcs: [
110 "third_party/libevent/buffer.c",
111 "third_party/libevent/epoll.c",
112 "third_party/libevent/evbuffer.c",
113 "third_party/libevent/evdns.c",
114 "third_party/libevent/event.c",
115 "third_party/libevent/event_tagging.c",
116 "third_party/libevent/evrpc.c",
117 "third_party/libevent/evutil.c",
118 "third_party/libevent/http.c",
119 "third_party/libevent/log.c",
120 "third_party/libevent/poll.c",
121 "third_party/libevent/select.c",
122 "third_party/libevent/signal.c",
123 "third_party/libevent/strlcpy.c",
124 ],
125 defaults: [
126 "cronet_aml_defaults",
127 ],
128 cflags: [
129 "-DANDROID",
130 "-DANDROID_NDK_VERSION_ROLL=r23_1",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900131 "-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
132 "-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900133 "-DDCHECK_ALWAYS_ON=1",
134 "-DDYNAMIC_ANNOTATIONS_ENABLED=1",
135 "-DHAVE_CONFIG_H",
136 "-DHAVE_SYS_UIO_H",
137 "-D_DEBUG",
138 "-D_GNU_SOURCE",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900139 "-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900140 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900141 "-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900142 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
143 ],
144 local_include_dirs: [
145 "./",
146 "buildtools/third_party/libc++/",
147 "out/test/gen/",
148 "third_party/libevent/android/",
149 ],
150}
151
Motomu Utsumifcac4852022-10-26 19:28:31 +0900152// GN: //third_party/zlib:zlib
153cc_library_static {
154 name: "cronet_aml_third_party_zlib_zlib",
155 srcs: [
156 ":cronet_aml_third_party_android_ndk_cpu_features",
157 "third_party/zlib/adler32.c",
158 "third_party/zlib/compress.c",
159 "third_party/zlib/cpu_features.c",
160 "third_party/zlib/crc32.c",
161 "third_party/zlib/deflate.c",
162 "third_party/zlib/gzclose.c",
163 "third_party/zlib/gzlib.c",
164 "third_party/zlib/gzread.c",
165 "third_party/zlib/gzwrite.c",
166 "third_party/zlib/infback.c",
167 "third_party/zlib/inffast.c",
168 "third_party/zlib/inflate.c",
169 "third_party/zlib/inftrees.c",
170 "third_party/zlib/trees.c",
171 "third_party/zlib/uncompr.c",
172 "third_party/zlib/zutil.c",
173 ],
174 defaults: [
175 "cronet_aml_defaults",
176 ],
177 cflags: [
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900178 "-DANDROID",
179 "-DANDROID_NDK_VERSION_ROLL=r23_1",
180 "-DCPU_NO_SIMD",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900181 "-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
182 "-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900183 "-DDCHECK_ALWAYS_ON=1",
184 "-DDYNAMIC_ANNOTATIONS_ENABLED=1",
185 "-DHAVE_SYS_UIO_H",
Motomu Utsumifcac4852022-10-26 19:28:31 +0900186 "-DZLIB_DEBUG",
187 "-DZLIB_IMPLEMENTATION",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900188 "-D_DEBUG",
189 "-D_GNU_SOURCE",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900190 "-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900191 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900192 "-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900193 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
Motomu Utsumifcac4852022-10-26 19:28:31 +0900194 ],
195 local_include_dirs: [
196 "./",
197 "buildtools/third_party/libc++/",
198 "out/test/gen/",
199 "third_party/android_ndk/sources/android/cpufeatures/",
200 "third_party/zlib/",
201 ],
202}
203