blob: 74df24a5848876da059dd76865d321becc581911 [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
17// GN: //gn:default_deps
18cc_defaults {
19 name: "cronet_aml_defaults",
20 cflags: [
21 "-O2",
22 "-Wno-error=return-type",
23 "-Wno-sign-compare",
24 "-Wno-sign-promo",
25 "-Wno-unused-parameter",
26 "-fvisibility=hidden",
27 ],
28}
29
30// GN: //third_party/android_ndk:cpu_features
31filegroup {
32 name: "cronet_aml_third_party_android_ndk_cpu_features",
33 srcs: [
34 "third_party/android_ndk/sources/android/cpufeatures/cpu-features.c",
35 ],
36}
37
Motomu Utsumifa7e9262022-10-26 19:43:02 +090038// GN: //third_party/libevent:libevent
39cc_library_static {
40 name: "cronet_aml_third_party_libevent_libevent",
41 srcs: [
42 "third_party/libevent/buffer.c",
43 "third_party/libevent/epoll.c",
44 "third_party/libevent/evbuffer.c",
45 "third_party/libevent/evdns.c",
46 "third_party/libevent/event.c",
47 "third_party/libevent/event_tagging.c",
48 "third_party/libevent/evrpc.c",
49 "third_party/libevent/evutil.c",
50 "third_party/libevent/http.c",
51 "third_party/libevent/log.c",
52 "third_party/libevent/poll.c",
53 "third_party/libevent/select.c",
54 "third_party/libevent/signal.c",
55 "third_party/libevent/strlcpy.c",
56 ],
57 defaults: [
58 "cronet_aml_defaults",
59 ],
60 cflags: [
61 "-DANDROID",
62 "-DANDROID_NDK_VERSION_ROLL=r23_1",
Motomu Utsumiefde2d22022-10-28 12:20:46 +090063 "-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
64 "-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
Motomu Utsumifa7e9262022-10-26 19:43:02 +090065 "-DDCHECK_ALWAYS_ON=1",
66 "-DDYNAMIC_ANNOTATIONS_ENABLED=1",
67 "-DHAVE_CONFIG_H",
68 "-DHAVE_SYS_UIO_H",
69 "-D_DEBUG",
70 "-D_GNU_SOURCE",
Motomu Utsumiefde2d22022-10-28 12:20:46 +090071 "-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
Motomu Utsumifa7e9262022-10-26 19:43:02 +090072 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
Motomu Utsumiefde2d22022-10-28 12:20:46 +090073 "-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
Motomu Utsumifa7e9262022-10-26 19:43:02 +090074 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
75 ],
76 local_include_dirs: [
77 "./",
78 "buildtools/third_party/libc++/",
79 "out/test/gen/",
80 "third_party/libevent/android/",
81 ],
82}
83
Motomu Utsumifcac4852022-10-26 19:28:31 +090084// GN: //third_party/zlib:zlib
85cc_library_static {
86 name: "cronet_aml_third_party_zlib_zlib",
87 srcs: [
88 ":cronet_aml_third_party_android_ndk_cpu_features",
89 "third_party/zlib/adler32.c",
90 "third_party/zlib/compress.c",
91 "third_party/zlib/cpu_features.c",
92 "third_party/zlib/crc32.c",
93 "third_party/zlib/deflate.c",
94 "third_party/zlib/gzclose.c",
95 "third_party/zlib/gzlib.c",
96 "third_party/zlib/gzread.c",
97 "third_party/zlib/gzwrite.c",
98 "third_party/zlib/infback.c",
99 "third_party/zlib/inffast.c",
100 "third_party/zlib/inflate.c",
101 "third_party/zlib/inftrees.c",
102 "third_party/zlib/trees.c",
103 "third_party/zlib/uncompr.c",
104 "third_party/zlib/zutil.c",
105 ],
106 defaults: [
107 "cronet_aml_defaults",
108 ],
109 cflags: [
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900110 "-DANDROID",
111 "-DANDROID_NDK_VERSION_ROLL=r23_1",
112 "-DCPU_NO_SIMD",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900113 "-DCR_CLANG_REVISION=\"llvmorg-16-init-8697-g60809cd2-1\"",
114 "-DCR_LIBCXX_REVISION=47b31179d10646029c260702650a25d24f555acc",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900115 "-DDCHECK_ALWAYS_ON=1",
116 "-DDYNAMIC_ANNOTATIONS_ENABLED=1",
117 "-DHAVE_SYS_UIO_H",
Motomu Utsumifcac4852022-10-26 19:28:31 +0900118 "-DZLIB_DEBUG",
119 "-DZLIB_IMPLEMENTATION",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900120 "-D_DEBUG",
121 "-D_GNU_SOURCE",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900122 "-D_LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED=1",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900123 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
Motomu Utsumiefde2d22022-10-28 12:20:46 +0900124 "-D_LIBCPP_ENABLE_ASSERTIONS_DEFAULT=1",
Motomu Utsumifa7e9262022-10-26 19:43:02 +0900125 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
Motomu Utsumifcac4852022-10-26 19:28:31 +0900126 ],
127 local_include_dirs: [
128 "./",
129 "buildtools/third_party/libc++/",
130 "out/test/gen/",
131 "third_party/android_ndk/sources/android/cpufeatures/",
132 "third_party/zlib/",
133 ],
134}
135