blob: 238d24f11649a94c5ba7b30da1a84ab26fd476bb [file] [log] [blame]
Sam Delmerico24c56032022-03-28 19:53:03 +00001// Copyright 2022 Google Inc. All rights reserved.
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
15package allowlists
16
17// Configuration to decide if modules in a directory should default to true/false for bp2build_available
18type Bp2BuildConfig map[string]BazelConversionConfigEntry
19type BazelConversionConfigEntry int
20
21const (
22 // iota + 1 ensures that the int value is not 0 when used in the Bp2buildAllowlist map,
23 // which can also mean that the key doesn't exist in a lookup.
24
25 // all modules in this package and subpackages default to bp2build_available: true.
26 // allows modules to opt-out.
27 Bp2BuildDefaultTrueRecursively BazelConversionConfigEntry = iota + 1
28
29 // all modules in this package (not recursively) default to bp2build_available: true.
30 // allows modules to opt-out.
31 Bp2BuildDefaultTrue
32
33 // all modules in this package (not recursively) default to bp2build_available: false.
34 // allows modules to opt-in.
35 Bp2BuildDefaultFalse
MarkDacek756b2962022-10-13 17:50:17 +000036
37 // all modules in this package and subpackages default to bp2build_available: false.
38 // allows modules to opt-in.
39 Bp2BuildDefaultFalseRecursively
Jeongik Chae114e602023-03-19 00:12:39 +090040
41 DEFAULT_NINJA_WEIGHT = 1000
Sam Delmerico24c56032022-03-28 19:53:03 +000042)
43
44var (
45 Bp2buildDefaultConfig = Bp2BuildConfig{
Sasha Smundak8bea2672022-08-04 13:31:14 -070046 "art": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040047 "art/libartbase": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +000048 "art/libartpalette": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040049 "art/libdexfile": Bp2BuildDefaultTrueRecursively,
50 "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
51 "art/runtime": Bp2BuildDefaultTrueRecursively,
52 "art/tools": Bp2BuildDefaultTrue,
53 "bionic": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +000054 "bootable/recovery/applypatch": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +000055 "bootable/recovery/minadbd": Bp2BuildDefaultTrue,
56 "bootable/recovery/minui": Bp2BuildDefaultTrue,
57 "bootable/recovery/recovery_utils": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040058 "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
59
Cole Faust324a92e2022-08-23 15:29:05 -070060 "build/bazel": Bp2BuildDefaultTrueRecursively,
61 "build/make/target/product/security": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -070062 "build/make/tools/releasetools": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070063 "build/make/tools/signapk": Bp2BuildDefaultTrue,
64 "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
65 "build/soong": Bp2BuildDefaultTrue,
66 "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
67 "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
68 "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -070069 "build/soong/licenses": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070070 "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
71 "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040072
73 "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
Jingwen Chen1ec77852022-11-07 14:36:12 +000074
75 "dalvik/tools/dexdeps": Bp2BuildDefaultTrueRecursively,
76
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040077 "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
78 "development/apps/Fallback": Bp2BuildDefaultTrue,
79 "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
80 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
81 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
82 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
83 "development/samples/Compass": Bp2BuildDefaultTrue,
84 "development/samples/ContactManager": Bp2BuildDefaultTrue,
85 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
86 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
87 "development/samples/Home": Bp2BuildDefaultTrue,
88 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
89 "development/samples/JetBoy": Bp2BuildDefaultTrue,
90 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
91 "development/samples/LceDemo": Bp2BuildDefaultTrue,
92 "development/samples/LunarLander": Bp2BuildDefaultTrue,
93 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
94 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
95 "development/samples/NotePad": Bp2BuildDefaultTrue,
96 "development/samples/Obb": Bp2BuildDefaultTrue,
97 "development/samples/RSSReader": Bp2BuildDefaultTrue,
98 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
99 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
100 "development/samples/SipDemo": Bp2BuildDefaultTrue,
101 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
102 "development/samples/Snake": Bp2BuildDefaultTrue,
103 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
104 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
105 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
106 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
107 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
108 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
109 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
110 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
111 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
112 "development/sdk": Bp2BuildDefaultTrueRecursively,
113
114 "external/aac": Bp2BuildDefaultTrueRecursively,
115 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700116 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000117 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400118 "external/auto/common": Bp2BuildDefaultTrueRecursively,
119 "external/auto/service": Bp2BuildDefaultTrueRecursively,
120 "external/boringssl": Bp2BuildDefaultTrueRecursively,
121 "external/bouncycastle": Bp2BuildDefaultTrue,
122 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700123 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
124 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400125 "external/conscrypt": Bp2BuildDefaultTrue,
126 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
127 "external/eigen": Bp2BuildDefaultTrueRecursively,
128 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
129 "external/error_prone": Bp2BuildDefaultTrueRecursively,
Usta Shresthad66f2ce2023-03-15 15:01:59 -0400130 "external/escapevelocity": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400131 "external/expat": Bp2BuildDefaultTrueRecursively,
132 "external/f2fs-tools": Bp2BuildDefaultTrue,
133 "external/flac": Bp2BuildDefaultTrueRecursively,
134 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
135 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
136 "external/googletest": Bp2BuildDefaultTrueRecursively,
137 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
138 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
139 "external/icu": Bp2BuildDefaultTrueRecursively,
140 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
141 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400142 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400143 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400144 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400145 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000146 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400147 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
148 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500149 "external/jsr305": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500150 "external/jsr330": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400151 "external/junit": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500152 "external/kotlinc": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400153 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400154 "external/libavc": Bp2BuildDefaultTrueRecursively,
155 "external/libcap": Bp2BuildDefaultTrueRecursively,
156 "external/libcxx": Bp2BuildDefaultTrueRecursively,
157 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700158 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000159 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400160 "external/libevent": Bp2BuildDefaultTrueRecursively,
161 "external/libgav1": Bp2BuildDefaultTrueRecursively,
162 "external/libhevc": Bp2BuildDefaultTrueRecursively,
163 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
164 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
165 "external/libpng": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700166 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700167 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400168 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700169 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400170 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
171 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
172 "external/minijail": Bp2BuildDefaultTrueRecursively,
Colin Cross20c89f12022-12-05 16:47:44 -0800173 "external/musl": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000174 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000175 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Spandan Das6960ac12022-11-22 04:45:05 +0000176 "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400177 "external/pcre": Bp2BuildDefaultTrueRecursively,
178 "external/protobuf": Bp2BuildDefaultTrueRecursively,
179 "external/python/six": Bp2BuildDefaultTrueRecursively,
180 "external/rappor": Bp2BuildDefaultTrueRecursively,
181 "external/scudo": Bp2BuildDefaultTrueRecursively,
182 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
183 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700184 "external/speex": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400185 "external/toybox": Bp2BuildDefaultTrueRecursively,
186 "external/zlib": Bp2BuildDefaultTrueRecursively,
187 "external/zopfli": Bp2BuildDefaultTrueRecursively,
188 "external/zstd": Bp2BuildDefaultTrueRecursively,
189
Jingwen Chen1ec77852022-11-07 14:36:12 +0000190 "frameworks/av": Bp2BuildDefaultTrue,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400191 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000192 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000193 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Chris Parsons52b842a2022-12-19 11:45:23 -0500194 "frameworks/av/media/libshmem": Bp2BuildDefaultTrueRecursively,
195 "frameworks/av/media/audioaidlconversion": Bp2BuildDefaultTrueRecursively,
Jingwen Chen8ebc6202022-09-14 11:48:21 +0000196 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000197 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400198 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400199 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Sam Delmerico97bd1272022-08-25 14:45:31 -0400200 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400201 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
202 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400203 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
Alix9d562792023-03-02 17:12:30 +0000204 "frameworks/base/tools/codegen": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000205 "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
Vinh Tran9b09bc52023-02-21 09:56:25 -0500206 "frameworks/hardware/interfaces/stats/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400207 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
208 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400209 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400210 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
211 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400212 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400213 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
214 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
215 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
216 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
217 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500218 "frameworks/native/libs/permission": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000219 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000220 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400221
Liz Kammere76510b2023-03-20 17:30:51 -0400222 "hardware/interfaces": Bp2BuildDefaultTrue,
223 "hardware/interfaces/audio/aidl": Bp2BuildDefaultTrue,
224 "hardware/interfaces/audio/aidl/common": Bp2BuildDefaultTrue,
225 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
226 "hardware/interfaces/common/fmq/aidl": Bp2BuildDefaultTrue,
227 "hardware/interfaces/common/support": Bp2BuildDefaultTrue,
228 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
229 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
230 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
231 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
232 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
233 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
234 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
235 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
236 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
237 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
238 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
239 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
240 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
241 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
242 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
243 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
244 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
245 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
246 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
247 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
248 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
249 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
250 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
251 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
252 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
253 "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
254 "hardware/interfaces/media/bufferpool": Bp2BuildDefaultTrueRecursively,
255 "hardware/interfaces/media/bufferpool/aidl/default/tests": Bp2BuildDefaultFalseRecursively,
256 "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
257 "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
258 "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
259 "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
260 "hardware/interfaces/neuralnetworks": Bp2BuildDefaultTrueRecursively,
261 "hardware/interfaces/neuralnetworks/aidl/vts": Bp2BuildDefaultFalseRecursively,
262 "hardware/interfaces/neuralnetworks/1.0/vts": Bp2BuildDefaultFalseRecursively,
263 "hardware/interfaces/neuralnetworks/1.1/vts": Bp2BuildDefaultFalseRecursively,
264 "hardware/interfaces/neuralnetworks/1.2/vts": Bp2BuildDefaultFalseRecursively,
265 "hardware/interfaces/neuralnetworks/1.3/vts": Bp2BuildDefaultFalseRecursively,
266 "hardware/interfaces/neuralnetworks/1.4/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400267
268 "libnativehelper": Bp2BuildDefaultTrueRecursively,
269
Alix79f853d2023-02-10 15:57:01 +0000270 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
271 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
272 "packages/apps/Protips": Bp2BuildDefaultTrue,
273 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
274 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
275 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
276 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
277 "packages/modules/adb": Bp2BuildDefaultTrue,
278 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
279 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
280 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
281 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
282 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
283 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
284 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
285 "packages/modules/NetworkStack/common/captiveportal": Bp2BuildDefaultTrue,
Yu Liue1ab66d2023-03-24 10:53:02 -0700286 "packages/modules/NeuralNetworks/apex": Bp2BuildDefaultTrue,
Alix79f853d2023-02-10 15:57:01 +0000287 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
288 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
289 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400290
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000291 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
292
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400293 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500294 "prebuilts/gradle-plugin": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400295 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
Alix79f853d2023-02-10 15:57:01 +0000296 "prebuilts/sdk/current/androidx": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400297 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
298 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700299 "prebuilts/tools": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400300 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
301
Alixb4e09a02022-09-27 15:36:01 +0000302 "sdk/dumpeventlog": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000303 "sdk/eventanalyzer": Bp2BuildDefaultTrue,
Alixb4e09a02022-09-27 15:36:01 +0000304
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000305 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
306 "system/apex/apexer": Bp2BuildDefaultTrue,
307 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
308 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
309 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
310 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
311 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000312 "system/core/healthd": Bp2BuildDefaultTrue,
313 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000314 "system/core/libasyncio": Bp2BuildDefaultTrue,
315 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
316 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
317 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
318 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
319 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
320 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000321 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000322 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000323 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000324 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
325 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700326 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000327 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
328 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700329 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500330 "system/hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400331 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000332 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
333 "system/libbase": Bp2BuildDefaultTrueRecursively,
334 "system/libfmq": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400335 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
336 "system/libhidl/transport": Bp2BuildDefaultTrue,
337 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700338 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
339 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
340 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
341 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400342 "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
343 "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
344 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
345 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
346 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000347 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
348 "system/libprocinfo": Bp2BuildDefaultTrue,
349 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000350 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700351 "system/media": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000352 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700353 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000354 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
355 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
356 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000357 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000358 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
359 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Jingwen Chend28c4262023-03-28 10:35:45 +0000360 "system/timezone/testing": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400361 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700362 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400363 "system/tools/sysprop": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000364 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400365
Romain Jobredeaux47773342023-01-11 16:27:34 -0500366 "tools/apksig": Bp2BuildDefaultTrue,
367 "tools/metalava": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400368 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
369 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000370 }
371
372 Bp2buildKeepExistingBuildFile = map[string]bool{
373 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
374 ".":/*recursive = */ false,
375
Cole Faust324a92e2022-08-23 15:29:05 -0700376 "build/bazel":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000377 "build/make/core":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000378 "build/bazel_common_rules":/* recursive = */ true,
379 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
380 "build/make/tools":/* recursive = */ false,
381 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000382 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000383
384 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
385 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
386 "external/bazelbuild-rules_android":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700387 "external/bazelbuild-rules_license":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400388 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000389 "external/bazel-skylib":/* recursive = */ true,
390 "external/guava":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700391 "external/protobuf":/* recursive = */ false,
Cole Faustde12be32022-11-19 15:14:48 -0800392 "external/python/absl-py":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000393
Trevor Radcliffe391a25d2023-03-22 20:22:27 +0000394 "external/compiler-rt/lib/cfi":/* recursive = */ false,
395
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000396 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
397 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
398
Sam Delmerico24c56032022-03-28 19:53:03 +0000399 "frameworks/ex/common":/* recursive = */ true,
400
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500401 // Building manually due to b/179889880: resource files cross package boundary
Sam Delmerico24c56032022-03-28 19:53:03 +0000402 "packages/apps/Music":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000403
Yu Liu56ccb1a2022-11-12 10:47:07 -0800404 "prebuilts/abi-dumps/platform":/* recursive = */ true,
405 "prebuilts/abi-dumps/ndk":/* recursive = */ true,
Romain Jobredeaux29197972022-05-30 22:02:31 -0400406 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000407 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700408 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Yu Liu56ccb1a2022-11-12 10:47:07 -0800409 "prebuilts/clang-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000410 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000411 "prebuilts/build-tools":/* recursive = */ true,
Romain Jobredeauxd4e1a152023-03-17 11:02:01 -0400412 "prebuilts/jdk/jdk17":/* recursive = */ true,
Cole Faust7071a052022-07-29 15:58:33 -0700413 "prebuilts/misc":/* recursive = */ false, // not recursive because we need bp2build converted build files in prebuilts/misc/common/asm
Sam Delmerico24c56032022-03-28 19:53:03 +0000414 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000415 "prebuilts/sdk/tools":/* recursive = */ false,
416 "prebuilts/r8":/* recursive = */ false,
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000417 "prebuilts/runtime":/* recursive = */ false,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000418
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000419 // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
420 "tools/asuite/atest":/* recursive = */ false,
421 "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
Yu Liu828c4062023-01-23 20:56:46 +0000422
423 // TODO(b/266459895): remove this and the placeholder BUILD file after re-enabling libunwindstack
424 "external/rust/crates/rustc-demangle-capi":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000425 }
426
427 Bp2buildModuleAlwaysConvertList = []string{
Liz Kammer09d831e2022-09-16 09:02:26 -0400428 "libidmap2_policies",
429 "libSurfaceFlingerProp",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400430 // cc mainline modules
Liz Kammerbe1315e2022-05-10 09:15:31 -0400431 "code_coverage.policy",
432 "code_coverage.policy.other",
433 "codec2_soft_exports",
Vinh Tran99fd6502022-09-09 18:36:24 -0400434 "codecs_g711dec",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400435 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400436 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400437 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400438 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400439 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400440 "com.android.media.swcodec.certificate",
441 "com.android.media.swcodec.key",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400442 "flatbuffer_headers",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400443 "framework-connectivity-protos",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400444 "gemmlowp_headers",
445 "gl_headers",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400446 "ipconnectivity-proto-src",
Liz Kammer63367e12022-06-13 19:35:12 +0000447 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400448 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400449 "libaudioclient_aidl_conversion_util",
Vinh Tran9f6796a2022-08-16 13:10:31 -0400450 "libbinder",
451 "libbinder_device_interface_sources",
Vinh Tran444154d2022-08-16 13:10:31 -0400452 "libbinder_aidl",
Liz Kammer63367e12022-06-13 19:35:12 +0000453 "libbinder_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400454 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400455 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400456 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000457 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400458 "libcodec2_headers",
459 "libcodec2_internal",
460 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400461 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400462 "libgrallocusage",
463 "libgralloctypes",
464 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400465 "libneuralnetworks",
Vinh Tran99fd6502022-09-09 18:36:24 -0400466 "libgraphicsenv",
Liz Kammer63367e12022-06-13 19:35:12 +0000467 "libhardware",
Liz Kammer5068eae2022-05-11 17:24:29 -0400468 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400469 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400470 "libnativewindow_headers",
471 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400472 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400473 "libopus",
474 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000475 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700476 "libandroidio",
477 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400478 "libserviceutils",
Vinh Tran99fd6502022-09-09 18:36:24 -0400479 "libstagefright_amrnbenc",
480 "libstagefright_amrnbdec",
481 "libstagefright_amrwbdec",
482 "libstagefright_amrwbenc",
483 "libstagefright_amrnb_common",
Liz Kammer5068eae2022-05-11 17:24:29 -0400484 "libstagefright_enc_common",
Vinh Tran99fd6502022-09-09 18:36:24 -0400485 "libstagefright_flacdec",
486 "libstagefright_foundation",
Liz Kammer5068eae2022-05-11 17:24:29 -0400487 "libstagefright_foundation_headers",
488 "libstagefright_headers",
Vinh Tran99fd6502022-09-09 18:36:24 -0400489 "libstagefright_m4vh263dec",
490 "libstagefright_m4vh263enc",
491 "libstagefright_mp3dec",
492 "libstagefright_mp3dec_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000493 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400494 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400495 "libtextclassifier_hash_headers",
496 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000497 "libtflite_kernel_utils",
498 "libtinyxml2",
Vinh Tran99fd6502022-09-09 18:36:24 -0400499 "libui",
Liz Kammer5068eae2022-05-11 17:24:29 -0400500 "libui-types",
Liz Kammer63367e12022-06-13 19:35:12 +0000501 "libui_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400502 "libvorbisidec",
503 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000504 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400505 "mediaswcodec.policy",
506 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400507 "neuralnetworks_types",
Vinh Tran99fd6502022-09-09 18:36:24 -0400508 "libneuralnetworks_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400509 // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
510 "packagemanager_aidl_interface",
Liz Kammer63367e12022-06-13 19:35:12 +0000511 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400512 "philox_random_headers",
513 "server_configurable_flags",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400514 "service-permission-streaming-proto-sources",
Vinh Tranf19b6582022-09-21 17:01:49 -0400515 "statslog_neuralnetworks.cpp",
516 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400517 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400518
Vinh Tran99fd6502022-09-09 18:36:24 -0400519 "libstagefright_bufferpool@2.0",
520 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400521 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400522
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000523 // prebuilts
524 "prebuilt_stats-log-api-gen",
525
Jingwen Chen9009dc22022-08-04 15:26:46 +0000526 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000527 "fastboot",
528 "libfastboot",
529 "liblp",
530 "libstorage_literals_headers",
531
Sam Delmerico24c56032022-03-28 19:53:03 +0000532 //external/avb
533 "avbtool",
534 "libavb",
535 "avb_headers",
536
Alix5918d642022-06-27 20:57:44 +0000537 //external/libxml2
538 "xmllint",
539 "libxml2",
540
Sam Delmerico24c56032022-03-28 19:53:03 +0000541 //external/fec
542 "libfec_rs",
543
544 //system/core/libsparse
545 "libsparse",
546
547 //system/extras/ext4_utils
548 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700549 "mke2fs_conf",
Sam Delmerico24c56032022-03-28 19:53:03 +0000550
551 //system/extras/libfec
552 "libfec",
553
554 //system/extras/squashfs_utils
555 "libsquashfs_utils",
556
557 //system/extras/verity/fec
558 "fec",
Wei Li7d8f6182022-10-11 14:38:16 -0700559 "boot_signer",
Sam Delmerico24c56032022-03-28 19:53:03 +0000560
561 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
562 // genrule dependencies for java_imports
563 "car-ui-androidx-annotation-nodeps",
564 "car-ui-androidx-collection-nodeps",
565 "car-ui-androidx-core-common-nodeps",
566 "car-ui-androidx-lifecycle-common-nodeps",
567 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700568
569 //system/libhidl
570 // needed by cc_hidl_library
571 "libhidlbase",
Vinh Tran444154d2022-08-16 13:10:31 -0400572
573 //frameworks/native
574 "framework_native_aidl_binder",
575 "framework_native_aidl_gui",
576
577 //frameworks/native/libs/input
578 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400579
580 // needed for aidl_interface's ndk backend
581 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000582
583 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000584
585 // needed by liblogd
586 "ILogcatManagerService_aidl",
587 "libincremental_aidl-cpp",
588 "incremental_aidl",
Jingwen Chen2247aca2022-09-09 10:47:43 +0000589
590 //frameworks/native/cmds/cmd
591 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000592
593 //system/core/fs_mgr/libdm
594 "libdm",
595
596 //system/core/fs_mgr/libfiemap
597 "libfiemap_headers",
598 "libfiemap_passthrough_srcs",
599 "libfiemap_srcs",
600
601 //system/gsid
602 "libgsi",
603 "libgsi_headers",
604
605 //system/core/libkeyutils
606 "libkeyutils",
607
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000608 //bootable/recovery/otautil
609 "libotautil",
610
611 //system/vold
612 "libvold_headers",
613
614 //system/extras/libfscrypt
615 "libfscrypt",
616
617 //system/core/fs_mgr
618 "libfstab",
619
620 //bootable/recovery/fuse_sideload
621 "libfusesideload",
622
623 //system/core/fs_mgr/libfs_avb
624 "libfs_avb",
625
626 //system/core/fs_mgr
627 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700628
629 "libcodec2_hidl@1.0",
630 "libcodec2_hidl@1.1",
631 "libcodec2_hidl@1.2",
632 "libcodec2_hidl_plugin_stub",
633 "libcodec2_hidl_plugin",
634 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700635 "libGLESv2",
636 "libEGL",
637 "libcodec2_vndk",
638 "libnativeloader_lazy",
639 "libnativeloader",
640 "libEGL_getProcAddress",
641 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400642
Yu Liu8c981532022-09-27 12:47:26 -0700643 "mediaswcodec",
644 "libmedia_headers",
645 "libmedia_codecserviceregistrant",
646 "libsfplugin_ccodec_utils",
647 "libcodec2_soft_aacenc",
648 "libcodec2_soft_amrnbdec",
649 "libcodec2_soft_amrnbenc",
650 "libcodec2_soft_amrwbdec",
651 "libcodec2_soft_amrwbenc",
652 "libcodec2_soft_hevcdec",
653 "libcodec2_soft_hevcenc",
654 "libcodec2_soft_g711alawdec",
655 "libcodec2_soft_g711mlawdec",
656 "libcodec2_soft_mpeg2dec",
657 "libcodec2_soft_h263dec",
658 "libcodec2_soft_h263enc",
659 "libcodec2_soft_mpeg4dec",
660 "libcodec2_soft_mpeg4enc",
661 "libcodec2_soft_mp3dec",
662 "libcodec2_soft_vorbisdec",
663 "libcodec2_soft_opusdec",
664 "libcodec2_soft_opusenc",
665 "libcodec2_soft_vp8dec",
666 "libcodec2_soft_vp9dec",
667 "libcodec2_soft_av1dec_gav1",
668 "libcodec2_soft_vp8enc",
669 "libcodec2_soft_vp9enc",
670 "libcodec2_soft_rawdec",
671 "libcodec2_soft_flacdec",
672 "libcodec2_soft_flacenc",
673 "libcodec2_soft_gsmdec",
674 "libcodec2_soft_avcdec",
675 "libcodec2_soft_avcenc",
676 "libcodec2_soft_aacdec",
677 "libcodec2_soft_common",
Alix8062f4d2022-11-14 21:38:07 +0000678
679 // kotlin srcs in java libs
680 "CtsPkgInstallerConstants",
681 "kotlinx_atomicfu",
Alix7c8eaeb2022-11-16 15:44:55 +0000682
683 // kotlin srcs in java binary
684 "AnalyzerKt",
685 "trebuchet-core",
Alix36795a72023-01-20 16:10:52 +0000686
687 // kotlin srcs in android_library
688 "renderscript_toolkit",
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500689
690 //kotlin srcs in android_binary
691 "MusicKotlin",
Zi Wang75a38e72023-02-15 22:52:47 -0800692
693 // checked in current.txt for merged_txts
694 "non-updatable-current.txt",
695 "non-updatable-system-current.txt",
696 "non-updatable-module-lib-current.txt",
697 "non-updatable-system-server-current.txt",
Zi Wangb31a8332023-03-06 15:21:35 -0800698
699 // for api_fingerprint.txt generation
700 "api_fingerprint",
Alixf848bf82023-03-06 19:43:55 +0000701
702 // allowlisting for kotlinx_coroutines
703 "kotlinx_coroutines",
704 "annotations",
705 "kotlinx-coroutines-android-annotation-stubs",
Sam Delmerico9d71a842023-03-16 16:24:54 -0400706
707 // for building com.android.neuralnetworks
708 "libimapper_stablec",
709 "libimapper_providerutils",
Alixe5085eb2023-01-31 19:38:41 +0000710
711 // min_sdk_version in android_app
712 "CtsShimUpgrade",
713 "fake-framework",
Sam Delmerico24c56032022-03-28 19:53:03 +0000714 }
715
716 Bp2buildModuleTypeAlwaysConvertList = []string{
Spandan Dasd58630f2022-09-08 01:04:22 +0000717 "aidl_interface_headers",
Zi Wangb2179e32023-01-31 15:53:30 -0800718 "bpf",
Zi Wang75a38e72023-02-15 22:52:47 -0800719 "combined_apis",
Sasha Smundak8bea2672022-08-04 13:31:14 -0700720 "license",
Liz Kammer45faf8f2022-06-02 16:00:54 -0400721 "linker_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000722 "java_import",
723 "java_import_host",
Zi Wangb2179e32023-01-31 15:53:30 -0800724 "java_sdk_library",
Trevor Radcliffead3d1232022-09-01 16:25:10 +0000725 "sysprop_library",
Sam Delmerico24c56032022-03-28 19:53:03 +0000726 }
727
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000728 // Add the names of modules that bp2build should never convert, if it is
729 // in the package allowlist. An error will be thrown if a module must
730 // not be here and in the alwaysConvert lists.
731 //
732 // For prebuilt modules (e.g. android_library_import), remember to add
733 // the "prebuilt_" prefix to the name, so that it's differentiable from
734 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +0000735 Bp2buildModuleDoNotConvertList = []string{
Vinh Tran220fb8b2022-10-04 12:04:17 -0400736 // Depends on unconverted libandroid, libgui
737 "dvr_buffer_queue-test",
738 "dvr_display-test",
739 // Depends on unconverted libchrome
740 "pdx_benchmarks",
741 "buffer_hub_queue-test",
742 "buffer_hub_queue_producer-test",
743
Sam Delmerico24c56032022-03-28 19:53:03 +0000744 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +0000745 "libactivitymanager_aidl", // TODO(b/207426160): Unsupported use of aidl sources (via Dactivity_manager_procstate_aidl) in a cc_library
746
747 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +0000748 "logtagd.rc",
749
Sam Delmerico24c56032022-03-28 19:53:03 +0000750 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +0000751
752 // TODO(b/202876379): has arch-variant static_executable
753 "linkerconfig",
754 "mdnsd",
755 "libcutils_test_static",
756 "KernelLibcutilsTest",
757
Cole Faust7071a052022-07-29 15:58:33 -0700758 "linker", // TODO(b/228316882): cc_binary uses link_crt
Cole Faust7071a052022-07-29 15:58:33 -0700759 "versioner", // TODO(b/228313961): depends on prebuilt shared library libclang-cpp_host as a shared library, which does not supply expected providers for a shared library
Liz Kammer63367e12022-06-13 19:35:12 +0000760 "art_libartbase_headers", // TODO(b/236268577): Header libraries do not support export_shared_libs_headers
761 "apexer_test", // Requires aapt2
Cole Faust91a2e102022-05-31 14:56:48 -0700762 "apexer_test_host_tools",
763 "host_apex_verifier",
Cole Faust7071a052022-07-29 15:58:33 -0700764 "tjbench", // TODO(b/240563612): Stem property
Sam Delmerico24c56032022-03-28 19:53:03 +0000765
766 // java bugs
767 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
768
769 // python protos
Cole Faust53b62092022-05-12 15:37:02 -0700770 "libprotobuf-python", // Has a handcrafted alternative
Sam Delmerico24c56032022-03-28 19:53:03 +0000771
772 // genrule incompatibilities
773 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
774 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
775
776 // aar support
Chris Parsons9f0e5522022-12-08 14:12:54 -0500777 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000778 // ERROR: The dependencies for the following 1 jar(s) are not complete.
779 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
780 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +0000781
782 // path property for filegroups
783 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
784 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
785 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000786 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
787 "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
788 "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico79985812022-03-23 20:20:42 +0000789 "auto_value_plugin_resources", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000790
791 // go deps:
Jingwen Chenf50817d2022-09-21 06:46:08 +0000792 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
793 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
794 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000795
796 // in cmd attribute of genrule rule //system/timezone/output_data:robolectric_tzdata: label '//system/timezone/output_data:iana/tzdata' in $(location) expression is not a declared prerequisite of this rule
797 "robolectric_tzdata",
Sam Delmerico24c56032022-03-28 19:53:03 +0000798
799 // rust support
800 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
801
802 // unconverted deps
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000803 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000804 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
805 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
806 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
807 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
808 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
809 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
Sam Delmerico24c56032022-03-28 19:53:03 +0000810 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
Sam Delmerico24c56032022-03-28 19:53:03 +0000811 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
812 "dex2oat-script", // depends on unconverted modules: dex2oat
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000813 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
814 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
Sam Delmerico24c56032022-03-28 19:53:03 +0000815 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400816 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -0400817 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +0000818 "libart", // depends on unconverted modules: apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api, art_operator_srcs, libcpu_features, libodrstatslog, libelffile, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfile, libnativebridge, libnativeloader, libsigchain, libartbase, libprofile, cpp-define-generator-asm-support
819 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
820 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -0400821 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
822 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Sam Delmerico24c56032022-03-28 19:53:03 +0000823 "libartd", // depends on unconverted modules: art_operator_srcs, libcpu_features, libodrstatslog, libelffiled, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfiled, libnativebridge, libnativeloader, libsigchain, libartbased, libprofiled, cpp-define-generator-asm-support, apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api
824 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +0000825 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +0000826 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
827 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +0000828 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
829 "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
830 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
831 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
832 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
833 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
834 "libprotobuf-java-nano", // b/220869005, depends on non-public_current SDK
Vinh Tranc3873e82022-08-23 20:33:25 -0400835 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +0000836 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
837 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
Sam Delmerico847178f2022-12-15 09:36:35 -0500838 "malloc-rss-benchmark", // depends on unconverted modules: libmeminfo
Sam Delmerico24c56032022-03-28 19:53:03 +0000839 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
Vinh Tranf19b6582022-09-21 17:01:49 -0400840 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
841 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
842 "test_fips", // depends on unconverted modules: adb
843 "timezone-host", // depends on unconverted modules: art.module.api.annotations
844 "truth-host-prebuilt", // depends on unconverted modules: truth-prebuilt
845 "truth-prebuilt", // depends on unconverted modules: asm-7.0, guava
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxbff2e882022-04-20 18:44:54 +0000846
Jingwen Chen5012e072022-08-04 15:04:43 +0000847 // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
848 "toybox-static",
Wei Li81852ca2022-07-27 00:22:06 -0700849
Liz Kammer09d831e2022-09-16 09:02:26 -0400850 // aidl files not created
851 "overlayable_policy_aidl_interface",
852
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000853 //prebuilts/tools/common/m2
854 // depends on //external/okio:okio-lib, which uses kotlin
855 "wire-runtime",
856
Jingwen Chena0519422022-09-28 08:01:57 +0000857 // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
858 "minadbd",
859
860 // depends on android.hardware.health-V2.0-java
861 "android.hardware.health-translate-java",
862
Jingwen Chen537242c2022-08-24 11:53:27 +0000863 // cc_test related.
Jingwen Chenb5edbf92023-03-20 13:17:49 +0000864 // b/274164834 "Could not open Configuration file test.cfg"
865 "svcenc", "svcdec",
866
Jingwen Chen537242c2022-08-24 11:53:27 +0000867 // Failing host cc_tests
868 "memunreachable_unit_test",
869 "libprocinfo_test",
870 "ziparchive-tests",
871 "gtest_isolated_tests",
872 "libunwindstack_unit_test",
873 "task_profiles_test",
874 "power_tests", // failing test on server, but not on host
875
876 // reflect: call of reflect.Value.NumField on interface Value
877 // affects all cc_tests that depend on art_defaults
878 "libnativebridge-tests",
879 "libnativeloader_test",
880 "art_libnativebridge_cts_tests",
881 "art_standalone_libdexfile_external_tests",
882 "art_standalone_libdexfile_support_tests",
883 "libnativebridge-lazy-tests",
884 "libnativebridge-test-case",
885 "libnativebridge2-test-case",
886 "libnativebridge3-test-case",
887 "libnativebridge6-test-case",
888 "libnativebridge6prezygotefork",
889
Liz Kammer09d831e2022-09-16 09:02:26 -0400890 "libandroidfw_tests", "aapt2_tests", // failing due to data path issues
891
Jingwen Chen537242c2022-08-24 11:53:27 +0000892 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
893 "AMRWBEncTest",
Jingwen Chenf0616002022-09-01 14:28:55 +0000894 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
895 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
896 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
897 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
Jingwen Chen537242c2022-08-24 11:53:27 +0000898 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
899 "Mpeg4H263DecoderTest", // depends on unconverted modules: libstagefright_foundation
900 "Mpeg4H263EncoderTest",
Jingwen Chen537242c2022-08-24 11:53:27 +0000901 "avcdec",
902 "avcenc",
903 "bionic-benchmarks-tests",
904 "bionic-fortify-runtime-asan-test",
905 "bionic-stress-tests",
906 "bionic-unit-tests",
907 "bionic-unit-tests-glibc",
908 "bionic-unit-tests-static",
909 "boringssl_crypto_test",
910 "boringssl_ssl_test",
911 "cfi_test_helper",
912 "cfi_test_helper2",
913 "cintltst32",
914 "cintltst64",
915 "compare",
916 "cpuid",
917 "debuggerd_test", // depends on unconverted modules: libdebuggerd
918 "elftls_dlopen_ie_error_helper",
919 "exec_linker_helper",
920 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
921 "fdtrack_test",
922 "google-benchmark-test",
923 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
924 "gtest-typed-test_test",
925 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
926 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
927 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
928 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
929 "gtest_tests",
930 "gtest_tests_no_main",
931 "gwp_asan_unittest",
932 "half_test",
933 "hashcombine_test",
934 "hevcdec",
935 "hevcenc",
936 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
937 "i444tonv12_eg",
938 "icu4c_sample_break",
939 "intltest32",
940 "intltest64",
941 "ion-unit-tests",
942 "jemalloc5_integrationtests",
943 "jemalloc5_unittests",
944 "ld_config_test_helper",
945 "ld_preload_test_helper",
946 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
947 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
948 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
Jingwen Chen537242c2022-08-24 11:53:27 +0000949 "libcutils_sockets_test",
950 "libexpectedutils_test",
951 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +0000952 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +0000953 "libminijail_test",
954 "libminijail_unittest_gtest",
955 "libpackagelistparser_test",
956 "libprotobuf_vendor_suffix_test",
957 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
958 "libstagefright_amrnbenc_test",
959 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
960 "libstagefright_m4vh263enc_test",
961 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
962 "libstatssocket_test",
963 "libvndksupport-tests",
964 "libyuv_unittest",
965 "linker-unit-tests",
966 "malloc_debug_system_tests",
967 "malloc_debug_unit_tests",
968 "malloc_hooks_system_tests",
969 "mat_test",
970 "mathtest",
971 "memunreachable_binder_test", // depends on unconverted modules: libbinder
972 "memunreachable_test",
973 "metadata_tests",
974 "minijail0_cli_unittest_gtest",
975 "mpeg2dec",
976 "mvcdec",
977 "ns_hidden_child_helper",
978 "pngtest",
979 "preinit_getauxval_test_helper",
980 "preinit_syscall_test_helper",
981 "psnr",
982 "quat_test",
983 "rappor-tests", // depends on unconverted modules: jsr305, guava
984 "scudo_unit_tests",
985 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
986 "syscall_filter_unittest_gtest",
987 "sysprop_test", // depends on unconverted modules: libcom.android.sysprop.tests
988 "thread_exit_cb_helper",
989 "tls_properties_helper",
990 "ulp",
991 "vec_test",
992 "yuvconstants",
993 "yuvconvert",
994 "zipalign_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +0000995
996 // cc_test_library
997 "clang_diagnostic_tests",
998 "exec_linker_helper_lib",
999 "fortify_disabled_for_tidy",
1000 "ld_config_test_helper_lib1",
1001 "ld_config_test_helper_lib2",
1002 "ld_config_test_helper_lib3",
1003 "ld_preload_test_helper_lib1",
1004 "ld_preload_test_helper_lib2",
1005 "libBionicElfTlsLoaderTests",
1006 "libBionicElfTlsTests",
1007 "libBionicElfTlsTests",
1008 "libBionicFramePointerTests",
1009 "libBionicFramePointerTests",
1010 "libBionicStandardTests",
1011 "libBionicStandardTests",
1012 "libBionicTests",
1013 "libart-broken",
1014 "libatest_simple_zip",
1015 "libcfi-test",
1016 "libcfi-test-bad",
1017 "libcrash_test",
1018 // "libcrypto_fuzz_unsafe",
1019 "libdl_preempt_test_1",
1020 "libdl_preempt_test_2",
1021 "libdl_test_df_1_global",
1022 "libdlext_test",
1023 "libdlext_test_different_soname",
1024 "libdlext_test_fd",
1025 "libdlext_test_norelro",
1026 "libdlext_test_recursive",
1027 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -04001028 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001029 "libfortify1-new-tests-clang",
1030 "libfortify1-new-tests-clang",
1031 "libfortify1-tests-clang",
1032 "libfortify1-tests-clang",
1033 "libfortify2-new-tests-clang",
1034 "libfortify2-new-tests-clang",
1035 "libfortify2-tests-clang",
1036 "libfortify2-tests-clang",
1037 "libgnu-hash-table-library",
1038 "libicutest_static",
1039 "liblinker_reloc_bench_000",
1040 "liblinker_reloc_bench_001",
1041 "liblinker_reloc_bench_002",
1042 "liblinker_reloc_bench_003",
1043 "liblinker_reloc_bench_004",
1044 "liblinker_reloc_bench_005",
1045 "liblinker_reloc_bench_006",
1046 "liblinker_reloc_bench_007",
1047 "liblinker_reloc_bench_008",
1048 "liblinker_reloc_bench_009",
1049 "liblinker_reloc_bench_010",
1050 "liblinker_reloc_bench_011",
1051 "liblinker_reloc_bench_012",
1052 "liblinker_reloc_bench_013",
1053 "liblinker_reloc_bench_014",
1054 "liblinker_reloc_bench_015",
1055 "liblinker_reloc_bench_016",
1056 "liblinker_reloc_bench_017",
1057 "liblinker_reloc_bench_018",
1058 "liblinker_reloc_bench_019",
1059 "liblinker_reloc_bench_020",
1060 "liblinker_reloc_bench_021",
1061 "liblinker_reloc_bench_022",
1062 "liblinker_reloc_bench_023",
1063 "liblinker_reloc_bench_024",
1064 "liblinker_reloc_bench_025",
1065 "liblinker_reloc_bench_026",
1066 "liblinker_reloc_bench_027",
1067 "liblinker_reloc_bench_028",
1068 "liblinker_reloc_bench_029",
1069 "liblinker_reloc_bench_030",
1070 "liblinker_reloc_bench_031",
1071 "liblinker_reloc_bench_032",
1072 "liblinker_reloc_bench_033",
1073 "liblinker_reloc_bench_034",
1074 "liblinker_reloc_bench_035",
1075 "liblinker_reloc_bench_036",
1076 "liblinker_reloc_bench_037",
1077 "liblinker_reloc_bench_038",
1078 "liblinker_reloc_bench_039",
1079 "liblinker_reloc_bench_040",
1080 "liblinker_reloc_bench_041",
1081 "liblinker_reloc_bench_042",
1082 "liblinker_reloc_bench_043",
1083 "liblinker_reloc_bench_044",
1084 "liblinker_reloc_bench_045",
1085 "liblinker_reloc_bench_046",
1086 "liblinker_reloc_bench_047",
1087 "liblinker_reloc_bench_048",
1088 "liblinker_reloc_bench_049",
1089 "liblinker_reloc_bench_050",
1090 "liblinker_reloc_bench_051",
1091 "liblinker_reloc_bench_052",
1092 "liblinker_reloc_bench_053",
1093 "liblinker_reloc_bench_054",
1094 "liblinker_reloc_bench_055",
1095 "liblinker_reloc_bench_056",
1096 "liblinker_reloc_bench_057",
1097 "liblinker_reloc_bench_058",
1098 "liblinker_reloc_bench_059",
1099 "liblinker_reloc_bench_060",
1100 "liblinker_reloc_bench_061",
1101 "liblinker_reloc_bench_062",
1102 "liblinker_reloc_bench_063",
1103 "liblinker_reloc_bench_064",
1104 "liblinker_reloc_bench_065",
1105 "liblinker_reloc_bench_066",
1106 "liblinker_reloc_bench_067",
1107 "liblinker_reloc_bench_068",
1108 "liblinker_reloc_bench_069",
1109 "liblinker_reloc_bench_070",
1110 "liblinker_reloc_bench_071",
1111 "liblinker_reloc_bench_072",
1112 "liblinker_reloc_bench_073",
1113 "liblinker_reloc_bench_074",
1114 "liblinker_reloc_bench_075",
1115 "liblinker_reloc_bench_076",
1116 "liblinker_reloc_bench_077",
1117 "liblinker_reloc_bench_078",
1118 "liblinker_reloc_bench_079",
1119 "liblinker_reloc_bench_080",
1120 "liblinker_reloc_bench_081",
1121 "liblinker_reloc_bench_082",
1122 "liblinker_reloc_bench_083",
1123 "liblinker_reloc_bench_084",
1124 "liblinker_reloc_bench_085",
1125 "liblinker_reloc_bench_086",
1126 "liblinker_reloc_bench_087",
1127 "liblinker_reloc_bench_088",
1128 "liblinker_reloc_bench_089",
1129 "liblinker_reloc_bench_090",
1130 "liblinker_reloc_bench_091",
1131 "liblinker_reloc_bench_092",
1132 "liblinker_reloc_bench_093",
1133 "liblinker_reloc_bench_094",
1134 "liblinker_reloc_bench_095",
1135 "liblinker_reloc_bench_096",
1136 "liblinker_reloc_bench_097",
1137 "liblinker_reloc_bench_098",
1138 "liblinker_reloc_bench_099",
1139 "liblinker_reloc_bench_100",
1140 "liblinker_reloc_bench_101",
1141 "liblinker_reloc_bench_102",
1142 "liblinker_reloc_bench_103",
1143 "liblinker_reloc_bench_104",
1144 "liblinker_reloc_bench_105",
1145 "liblinker_reloc_bench_106",
1146 "liblinker_reloc_bench_107",
1147 "liblinker_reloc_bench_108",
1148 "liblinker_reloc_bench_109",
1149 "liblinker_reloc_bench_110",
1150 "liblinker_reloc_bench_111",
1151 "liblinker_reloc_bench_112",
1152 "liblinker_reloc_bench_113",
1153 "liblinker_reloc_bench_114",
1154 "liblinker_reloc_bench_115",
1155 "liblinker_reloc_bench_116",
1156 "liblinker_reloc_bench_117",
1157 "liblinker_reloc_bench_118",
1158 "liblinker_reloc_bench_119",
1159 "liblinker_reloc_bench_120",
1160 "liblinker_reloc_bench_121",
1161 "liblinker_reloc_bench_122",
1162 "liblinker_reloc_bench_123",
1163 "liblinker_reloc_bench_124",
1164 "liblinker_reloc_bench_125",
1165 "liblinker_reloc_bench_126",
1166 "liblinker_reloc_bench_127",
1167 "liblinker_reloc_bench_128",
1168 "liblinker_reloc_bench_129",
1169 "liblinker_reloc_bench_130",
1170 "liblinker_reloc_bench_131",
1171 "liblinker_reloc_bench_132",
1172 "liblinker_reloc_bench_133",
1173 "liblinker_reloc_bench_134",
1174 "liblinker_reloc_bench_135",
1175 "liblinker_reloc_bench_136",
1176 "liblinker_reloc_bench_137",
1177 "liblinker_reloc_bench_138",
1178 "liblinker_reloc_bench_139",
1179 "liblinker_reloc_bench_140",
1180 "liblinker_reloc_bench_141",
1181 "liblinker_reloc_bench_142",
1182 "liblinker_reloc_bench_143",
1183 "liblinker_reloc_bench_144",
1184 "liblinker_reloc_bench_145",
1185 "liblinker_reloc_bench_146",
1186 "liblinker_reloc_bench_147",
1187 "liblinker_reloc_bench_148",
1188 "liblinker_reloc_bench_149",
1189 "liblinker_reloc_bench_150",
1190 "liblinker_reloc_bench_151",
1191 "liblinker_reloc_bench_152",
1192 "liblinker_reloc_bench_153",
1193 "liblinker_reloc_bench_154",
1194 "liblinker_reloc_bench_155",
1195 "liblinker_reloc_bench_156",
1196 "liblinker_reloc_bench_157",
1197 "liblinker_reloc_bench_158",
1198 "liblinker_reloc_bench_159",
1199 "liblinker_reloc_bench_160",
1200 "liblinker_reloc_bench_161",
1201 "liblinker_reloc_bench_162",
1202 "liblinker_reloc_bench_163",
1203 "liblinker_reloc_bench_164",
1204 "liblinker_reloc_bench_165",
1205 "liblinker_reloc_bench_166",
1206 "liblinker_reloc_bench_167",
1207 "liblinker_reloc_bench_168",
1208 "libns_hidden_child_app",
1209 "libns_hidden_child_global",
1210 "libns_hidden_child_internal",
1211 "libns_hidden_child_public",
1212 "libnstest_dlopened",
1213 "libnstest_ns_a_public1",
1214 "libnstest_ns_a_public1_internal",
1215 "libnstest_ns_b_public2",
1216 "libnstest_ns_b_public3",
1217 "libnstest_private",
1218 "libnstest_private_external",
1219 "libnstest_public",
1220 "libnstest_public_internal",
1221 "libnstest_root",
1222 "libnstest_root_not_isolated",
1223 "librelocations-ANDROID_REL",
1224 "librelocations-ANDROID_RELR",
1225 "librelocations-RELR",
1226 "librelocations-fat",
1227 "libsegment_gap_inner",
1228 "libsegment_gap_outer",
1229 // "libssl_fuzz_unsafe",
1230 "libstatssocket_private",
1231 "libsysv-hash-table-library",
1232 "libtest_atexit",
1233 "libtest_check_order_dlsym",
1234 "libtest_check_order_dlsym_1_left",
1235 "libtest_check_order_dlsym_2_right",
1236 "libtest_check_order_dlsym_3_c",
1237 "libtest_check_order_dlsym_a",
1238 "libtest_check_order_dlsym_b",
1239 "libtest_check_order_dlsym_d",
1240 "libtest_check_order_reloc_root",
1241 "libtest_check_order_reloc_root_1",
1242 "libtest_check_order_reloc_root_2",
1243 "libtest_check_order_reloc_siblings",
1244 "libtest_check_order_reloc_siblings_1",
1245 "libtest_check_order_reloc_siblings_2",
1246 "libtest_check_order_reloc_siblings_3",
1247 "libtest_check_order_reloc_siblings_a",
1248 "libtest_check_order_reloc_siblings_b",
1249 "libtest_check_order_reloc_siblings_c",
1250 "libtest_check_order_reloc_siblings_c_1",
1251 "libtest_check_order_reloc_siblings_c_2",
1252 "libtest_check_order_reloc_siblings_d",
1253 "libtest_check_order_reloc_siblings_e",
1254 "libtest_check_order_reloc_siblings_f",
1255 "libtest_check_rtld_next_from_library",
1256 "libtest_dlopen_df_1_global",
1257 "libtest_dlopen_from_ctor",
1258 "libtest_dlopen_from_ctor_main",
1259 "libtest_dlopen_weak_undefined_func",
1260 "libtest_dlsym_df_1_global",
1261 "libtest_dlsym_from_this",
1262 "libtest_dlsym_from_this_child",
1263 "libtest_dlsym_from_this_grandchild",
1264 "libtest_dlsym_weak_func",
1265 "libtest_dt_runpath_a",
1266 "libtest_dt_runpath_b",
1267 "libtest_dt_runpath_c",
1268 "libtest_dt_runpath_d",
1269 "libtest_dt_runpath_d_zip",
1270 "libtest_dt_runpath_x",
1271 "libtest_dt_runpath_y",
1272 "libtest_elftls_dynamic",
1273 "libtest_elftls_dynamic_filler_1",
1274 "libtest_elftls_dynamic_filler_2",
1275 "libtest_elftls_dynamic_filler_3",
1276 "libtest_elftls_shared_var",
1277 "libtest_elftls_shared_var_ie",
1278 "libtest_elftls_tprel",
1279 "libtest_empty",
1280 "libtest_ifunc",
1281 "libtest_ifunc_variable",
1282 "libtest_ifunc_variable_impl",
1283 "libtest_indirect_thread_local_dtor",
1284 "libtest_init_fini_order_child",
1285 "libtest_init_fini_order_grand_child",
1286 "libtest_init_fini_order_root",
1287 "libtest_init_fini_order_root2",
1288 "libtest_missing_symbol",
1289 "libtest_missing_symbol_child_private",
1290 "libtest_missing_symbol_child_public",
1291 "libtest_missing_symbol_root",
1292 "libtest_nodelete_1",
1293 "libtest_nodelete_2",
1294 "libtest_nodelete_dt_flags_1",
1295 "libtest_pthread_atfork",
1296 "libtest_relo_check_dt_needed_order",
1297 "libtest_relo_check_dt_needed_order_1",
1298 "libtest_relo_check_dt_needed_order_2",
1299 "libtest_simple",
1300 "libtest_thread_local_dtor",
1301 "libtest_thread_local_dtor2",
1302 "libtest_two_parents_child",
1303 "libtest_two_parents_parent1",
1304 "libtest_two_parents_parent2",
1305 "libtest_versioned_lib",
1306 "libtest_versioned_libv1",
1307 "libtest_versioned_libv2",
1308 "libtest_versioned_otherlib",
1309 "libtest_versioned_otherlib_empty",
1310 "libtest_versioned_uselibv1",
1311 "libtest_versioned_uselibv2",
1312 "libtest_versioned_uselibv2_other",
1313 "libtest_versioned_uselibv3_other",
1314 "libtest_with_dependency",
1315 "libtest_with_dependency_loop",
1316 "libtest_with_dependency_loop_a",
1317 "libtest_with_dependency_loop_b",
1318 "libtest_with_dependency_loop_b_tmp",
1319 "libtest_with_dependency_loop_c",
1320 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001321
1322 // depends on unconverted libprotobuf-java-nano
1323 "dnsresolverprotosnano",
1324 "launcherprotosnano",
1325 "datastallprotosnano",
1326 "devicepolicyprotosnano",
Wei Li7d8f6182022-10-11 14:38:16 -07001327 "ota_metadata_proto_java",
1328 "merge_ota",
1329
1330 // releasetools
1331 "releasetools_fsverity_metadata_generator",
1332 "verity_utils",
1333 "check_ota_package_signature",
1334 "check_target_files_vintf",
1335 "releasetools_check_target_files_vintf",
1336 "releasetools_verity_utils",
1337 "build_image",
1338 "ota_from_target_files",
1339 "releasetools_ota_from_target_files",
1340 "releasetools_build_image",
1341 "add_img_to_target_files",
1342 "releasetools_add_img_to_target_files",
1343 "fsverity_metadata_generator",
1344 "sign_target_files_apks",
1345
1346 // depends on the support of yacc file
1347 "libapplypatch",
1348 "libapplypatch_modes",
1349 "applypatch",
Yu Liu6c999ef2022-10-19 16:41:10 +00001350
1351 // TODO(b/254476335): disable the following due to this bug
1352 "libapexinfo",
1353 "libapexinfo_tests",
Colin Cross20c89f12022-12-05 16:47:44 -08001354
1355 // uses glob in $(locations)
1356 "libc_musl_sysroot",
Kevin Dagostino2c3be412023-02-07 04:10:27 +00001357
1358 // TODO(b/266459895): depends on libunwindstack
1359 "libutils_test",
Sam Delmerico24c56032022-03-28 19:53:03 +00001360 }
1361
Sam Delmerico24c56032022-03-28 19:53:03 +00001362 MixedBuildsDisabledList = []string{
Liz Kammer63367e12022-06-13 19:35:12 +00001363 "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
1364
Sam Delmerico24c56032022-03-28 19:53:03 +00001365 "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
1366
1367 "libbrotli", // http://b/198585397, ld.lld: error: bionic/libc/arch-arm64/generic/bionic/memmove.S:95:(.text+0x10): relocation R_AARCH64_CONDBR19 out of range: -1404176 is not in [-1048576, 1048575]; references __memcpy
1368 "minijail_constants_json", // http://b/200899432, bazel-built cc_genrule does not work in mixed build when it is a dependency of another soong module.
1369
1370 "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
1371 "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
1372 "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
1373
1374 // Depends on libprotobuf-cpp-*
1375 "libadb_pairing_connection",
1376 "libadb_pairing_connection_static",
1377 "libadb_pairing_server", "libadb_pairing_server_static",
1378
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxa56e9702022-02-23 18:39:59 -05001379 // TODO(b/240563612) Needing `stem` selection support for cc_binary
Sam Delmerico24c56032022-03-28 19:53:03 +00001380 "crasher",
Sam Delmerico277795c2022-02-25 17:04:37 +00001381
1382 // java_import[_host] issues
1383 // tradefed prebuilts depend on libprotobuf
1384 "prebuilt_tradefed",
1385 "prebuilt_tradefed-test-framework",
1386 // handcrafted BUILD.bazel files in //prebuilts/...
1387 "prebuilt_r8lib-prebuilt",
1388 "prebuilt_sdk-core-lambda-stubs",
1389 "prebuilt_android-support-collections-nodeps",
1390 "prebuilt_android-arch-core-common-nodeps",
1391 "prebuilt_android-arch-lifecycle-common-java8-nodeps",
1392 "prebuilt_android-arch-lifecycle-common-nodeps",
1393 "prebuilt_android-support-annotations-nodeps",
1394 "prebuilt_android-arch-paging-common-nodeps",
1395 "prebuilt_android-arch-room-common-nodeps",
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001396 // TODO(b/217750501) exclude_dirs property not supported
1397 "prebuilt_kotlin-reflect",
1398 "prebuilt_kotlin-stdlib",
1399 "prebuilt_kotlin-stdlib-jdk7",
1400 "prebuilt_kotlin-stdlib-jdk8",
1401 "prebuilt_kotlin-test",
1402 // TODO(b/217750501) exclude_files property not supported
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001403 "prebuilt_currysrc_org.eclipse",
Yu Liu828c4062023-01-23 20:56:46 +00001404
1405 // TODO(b/266459895): re-enable libunwindstack
1406 "libunwindstack",
1407 "libunwindstack_stdout_log",
1408 "libunwindstack_no_dex",
1409 "libunwindstack_utils",
1410 "unwind_reg_info",
1411 "libunwindstack_local",
1412 "unwind_for_offline",
1413 "unwind",
1414 "unwind_info",
1415 "unwind_symbols",
Yu Liu828c4062023-01-23 20:56:46 +00001416 "libEGL",
Yu Liu828c4062023-01-23 20:56:46 +00001417 "libGLESv2",
Liz Kammerf2355052023-03-22 11:14:34 -04001418 "libc_malloc_debug",
1419 "libcodec2_hidl@1.0",
Yu Liu828c4062023-01-23 20:56:46 +00001420 "libcodec2_hidl@1.1",
Yu Liu828c4062023-01-23 20:56:46 +00001421 "libcodec2_hidl@1.2",
Liz Kammerf2355052023-03-22 11:14:34 -04001422 "libfdtrack",
1423 "libgui",
1424 "libgui_bufferqueue_static",
1425 "libmedia_codecserviceregistrant",
1426 "libstagefright_bufferqueue_helper_novndk",
Yu Liu828c4062023-01-23 20:56:46 +00001427 "libutils_test",
1428 "libutilscallstack",
Liz Kammerf2355052023-03-22 11:14:34 -04001429 "mediaswcodec",
Sam Delmerico24c56032022-03-28 19:53:03 +00001430 }
Chris Parsonsef615e52022-08-18 22:04:11 -04001431
Chris Parsons66fc7452022-11-04 13:26:17 -04001432 // Bazel prod-mode allowlist. Modules in this list are built by Bazel
1433 // in either prod mode or staging mode.
Jingwen Chen889f2f22022-12-16 08:16:01 +00001434 ProdMixedBuildsEnabledList = []string{
Jingwen Chen01addfc2023-03-13 12:49:52 +00001435 // M5: tzdata launch
Jingwen Chen889f2f22022-12-16 08:16:01 +00001436 "com.android.tzdata",
1437 "test1_com.android.tzdata",
Jingwen Chend28c4262023-03-28 10:35:45 +00001438 "test3_com.android.tzdata",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001439 // M7: adbd launch
Jingwen Chen98bf5cc2022-12-14 13:27:25 +00001440 "com.android.adbd",
1441 "test_com.android.adbd",
1442 "adbd_test",
1443 "adb_crypto_test",
1444 "adb_pairing_auth_test",
1445 "adb_pairing_connection_test",
1446 "adb_tls_connection_test",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001447 // M9: mixed builds for mainline trains launch
1448 "api_fingerprint",
Jingwen Chen889f2f22022-12-16 08:16:01 +00001449 }
MarkDacekb78465d2022-10-18 20:10:16 +00001450
Chris Parsons66fc7452022-11-04 13:26:17 -04001451 // Staging-mode allowlist. Modules in this list are only built
1452 // by Bazel with --bazel-mode-staging. This list should contain modules
1453 // which will soon be added to the prod allowlist.
MarkDacek421a4d62022-12-13 21:17:08 +00001454 // It is implicit that all modules in ProdMixedBuildsEnabledList will
1455 // also be built - do not add them to this list.
Yu Liu79776502023-03-21 16:33:03 -07001456 StagingMixedBuildsEnabledList = []string{
1457 "com.android.neuralnetworks",
1458 }
Yu Liue4312402023-01-18 09:15:31 -08001459
1460 // These should be the libs that are included by the apexes in the ProdMixedBuildsEnabledList
Jingwen Chen01addfc2023-03-13 12:49:52 +00001461 ProdDclaMixedBuildsEnabledList = []string{
Yu Liue4312402023-01-18 09:15:31 -08001462 "libbase",
1463 "libc++",
1464 "libcrypto",
1465 "libcutils",
1466 }
1467
Jingwen Chen01addfc2023-03-13 12:49:52 +00001468 // These should be the libs that are included by the apexes in the StagingMixedBuildsEnabledList
1469 StagingDclaMixedBuildsEnabledList = []string{}
1470
Yu Liue4312402023-01-18 09:15:31 -08001471 // TODO(b/269342245): Enable the rest of the DCLA libs
1472 // "libssl",
1473 // "libstagefright_flacdec",
1474 // "libutils",
Jeongik Chae114e602023-03-19 00:12:39 +09001475
1476 // TODO(b/273282046): Make this list customizable to support various targets.
1477 // The list of modules which are expected to spend lots of build time.
1478 // With `--ninja_weight_source=soong`, ninja builds these modules and deps first.
1479 HugeModulesMap = map[string]int{
1480 "libbt_packets": DEFAULT_NINJA_WEIGHT,
1481 "libbt_packets_nonapex": DEFAULT_NINJA_WEIGHT,
1482 "crosvm": DEFAULT_NINJA_WEIGHT,
1483 "system-api-stubs-docs-non-updatable": DEFAULT_NINJA_WEIGHT,
1484 "test-api-stubs-docs-non-updatable": DEFAULT_NINJA_WEIGHT,
1485 "module-lib-api-stubs-docs-non-updatable": DEFAULT_NINJA_WEIGHT,
1486 "libdevices": DEFAULT_NINJA_WEIGHT,
1487 "libaom": DEFAULT_NINJA_WEIGHT,
1488 "libart-disassembler": DEFAULT_NINJA_WEIGHT,
1489 "libart": DEFAULT_NINJA_WEIGHT,
1490 "libprotobuf": DEFAULT_NINJA_WEIGHT,
1491 "libsyn": DEFAULT_NINJA_WEIGHT,
1492 "api-stubs-docs-non-updatable": DEFAULT_NINJA_WEIGHT,
1493 "framework-res": DEFAULT_NINJA_WEIGHT,
1494 "SystemUI-core": DEFAULT_NINJA_WEIGHT,
1495 "services-non-updatable-stubs": DEFAULT_NINJA_WEIGHT,
1496 "art.module.public.api.stubs.source": DEFAULT_NINJA_WEIGHT,
1497 "art.module.intra.core.api.stubs.source": DEFAULT_NINJA_WEIGHT,
1498 "virtmgr": DEFAULT_NINJA_WEIGHT,
1499 "metalava": DEFAULT_NINJA_WEIGHT,
1500 "libkeystore2": DEFAULT_NINJA_WEIGHT,
1501 }
Sam Delmerico24c56032022-03-28 19:53:03 +00001502)