blob: 5b7f117894b78a062e5f547d6e03a5789e4afa0c [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
Jeongik Chab745e2e2023-04-11 14:28:43 +090041 // Modules with build time of more than half a minute should have high priority.
42 DEFAULT_PRIORITIZED_WEIGHT = 1000
43 // Modules with build time of more than a few minute should have higher priority.
44 HIGH_PRIORITIZED_WEIGHT = 10 * DEFAULT_PRIORITIZED_WEIGHT
45 // Modules with inputs greater than the threshold should have high priority.
46 // Adjust this threshold if there are lots of wrong predictions.
47 INPUT_SIZE_THRESHOLD = 50
Sam Delmerico24c56032022-03-28 19:53:03 +000048)
49
50var (
51 Bp2buildDefaultConfig = Bp2BuildConfig{
Sasha Smundak8bea2672022-08-04 13:31:14 -070052 "art": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040053 "art/libartbase": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +000054 "art/libartpalette": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040055 "art/libdexfile": Bp2BuildDefaultTrueRecursively,
56 "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
57 "art/runtime": Bp2BuildDefaultTrueRecursively,
58 "art/tools": Bp2BuildDefaultTrue,
59 "bionic": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +000060 "bootable/recovery/applypatch": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +000061 "bootable/recovery/minadbd": Bp2BuildDefaultTrue,
62 "bootable/recovery/minui": Bp2BuildDefaultTrue,
63 "bootable/recovery/recovery_utils": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040064 "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
65
Cole Faust324a92e2022-08-23 15:29:05 -070066 "build/bazel": Bp2BuildDefaultTrueRecursively,
67 "build/make/target/product/security": Bp2BuildDefaultTrue,
Wei Li74e3e002023-04-26 12:15:55 -070068 "build/make/tools/protos": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -070069 "build/make/tools/releasetools": Bp2BuildDefaultTrue,
Wei Li74e3e002023-04-26 12:15:55 -070070 "build/make/tools/sbom": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070071 "build/make/tools/signapk": Bp2BuildDefaultTrue,
72 "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
73 "build/soong": Bp2BuildDefaultTrue,
74 "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
75 "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
76 "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -070077 "build/soong/licenses": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070078 "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
79 "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040080
81 "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
Jingwen Chen1ec77852022-11-07 14:36:12 +000082
83 "dalvik/tools/dexdeps": Bp2BuildDefaultTrueRecursively,
84
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040085 "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
86 "development/apps/Fallback": Bp2BuildDefaultTrue,
87 "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
88 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
89 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
90 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
91 "development/samples/Compass": Bp2BuildDefaultTrue,
92 "development/samples/ContactManager": Bp2BuildDefaultTrue,
93 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
94 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
95 "development/samples/Home": Bp2BuildDefaultTrue,
96 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
97 "development/samples/JetBoy": Bp2BuildDefaultTrue,
98 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
99 "development/samples/LceDemo": Bp2BuildDefaultTrue,
100 "development/samples/LunarLander": Bp2BuildDefaultTrue,
101 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
102 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
103 "development/samples/NotePad": Bp2BuildDefaultTrue,
104 "development/samples/Obb": Bp2BuildDefaultTrue,
105 "development/samples/RSSReader": Bp2BuildDefaultTrue,
106 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
107 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
108 "development/samples/SipDemo": Bp2BuildDefaultTrue,
109 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
110 "development/samples/Snake": Bp2BuildDefaultTrue,
111 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
112 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
113 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
114 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
115 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
116 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
117 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
118 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
119 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
120 "development/sdk": Bp2BuildDefaultTrueRecursively,
121
122 "external/aac": Bp2BuildDefaultTrueRecursively,
123 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700124 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000125 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400126 "external/auto/common": Bp2BuildDefaultTrueRecursively,
127 "external/auto/service": Bp2BuildDefaultTrueRecursively,
128 "external/boringssl": Bp2BuildDefaultTrueRecursively,
129 "external/bouncycastle": Bp2BuildDefaultTrue,
130 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700131 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
132 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400133 "external/conscrypt": Bp2BuildDefaultTrue,
134 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
135 "external/eigen": Bp2BuildDefaultTrueRecursively,
136 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
137 "external/error_prone": Bp2BuildDefaultTrueRecursively,
Usta Shresthad66f2ce2023-03-15 15:01:59 -0400138 "external/escapevelocity": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400139 "external/expat": Bp2BuildDefaultTrueRecursively,
140 "external/f2fs-tools": Bp2BuildDefaultTrue,
141 "external/flac": Bp2BuildDefaultTrueRecursively,
142 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
Romain Jobredeauxe7370ea2023-04-04 10:30:14 -0400143 "external/guava": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400144 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
145 "external/googletest": Bp2BuildDefaultTrueRecursively,
146 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
147 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
148 "external/icu": Bp2BuildDefaultTrueRecursively,
149 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
150 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400151 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400152 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400153 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400154 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000155 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400156 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
157 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500158 "external/jsr305": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500159 "external/jsr330": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400160 "external/junit": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500161 "external/kotlinc": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400162 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400163 "external/libavc": Bp2BuildDefaultTrueRecursively,
164 "external/libcap": Bp2BuildDefaultTrueRecursively,
165 "external/libcxx": Bp2BuildDefaultTrueRecursively,
166 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700167 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000168 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400169 "external/libevent": Bp2BuildDefaultTrueRecursively,
170 "external/libgav1": Bp2BuildDefaultTrueRecursively,
171 "external/libhevc": Bp2BuildDefaultTrueRecursively,
172 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
173 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
174 "external/libpng": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700175 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700176 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400177 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700178 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400179 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
180 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
181 "external/minijail": Bp2BuildDefaultTrueRecursively,
Colin Cross20c89f12022-12-05 16:47:44 -0800182 "external/musl": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000183 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000184 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Spandan Das6960ac12022-11-22 04:45:05 +0000185 "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400186 "external/pcre": Bp2BuildDefaultTrueRecursively,
187 "external/protobuf": Bp2BuildDefaultTrueRecursively,
188 "external/python/six": Bp2BuildDefaultTrueRecursively,
189 "external/rappor": Bp2BuildDefaultTrueRecursively,
190 "external/scudo": Bp2BuildDefaultTrueRecursively,
191 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
192 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700193 "external/speex": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400194 "external/sqlite": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000195 "external/tinyalsa": Bp2BuildDefaultTrueRecursively,
196 "external/tinyalsa_new": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400197 "external/toybox": Bp2BuildDefaultTrueRecursively,
198 "external/zlib": Bp2BuildDefaultTrueRecursively,
199 "external/zopfli": Bp2BuildDefaultTrueRecursively,
200 "external/zstd": Bp2BuildDefaultTrueRecursively,
201
Jingwen Chen1ec77852022-11-07 14:36:12 +0000202 "frameworks/av": Bp2BuildDefaultTrue,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400203 "frameworks/av/media/audioaidlconversion": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400204 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000205 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000206 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400207 "frameworks/av/media/libmediahelper": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500208 "frameworks/av/media/libshmem": Bp2BuildDefaultTrueRecursively,
Liz Kammere7a47122023-05-12 08:44:51 -0400209 "frameworks/av/media/module/codecs": Bp2BuildDefaultTrueRecursively,
210 "frameworks/av/media/module/foundation": Bp2BuildDefaultTrueRecursively,
Jingwen Chen8ebc6202022-09-14 11:48:21 +0000211 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000212 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400213 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400214 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400215 "frameworks/base/proto": Bp2BuildDefaultTrue,
Liz Kammere7a47122023-05-12 08:44:51 -0400216 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400217 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
218 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400219 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
Alix9d562792023-03-02 17:12:30 +0000220 "frameworks/base/tools/codegen": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000221 "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
Vinh Tran9b09bc52023-02-21 09:56:25 -0500222 "frameworks/hardware/interfaces/stats/aidl": Bp2BuildDefaultTrue,
Liz Kammere7a47122023-05-12 08:44:51 -0400223 "frameworks/libs/modules-utils/build": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400224 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
225 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400226 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400227 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
228 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400229 "frameworks/native/libs/permission": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400230 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400231 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
232 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
233 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
234 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
235 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000236 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000237 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400238
Liz Kammere76510b2023-03-20 17:30:51 -0400239 "hardware/interfaces": Bp2BuildDefaultTrue,
240 "hardware/interfaces/audio/aidl": Bp2BuildDefaultTrue,
241 "hardware/interfaces/audio/aidl/common": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000242 "hardware/interfaces/audio/aidl/default": Bp2BuildDefaultTrue,
243 "hardware/interfaces/audio/aidl/sounddose": Bp2BuildDefaultTrue,
Liz Kammere76510b2023-03-20 17:30:51 -0400244 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
245 "hardware/interfaces/common/fmq/aidl": Bp2BuildDefaultTrue,
246 "hardware/interfaces/common/support": Bp2BuildDefaultTrue,
247 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
248 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
249 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
250 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
251 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
252 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
253 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
254 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
255 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
256 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
257 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
258 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
259 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
260 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
261 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
262 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
263 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
264 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
265 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
266 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
267 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
268 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
269 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
270 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
271 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
272 "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
273 "hardware/interfaces/media/bufferpool": Bp2BuildDefaultTrueRecursively,
274 "hardware/interfaces/media/bufferpool/aidl/default/tests": Bp2BuildDefaultFalseRecursively,
275 "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
276 "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
277 "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
278 "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
279 "hardware/interfaces/neuralnetworks": Bp2BuildDefaultTrueRecursively,
280 "hardware/interfaces/neuralnetworks/aidl/vts": Bp2BuildDefaultFalseRecursively,
281 "hardware/interfaces/neuralnetworks/1.0/vts": Bp2BuildDefaultFalseRecursively,
282 "hardware/interfaces/neuralnetworks/1.1/vts": Bp2BuildDefaultFalseRecursively,
283 "hardware/interfaces/neuralnetworks/1.2/vts": Bp2BuildDefaultFalseRecursively,
284 "hardware/interfaces/neuralnetworks/1.3/vts": Bp2BuildDefaultFalseRecursively,
285 "hardware/interfaces/neuralnetworks/1.4/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400286
287 "libnativehelper": Bp2BuildDefaultTrueRecursively,
288
Alix79f853d2023-02-10 15:57:01 +0000289 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
290 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
291 "packages/apps/Protips": Bp2BuildDefaultTrue,
292 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
293 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
294 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
295 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
296 "packages/modules/adb": Bp2BuildDefaultTrue,
297 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
298 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
299 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
300 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
301 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
302 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
303 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000304 "packages/modules/Gki/libkver": Bp2BuildDefaultTrue,
Alix79f853d2023-02-10 15:57:01 +0000305 "packages/modules/NetworkStack/common/captiveportal": Bp2BuildDefaultTrue,
Yu Liue1ab66d2023-03-24 10:53:02 -0700306 "packages/modules/NeuralNetworks/apex": Bp2BuildDefaultTrue,
MarkDacekb9e11c52023-04-26 21:28:16 +0000307 "packages/modules/NeuralNetworks/apex/testing": Bp2BuildDefaultTrue,
Alix79f853d2023-02-10 15:57:01 +0000308 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
309 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
310 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400311
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000312 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
313
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400314 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
315 "prebuilts/gradle-plugin": Bp2BuildDefaultTrueRecursively,
316 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux8242b432023-05-04 10:16:26 -0400317 "prebuilts/sdk": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400318 "prebuilts/sdk/current/androidx": Bp2BuildDefaultTrue,
319 "prebuilts/sdk/current/androidx-legacy": Bp2BuildDefaultTrue,
320 "prebuilts/sdk/current/extras/constraint-layout-x": Bp2BuildDefaultTrue,
321 "prebuilts/sdk/current/extras/material-design-x": Bp2BuildDefaultTrue,
322 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
323 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
324 "prebuilts/tools": Bp2BuildDefaultTrue,
325 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400326
Alixb4e09a02022-09-27 15:36:01 +0000327 "sdk/dumpeventlog": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000328 "sdk/eventanalyzer": Bp2BuildDefaultTrue,
Alixb4e09a02022-09-27 15:36:01 +0000329
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000330 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
331 "system/apex/apexer": Bp2BuildDefaultTrue,
332 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
333 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
334 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
335 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
336 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000337 "system/core/healthd": Bp2BuildDefaultTrue,
338 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000339 "system/core/libasyncio": Bp2BuildDefaultTrue,
340 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
341 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
342 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
343 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
344 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
345 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000346 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000347 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000348 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000349 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
350 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700351 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000352 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
353 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700354 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500355 "system/hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400356 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000357 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
358 "system/libbase": Bp2BuildDefaultTrueRecursively,
359 "system/libfmq": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400360 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
361 "system/libhidl/transport": Bp2BuildDefaultTrue,
362 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700363 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
364 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
365 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
366 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400367 "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
368 "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
369 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
370 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
371 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000372 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
373 "system/libprocinfo": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000374 "system/libvintf": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000375 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000376 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700377 "system/media": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000378 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000379 "system/media/alsa_utils": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700380 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000381 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
382 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
383 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000384 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000385 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
386 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Jingwen Chen61342112023-04-11 08:49:01 +0000387 "system/timezone/testdata": Bp2BuildDefaultTrueRecursively,
388 "system/timezone/testing": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400389 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000390 "system/tools/aidl/metadata": Bp2BuildDefaultTrue,
391 "system/tools/hidl/metadata": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700392 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400393 "system/tools/sysprop": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000394 "system/tools/xsdc/utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000395 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400396
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400397 "tools/apifinder": Bp2BuildDefaultTrue,
Dan Albertf1235a82023-04-13 16:39:28 +0000398 "tools/apksig": Bp2BuildDefaultTrue,
399 "tools/external_updater": Bp2BuildDefaultTrueRecursively,
400 "tools/metalava": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400401 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
402 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000403 }
404
405 Bp2buildKeepExistingBuildFile = map[string]bool{
406 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
407 ".":/*recursive = */ false,
408
Cole Faust324a92e2022-08-23 15:29:05 -0700409 "build/bazel":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000410 "build/make/core":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000411 "build/bazel_common_rules":/* recursive = */ true,
Cole Faust10b94de2023-03-31 17:38:33 -0700412 "build/make/target/product/security":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000413 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
414 "build/make/tools":/* recursive = */ false,
415 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000416 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000417
418 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
419 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
420 "external/bazelbuild-rules_android":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700421 "external/bazelbuild-rules_license":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400422 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000423 "external/bazel-skylib":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700424 "external/protobuf":/* recursive = */ false,
Cole Faustde12be32022-11-19 15:14:48 -0800425 "external/python/absl-py":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000426
Trevor Radcliffe391a25d2023-03-22 20:22:27 +0000427 "external/compiler-rt/lib/cfi":/* recursive = */ false,
428
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000429 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
430 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
431
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500432 // Building manually due to b/179889880: resource files cross package boundary
Sam Delmerico24c56032022-03-28 19:53:03 +0000433 "packages/apps/Music":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000434
Yu Liu56ccb1a2022-11-12 10:47:07 -0800435 "prebuilts/abi-dumps/platform":/* recursive = */ true,
436 "prebuilts/abi-dumps/ndk":/* recursive = */ true,
Romain Jobredeaux29197972022-05-30 22:02:31 -0400437 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000438 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700439 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Yu Liu56ccb1a2022-11-12 10:47:07 -0800440 "prebuilts/clang-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000441 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000442 "prebuilts/build-tools":/* recursive = */ true,
Romain Jobredeauxd4e1a152023-03-17 11:02:01 -0400443 "prebuilts/jdk/jdk17":/* recursive = */ true,
Cole Faust7071a052022-07-29 15:58:33 -0700444 "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 +0000445 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000446 "prebuilts/sdk/tools":/* recursive = */ false,
447 "prebuilts/r8":/* recursive = */ false,
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000448 "prebuilts/runtime":/* recursive = */ false,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000449
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000450 // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
451 "tools/asuite/atest":/* recursive = */ false,
452 "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
Yu Liu828c4062023-01-23 20:56:46 +0000453
454 // TODO(b/266459895): remove this and the placeholder BUILD file after re-enabling libunwindstack
455 "external/rust/crates/rustc-demangle-capi":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000456 }
457
458 Bp2buildModuleAlwaysConvertList = []string{
Liz Kammer09d831e2022-09-16 09:02:26 -0400459 "libidmap2_policies",
460 "libSurfaceFlingerProp",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400461 // cc mainline modules
Liz Kammera7bea312023-05-04 09:51:56 -0400462
463 // com.android.media.swcodec
Vinh Tran2dbc7452022-09-29 10:49:07 -0400464 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400465 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400466 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400467 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400468 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400469 "com.android.media.swcodec.certificate",
470 "com.android.media.swcodec.key",
Liz Kammera7bea312023-05-04 09:51:56 -0400471 "test_com.android.media.swcodec",
472
473 // deps
474 "code_coverage.policy",
475 "code_coverage.policy.other",
476 "codec2_soft_exports",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400477 "flatbuffer_headers",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400478 "framework-connectivity-protos",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400479 "gemmlowp_headers",
480 "gl_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000481 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400482 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400483 "libaudioclient_aidl_conversion_util",
Vinh Tran9f6796a2022-08-16 13:10:31 -0400484 "libbinder",
485 "libbinder_device_interface_sources",
Vinh Tran444154d2022-08-16 13:10:31 -0400486 "libbinder_aidl",
Liz Kammer63367e12022-06-13 19:35:12 +0000487 "libbinder_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400488 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400489 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400490 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000491 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400492 "libcodec2_headers",
493 "libcodec2_internal",
494 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400495 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400496 "libgrallocusage",
497 "libgralloctypes",
498 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400499 "libneuralnetworks",
Sam Delmerico646dcfa2023-04-07 14:38:32 -0400500 "libneuralnetworks_static",
Vinh Tran99fd6502022-09-09 18:36:24 -0400501 "libgraphicsenv",
Liz Kammer63367e12022-06-13 19:35:12 +0000502 "libhardware",
Liz Kammer5068eae2022-05-11 17:24:29 -0400503 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400504 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400505 "libnativewindow_headers",
506 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400507 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400508 "libopus",
509 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000510 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700511 "libandroidio",
512 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400513 "libserviceutils",
Liz Kammer63367e12022-06-13 19:35:12 +0000514 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400515 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400516 "libtextclassifier_hash_headers",
517 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000518 "libtflite_kernel_utils",
519 "libtinyxml2",
Vinh Tran99fd6502022-09-09 18:36:24 -0400520 "libui",
Liz Kammer5068eae2022-05-11 17:24:29 -0400521 "libui-types",
Liz Kammer63367e12022-06-13 19:35:12 +0000522 "libui_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400523 "libvorbisidec",
524 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000525 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400526 "mediaswcodec.policy",
527 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400528 "neuralnetworks_types",
Vinh Tran99fd6502022-09-09 18:36:24 -0400529 "libneuralnetworks_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400530 // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
531 "packagemanager_aidl_interface",
Liz Kammer63367e12022-06-13 19:35:12 +0000532 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400533 "philox_random_headers",
534 "server_configurable_flags",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400535 "service-permission-streaming-proto-sources",
Vinh Tranf19b6582022-09-21 17:01:49 -0400536 "statslog_neuralnetworks.cpp",
537 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400538 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400539
Vinh Tran99fd6502022-09-09 18:36:24 -0400540 "libstagefright_bufferpool@2.0",
541 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400542 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400543
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000544 // prebuilts
545 "prebuilt_stats-log-api-gen",
546
Jingwen Chen9009dc22022-08-04 15:26:46 +0000547 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000548 "fastboot",
549 "libfastboot",
550 "liblp",
551 "libstorage_literals_headers",
552
Liz Kammerf0ab5462023-04-04 11:38:54 -0400553 "PluginCoreLib",
554 "dagger2",
555 "dagger2-android-annotation-stubs",
556 "dagger2-bootstrap-compiler",
557 "dagger2-producers",
558 "okio-lib",
559 "setupdesign-strings",
560
Sam Delmerico24c56032022-03-28 19:53:03 +0000561 //external/avb
562 "avbtool",
563 "libavb",
564 "avb_headers",
565
Alix5918d642022-06-27 20:57:44 +0000566 //external/libxml2
567 "xmllint",
568 "libxml2",
569
Sam Delmerico24c56032022-03-28 19:53:03 +0000570 //external/fec
571 "libfec_rs",
572
573 //system/core/libsparse
574 "libsparse",
575
576 //system/extras/ext4_utils
577 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700578 "mke2fs_conf",
Sam Delmerico24c56032022-03-28 19:53:03 +0000579
580 //system/extras/libfec
581 "libfec",
582
583 //system/extras/squashfs_utils
584 "libsquashfs_utils",
585
586 //system/extras/verity/fec
587 "fec",
Wei Li7d8f6182022-10-11 14:38:16 -0700588 "boot_signer",
Sam Delmerico24c56032022-03-28 19:53:03 +0000589
590 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
591 // genrule dependencies for java_imports
592 "car-ui-androidx-annotation-nodeps",
593 "car-ui-androidx-collection-nodeps",
594 "car-ui-androidx-core-common-nodeps",
595 "car-ui-androidx-lifecycle-common-nodeps",
596 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700597
598 //system/libhidl
Jingwen Chen263d4002023-03-29 07:15:10 +0000599 "libhidlbase", // needed by cc_hidl_library
600 "libhidl_gtest_helper",
Vinh Tran444154d2022-08-16 13:10:31 -0400601
602 //frameworks/native
603 "framework_native_aidl_binder",
604 "framework_native_aidl_gui",
605
606 //frameworks/native/libs/input
607 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400608
609 // needed for aidl_interface's ndk backend
610 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000611
612 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000613
614 // needed by liblogd
615 "ILogcatManagerService_aidl",
616 "libincremental_aidl-cpp",
617 "incremental_aidl",
Jingwen Chen2247aca2022-09-09 10:47:43 +0000618
619 //frameworks/native/cmds/cmd
620 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000621
622 //system/core/fs_mgr/libdm
623 "libdm",
624
625 //system/core/fs_mgr/libfiemap
626 "libfiemap_headers",
627 "libfiemap_passthrough_srcs",
628 "libfiemap_srcs",
629
630 //system/gsid
631 "libgsi",
632 "libgsi_headers",
633
634 //system/core/libkeyutils
635 "libkeyutils",
636
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000637 //bootable/recovery/otautil
638 "libotautil",
639
640 //system/vold
641 "libvold_headers",
642
643 //system/extras/libfscrypt
644 "libfscrypt",
645
646 //system/core/fs_mgr
647 "libfstab",
648
649 //bootable/recovery/fuse_sideload
650 "libfusesideload",
651
652 //system/core/fs_mgr/libfs_avb
653 "libfs_avb",
654
655 //system/core/fs_mgr
656 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700657
658 "libcodec2_hidl@1.0",
659 "libcodec2_hidl@1.1",
660 "libcodec2_hidl@1.2",
661 "libcodec2_hidl_plugin_stub",
662 "libcodec2_hidl_plugin",
663 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700664 "libGLESv2",
665 "libEGL",
666 "libcodec2_vndk",
667 "libnativeloader_lazy",
668 "libnativeloader",
669 "libEGL_getProcAddress",
670 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400671
Yu Liu8c981532022-09-27 12:47:26 -0700672 "mediaswcodec",
673 "libmedia_headers",
674 "libmedia_codecserviceregistrant",
675 "libsfplugin_ccodec_utils",
676 "libcodec2_soft_aacenc",
677 "libcodec2_soft_amrnbdec",
678 "libcodec2_soft_amrnbenc",
679 "libcodec2_soft_amrwbdec",
680 "libcodec2_soft_amrwbenc",
681 "libcodec2_soft_hevcdec",
682 "libcodec2_soft_hevcenc",
683 "libcodec2_soft_g711alawdec",
684 "libcodec2_soft_g711mlawdec",
685 "libcodec2_soft_mpeg2dec",
686 "libcodec2_soft_h263dec",
687 "libcodec2_soft_h263enc",
688 "libcodec2_soft_mpeg4dec",
689 "libcodec2_soft_mpeg4enc",
690 "libcodec2_soft_mp3dec",
691 "libcodec2_soft_vorbisdec",
692 "libcodec2_soft_opusdec",
693 "libcodec2_soft_opusenc",
694 "libcodec2_soft_vp8dec",
695 "libcodec2_soft_vp9dec",
696 "libcodec2_soft_av1dec_gav1",
697 "libcodec2_soft_vp8enc",
698 "libcodec2_soft_vp9enc",
699 "libcodec2_soft_rawdec",
700 "libcodec2_soft_flacdec",
701 "libcodec2_soft_flacenc",
702 "libcodec2_soft_gsmdec",
703 "libcodec2_soft_avcdec",
704 "libcodec2_soft_avcenc",
705 "libcodec2_soft_aacdec",
706 "libcodec2_soft_common",
Alix8062f4d2022-11-14 21:38:07 +0000707
708 // kotlin srcs in java libs
Alix8062f4d2022-11-14 21:38:07 +0000709 "kotlinx_atomicfu",
Alix7c8eaeb2022-11-16 15:44:55 +0000710
711 // kotlin srcs in java binary
712 "AnalyzerKt",
713 "trebuchet-core",
Alix36795a72023-01-20 16:10:52 +0000714
715 // kotlin srcs in android_library
716 "renderscript_toolkit",
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500717
718 //kotlin srcs in android_binary
719 "MusicKotlin",
Zi Wang75a38e72023-02-15 22:52:47 -0800720
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -0500721 // java_library with prebuilt sdk_version
722 "android-common",
723
Zi Wang75a38e72023-02-15 22:52:47 -0800724 // checked in current.txt for merged_txts
725 "non-updatable-current.txt",
726 "non-updatable-system-current.txt",
727 "non-updatable-module-lib-current.txt",
728 "non-updatable-system-server-current.txt",
Zi Wangb31a8332023-03-06 15:21:35 -0800729
730 // for api_fingerprint.txt generation
731 "api_fingerprint",
Alixf848bf82023-03-06 19:43:55 +0000732
733 // allowlisting for kotlinx_coroutines
Liz Kammerf0ab5462023-04-04 11:38:54 -0400734 "annotations",
735 "kotlinx-coroutines-android-annotation-stubs",
736 "kotlinx-coroutines-core",
Alixf848bf82023-03-06 19:43:55 +0000737 "kotlinx_coroutines",
Romain Jobredeauxe7370ea2023-04-04 10:30:14 -0400738 "kotlinx_coroutines-device",
739 "kotlinx_coroutines-host",
Sam Delmerico9d71a842023-03-16 16:24:54 -0400740
741 // for building com.android.neuralnetworks
742 "libimapper_stablec",
743 "libimapper_providerutils",
Alixe5085eb2023-01-31 19:38:41 +0000744
745 // min_sdk_version in android_app
746 "CtsShimUpgrade",
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400747
Liz Kammerf0ab5462023-04-04 11:38:54 -0400748 "art_cmdlineparser_headers",
749
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400750 // Mainline Module Apps
751 "CaptivePortalLogin",
Sam Delmericobefbf052023-04-28 11:23:58 -0400752
753 "libstagefright_headers",
Sam Delmerico24c56032022-03-28 19:53:03 +0000754 }
755
756 Bp2buildModuleTypeAlwaysConvertList = []string{
Spandan Dasd58630f2022-09-08 01:04:22 +0000757 "aidl_interface_headers",
Zi Wangb2179e32023-01-31 15:53:30 -0800758 "bpf",
Zi Wang75a38e72023-02-15 22:52:47 -0800759 "combined_apis",
Sasha Smundak8bea2672022-08-04 13:31:14 -0700760 "license",
Liz Kammer45faf8f2022-06-02 16:00:54 -0400761 "linker_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000762 "java_import",
763 "java_import_host",
Zi Wangb2179e32023-01-31 15:53:30 -0800764 "java_sdk_library",
Trevor Radcliffead3d1232022-09-01 16:25:10 +0000765 "sysprop_library",
Sam Delmerico24c56032022-03-28 19:53:03 +0000766 }
767
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000768 // Add the names of modules that bp2build should never convert, if it is
769 // in the package allowlist. An error will be thrown if a module must
770 // not be here and in the alwaysConvert lists.
771 //
772 // For prebuilt modules (e.g. android_library_import), remember to add
773 // the "prebuilt_" prefix to the name, so that it's differentiable from
774 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +0000775 Bp2buildModuleDoNotConvertList = []string{
Vinh Tran220fb8b2022-10-04 12:04:17 -0400776 // Depends on unconverted libandroid, libgui
777 "dvr_buffer_queue-test",
778 "dvr_display-test",
779 // Depends on unconverted libchrome
780 "pdx_benchmarks",
781 "buffer_hub_queue-test",
782 "buffer_hub_queue_producer-test",
783
Sam Delmerico24c56032022-03-28 19:53:03 +0000784 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +0000785
786 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +0000787 "logtagd.rc",
788
Sam Delmerico24c56032022-03-28 19:53:03 +0000789 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +0000790
791 // TODO(b/202876379): has arch-variant static_executable
792 "linkerconfig",
793 "mdnsd",
794 "libcutils_test_static",
795 "KernelLibcutilsTest",
796
Liz Kammerf0ab5462023-04-04 11:38:54 -0400797 "linker", // TODO(b/228316882): cc_binary uses link_crt
798 "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
799 "tjbench", // TODO(b/240563612): Stem property
800
801 // requires host tools for apexer
802 "apexer_test", "apexer_test_host_tools", "host_apex_verifier",
Sam Delmerico24c56032022-03-28 19:53:03 +0000803
804 // java bugs
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -0500805 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
806 "bouncycastle", // TODO(b/274474005): Need support for custom system_modules.
Sam Delmerico24c56032022-03-28 19:53:03 +0000807
808 // python protos
Cole Faust53b62092022-05-12 15:37:02 -0700809 "libprotobuf-python", // Has a handcrafted alternative
Sam Delmerico24c56032022-03-28 19:53:03 +0000810
811 // genrule incompatibilities
812 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
813 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
814
815 // aar support
Chris Parsons9f0e5522022-12-08 14:12:54 -0500816 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000817 // ERROR: The dependencies for the following 1 jar(s) are not complete.
818 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
819 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +0000820
821 // path property for filegroups
822 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
823 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
824 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000825 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
826 "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
827 "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico79985812022-03-23 20:20:42 +0000828 "auto_value_plugin_resources", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000829
830 // go deps:
Jingwen Chenf50817d2022-09-21 06:46:08 +0000831 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
Cole Faustd82f0362023-04-12 17:32:19 -0700832 "analyze_bcpf_test", // depends on bpmodify a blueprint_go_binary.
Jingwen Chenf50817d2022-09-21 06:46:08 +0000833 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
834 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000835
836 // 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
837 "robolectric_tzdata",
Sam Delmerico24c56032022-03-28 19:53:03 +0000838
839 // rust support
840 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
841
842 // unconverted deps
Cole Faustd82f0362023-04-12 17:32:19 -0700843 "apexer_with_DCLA_preprocessing_test", // depends on unconverted modules: apexer_test_host_tools, com.android.example.apex
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000844 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
845 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
846 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
Cole Faustd82f0362023-04-12 17:32:19 -0700847 "apex_compression_test", // depends on unconverted modules: soong_zip, com.android.example.apex
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000848 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
849 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
850 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
Cole Faustd82f0362023-04-12 17:32:19 -0700851 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
Sam Delmerico24c56032022-03-28 19:53:03 +0000852 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
Sam Delmerico24c56032022-03-28 19:53:03 +0000853 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
854 "dex2oat-script", // depends on unconverted modules: dex2oat
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000855 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
856 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
Sam Delmerico24c56032022-03-28 19:53:03 +0000857 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400858 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -0400859 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +0000860 "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
861 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
862 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -0400863 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
864 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Sam Delmerico24c56032022-03-28 19:53:03 +0000865 "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
866 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +0000867 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +0000868 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
869 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +0000870 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
871 "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
872 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
873 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
874 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
875 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
Vinh Tranc3873e82022-08-23 20:33:25 -0400876 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +0000877 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
878 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
Sam Delmerico847178f2022-12-15 09:36:35 -0500879 "malloc-rss-benchmark", // depends on unconverted modules: libmeminfo
Sam Delmerico24c56032022-03-28 19:53:03 +0000880 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
Cole Faustd82f0362023-04-12 17:32:19 -0700881 "releasetools_test", // depends on unconverted modules: com.android.apex.compressed.v1
Vinh Tranf19b6582022-09-21 17:01:49 -0400882 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
883 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
884 "test_fips", // depends on unconverted modules: adb
885 "timezone-host", // depends on unconverted modules: art.module.api.annotations
886 "truth-host-prebuilt", // depends on unconverted modules: truth-prebuilt
887 "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 +0000888
Jingwen Chen5012e072022-08-04 15:04:43 +0000889 // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
890 "toybox-static",
Wei Li81852ca2022-07-27 00:22:06 -0700891
Liz Kammer09d831e2022-09-16 09:02:26 -0400892 // aidl files not created
893 "overlayable_policy_aidl_interface",
894
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000895 //prebuilts/tools/common/m2
896 // depends on //external/okio:okio-lib, which uses kotlin
897 "wire-runtime",
898
Jingwen Chena0519422022-09-28 08:01:57 +0000899 // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
900 "minadbd",
901
902 // depends on android.hardware.health-V2.0-java
903 "android.hardware.health-translate-java",
904
Jingwen Chen263d4002023-03-29 07:15:10 +0000905 //system/libvintf
906 // depends on apex-info-list-tinyxml, unconverted xsd_config Soong module type.
907 "libvintf",
908 "vintf",
909 "libassemblevintf",
910 "assemble_vintf",
911 "libvintffm",
912 "vintffm",
913 "checkvintf",
914
915 // depends on audio_policy_configuration_aidl_default, xsd_config module.
916 "libaudioserviceexampleimpl",
917 "android.hardware.audio.service-aidl.example",
918
919 // depends on //system/tools/aidl/build:aidl_metadata_json, which is an aidl_interfaces_metadata custom Soong type.
920 "aidl_metadata_in_cpp",
921 "libaidlmetadata",
Jingwen Chen29c45612023-03-30 05:17:01 +0000922 "libaidlmetadata_test",
Jingwen Chen263d4002023-03-29 07:15:10 +0000923
924 // depends on //system/tools/hidl/build:hidl_metadata_json, which is an hidl_interfaces_metadata custom Soong type.
925 "hidl_metadata_in_cpp",
926 "libhidlmetadata",
Jingwen Chen29c45612023-03-30 05:17:01 +0000927 "hidl_metadata_test",
Jingwen Chen263d4002023-03-29 07:15:10 +0000928
Jingwen Chen537242c2022-08-24 11:53:27 +0000929 // cc_test related.
Jingwen Chenb5edbf92023-03-20 13:17:49 +0000930 // b/274164834 "Could not open Configuration file test.cfg"
931 "svcenc", "svcdec",
932
Jingwen Chen537242c2022-08-24 11:53:27 +0000933 // Failing host cc_tests
934 "memunreachable_unit_test",
935 "libprocinfo_test",
936 "ziparchive-tests",
937 "gtest_isolated_tests",
938 "libunwindstack_unit_test",
939 "task_profiles_test",
940 "power_tests", // failing test on server, but not on host
941
942 // reflect: call of reflect.Value.NumField on interface Value
943 // affects all cc_tests that depend on art_defaults
944 "libnativebridge-tests",
945 "libnativeloader_test",
946 "art_libnativebridge_cts_tests",
947 "art_standalone_libdexfile_external_tests",
948 "art_standalone_libdexfile_support_tests",
949 "libnativebridge-lazy-tests",
950 "libnativebridge-test-case",
951 "libnativebridge2-test-case",
952 "libnativebridge3-test-case",
953 "libnativebridge6-test-case",
954 "libnativebridge6prezygotefork",
955
Liz Kammer09d831e2022-09-16 09:02:26 -0400956 "libandroidfw_tests", "aapt2_tests", // failing due to data path issues
957
Jingwen Chena485d092023-04-20 12:34:08 +0000958 // error: overriding commands for target
959 // `out/host/linux-x86/nativetest64/gmock_tests/gmock_tests__cc_runner_test',
960 // previously defined at out/soong/installs-aosp_arm.mk:64919`
961 "gmock_tests",
962
Jingwen Chen537242c2022-08-24 11:53:27 +0000963 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
964 "AMRWBEncTest",
Sam Delmericobefbf052023-04-28 11:23:58 -0400965 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
966 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
967 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
968 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
969 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
Jingwen Chen537242c2022-08-24 11:53:27 +0000970 "avcdec",
971 "avcenc",
972 "bionic-benchmarks-tests",
973 "bionic-fortify-runtime-asan-test",
974 "bionic-stress-tests",
975 "bionic-unit-tests",
976 "bionic-unit-tests-glibc",
977 "bionic-unit-tests-static",
978 "boringssl_crypto_test",
979 "boringssl_ssl_test",
980 "cfi_test_helper",
981 "cfi_test_helper2",
982 "cintltst32",
983 "cintltst64",
984 "compare",
985 "cpuid",
986 "debuggerd_test", // depends on unconverted modules: libdebuggerd
987 "elftls_dlopen_ie_error_helper",
988 "exec_linker_helper",
989 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
990 "fdtrack_test",
991 "google-benchmark-test",
992 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
993 "gtest-typed-test_test",
994 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
995 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
996 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
997 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
998 "gtest_tests",
999 "gtest_tests_no_main",
1000 "gwp_asan_unittest",
1001 "half_test",
1002 "hashcombine_test",
1003 "hevcdec",
1004 "hevcenc",
1005 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
1006 "i444tonv12_eg",
1007 "icu4c_sample_break",
1008 "intltest32",
1009 "intltest64",
1010 "ion-unit-tests",
1011 "jemalloc5_integrationtests",
1012 "jemalloc5_unittests",
1013 "ld_config_test_helper",
1014 "ld_preload_test_helper",
1015 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
1016 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
1017 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
Jingwen Chen537242c2022-08-24 11:53:27 +00001018 "libcutils_sockets_test",
1019 "libexpectedutils_test",
1020 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +00001021 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +00001022 "libminijail_test",
1023 "libminijail_unittest_gtest",
1024 "libpackagelistparser_test",
1025 "libprotobuf_vendor_suffix_test",
1026 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
1027 "libstagefright_amrnbenc_test",
1028 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
1029 "libstagefright_m4vh263enc_test",
1030 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
1031 "libstatssocket_test",
1032 "libvndksupport-tests",
1033 "libyuv_unittest",
1034 "linker-unit-tests",
1035 "malloc_debug_system_tests",
1036 "malloc_debug_unit_tests",
1037 "malloc_hooks_system_tests",
1038 "mat_test",
1039 "mathtest",
1040 "memunreachable_binder_test", // depends on unconverted modules: libbinder
1041 "memunreachable_test",
1042 "metadata_tests",
1043 "minijail0_cli_unittest_gtest",
1044 "mpeg2dec",
1045 "mvcdec",
1046 "ns_hidden_child_helper",
1047 "pngtest",
1048 "preinit_getauxval_test_helper",
1049 "preinit_syscall_test_helper",
1050 "psnr",
1051 "quat_test",
1052 "rappor-tests", // depends on unconverted modules: jsr305, guava
1053 "scudo_unit_tests",
1054 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
1055 "syscall_filter_unittest_gtest",
1056 "sysprop_test", // depends on unconverted modules: libcom.android.sysprop.tests
1057 "thread_exit_cb_helper",
1058 "tls_properties_helper",
1059 "ulp",
1060 "vec_test",
1061 "yuvconstants",
1062 "yuvconvert",
1063 "zipalign_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +00001064
1065 // cc_test_library
1066 "clang_diagnostic_tests",
1067 "exec_linker_helper_lib",
1068 "fortify_disabled_for_tidy",
1069 "ld_config_test_helper_lib1",
1070 "ld_config_test_helper_lib2",
1071 "ld_config_test_helper_lib3",
1072 "ld_preload_test_helper_lib1",
1073 "ld_preload_test_helper_lib2",
1074 "libBionicElfTlsLoaderTests",
1075 "libBionicElfTlsTests",
1076 "libBionicElfTlsTests",
1077 "libBionicFramePointerTests",
1078 "libBionicFramePointerTests",
1079 "libBionicStandardTests",
1080 "libBionicStandardTests",
1081 "libBionicTests",
1082 "libart-broken",
1083 "libatest_simple_zip",
1084 "libcfi-test",
1085 "libcfi-test-bad",
1086 "libcrash_test",
Liz Kammerf6275092023-04-11 11:06:07 -04001087 "libcrypto_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001088 "libdl_preempt_test_1",
1089 "libdl_preempt_test_2",
1090 "libdl_test_df_1_global",
1091 "libdlext_test",
1092 "libdlext_test_different_soname",
1093 "libdlext_test_fd",
1094 "libdlext_test_norelro",
1095 "libdlext_test_recursive",
1096 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -04001097 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001098 "libfortify1-new-tests-clang",
1099 "libfortify1-new-tests-clang",
1100 "libfortify1-tests-clang",
1101 "libfortify1-tests-clang",
1102 "libfortify2-new-tests-clang",
1103 "libfortify2-new-tests-clang",
1104 "libfortify2-tests-clang",
1105 "libfortify2-tests-clang",
1106 "libgnu-hash-table-library",
1107 "libicutest_static",
1108 "liblinker_reloc_bench_000",
1109 "liblinker_reloc_bench_001",
1110 "liblinker_reloc_bench_002",
1111 "liblinker_reloc_bench_003",
1112 "liblinker_reloc_bench_004",
1113 "liblinker_reloc_bench_005",
1114 "liblinker_reloc_bench_006",
1115 "liblinker_reloc_bench_007",
1116 "liblinker_reloc_bench_008",
1117 "liblinker_reloc_bench_009",
1118 "liblinker_reloc_bench_010",
1119 "liblinker_reloc_bench_011",
1120 "liblinker_reloc_bench_012",
1121 "liblinker_reloc_bench_013",
1122 "liblinker_reloc_bench_014",
1123 "liblinker_reloc_bench_015",
1124 "liblinker_reloc_bench_016",
1125 "liblinker_reloc_bench_017",
1126 "liblinker_reloc_bench_018",
1127 "liblinker_reloc_bench_019",
1128 "liblinker_reloc_bench_020",
1129 "liblinker_reloc_bench_021",
1130 "liblinker_reloc_bench_022",
1131 "liblinker_reloc_bench_023",
1132 "liblinker_reloc_bench_024",
1133 "liblinker_reloc_bench_025",
1134 "liblinker_reloc_bench_026",
1135 "liblinker_reloc_bench_027",
1136 "liblinker_reloc_bench_028",
1137 "liblinker_reloc_bench_029",
1138 "liblinker_reloc_bench_030",
1139 "liblinker_reloc_bench_031",
1140 "liblinker_reloc_bench_032",
1141 "liblinker_reloc_bench_033",
1142 "liblinker_reloc_bench_034",
1143 "liblinker_reloc_bench_035",
1144 "liblinker_reloc_bench_036",
1145 "liblinker_reloc_bench_037",
1146 "liblinker_reloc_bench_038",
1147 "liblinker_reloc_bench_039",
1148 "liblinker_reloc_bench_040",
1149 "liblinker_reloc_bench_041",
1150 "liblinker_reloc_bench_042",
1151 "liblinker_reloc_bench_043",
1152 "liblinker_reloc_bench_044",
1153 "liblinker_reloc_bench_045",
1154 "liblinker_reloc_bench_046",
1155 "liblinker_reloc_bench_047",
1156 "liblinker_reloc_bench_048",
1157 "liblinker_reloc_bench_049",
1158 "liblinker_reloc_bench_050",
1159 "liblinker_reloc_bench_051",
1160 "liblinker_reloc_bench_052",
1161 "liblinker_reloc_bench_053",
1162 "liblinker_reloc_bench_054",
1163 "liblinker_reloc_bench_055",
1164 "liblinker_reloc_bench_056",
1165 "liblinker_reloc_bench_057",
1166 "liblinker_reloc_bench_058",
1167 "liblinker_reloc_bench_059",
1168 "liblinker_reloc_bench_060",
1169 "liblinker_reloc_bench_061",
1170 "liblinker_reloc_bench_062",
1171 "liblinker_reloc_bench_063",
1172 "liblinker_reloc_bench_064",
1173 "liblinker_reloc_bench_065",
1174 "liblinker_reloc_bench_066",
1175 "liblinker_reloc_bench_067",
1176 "liblinker_reloc_bench_068",
1177 "liblinker_reloc_bench_069",
1178 "liblinker_reloc_bench_070",
1179 "liblinker_reloc_bench_071",
1180 "liblinker_reloc_bench_072",
1181 "liblinker_reloc_bench_073",
1182 "liblinker_reloc_bench_074",
1183 "liblinker_reloc_bench_075",
1184 "liblinker_reloc_bench_076",
1185 "liblinker_reloc_bench_077",
1186 "liblinker_reloc_bench_078",
1187 "liblinker_reloc_bench_079",
1188 "liblinker_reloc_bench_080",
1189 "liblinker_reloc_bench_081",
1190 "liblinker_reloc_bench_082",
1191 "liblinker_reloc_bench_083",
1192 "liblinker_reloc_bench_084",
1193 "liblinker_reloc_bench_085",
1194 "liblinker_reloc_bench_086",
1195 "liblinker_reloc_bench_087",
1196 "liblinker_reloc_bench_088",
1197 "liblinker_reloc_bench_089",
1198 "liblinker_reloc_bench_090",
1199 "liblinker_reloc_bench_091",
1200 "liblinker_reloc_bench_092",
1201 "liblinker_reloc_bench_093",
1202 "liblinker_reloc_bench_094",
1203 "liblinker_reloc_bench_095",
1204 "liblinker_reloc_bench_096",
1205 "liblinker_reloc_bench_097",
1206 "liblinker_reloc_bench_098",
1207 "liblinker_reloc_bench_099",
1208 "liblinker_reloc_bench_100",
1209 "liblinker_reloc_bench_101",
1210 "liblinker_reloc_bench_102",
1211 "liblinker_reloc_bench_103",
1212 "liblinker_reloc_bench_104",
1213 "liblinker_reloc_bench_105",
1214 "liblinker_reloc_bench_106",
1215 "liblinker_reloc_bench_107",
1216 "liblinker_reloc_bench_108",
1217 "liblinker_reloc_bench_109",
1218 "liblinker_reloc_bench_110",
1219 "liblinker_reloc_bench_111",
1220 "liblinker_reloc_bench_112",
1221 "liblinker_reloc_bench_113",
1222 "liblinker_reloc_bench_114",
1223 "liblinker_reloc_bench_115",
1224 "liblinker_reloc_bench_116",
1225 "liblinker_reloc_bench_117",
1226 "liblinker_reloc_bench_118",
1227 "liblinker_reloc_bench_119",
1228 "liblinker_reloc_bench_120",
1229 "liblinker_reloc_bench_121",
1230 "liblinker_reloc_bench_122",
1231 "liblinker_reloc_bench_123",
1232 "liblinker_reloc_bench_124",
1233 "liblinker_reloc_bench_125",
1234 "liblinker_reloc_bench_126",
1235 "liblinker_reloc_bench_127",
1236 "liblinker_reloc_bench_128",
1237 "liblinker_reloc_bench_129",
1238 "liblinker_reloc_bench_130",
1239 "liblinker_reloc_bench_131",
1240 "liblinker_reloc_bench_132",
1241 "liblinker_reloc_bench_133",
1242 "liblinker_reloc_bench_134",
1243 "liblinker_reloc_bench_135",
1244 "liblinker_reloc_bench_136",
1245 "liblinker_reloc_bench_137",
1246 "liblinker_reloc_bench_138",
1247 "liblinker_reloc_bench_139",
1248 "liblinker_reloc_bench_140",
1249 "liblinker_reloc_bench_141",
1250 "liblinker_reloc_bench_142",
1251 "liblinker_reloc_bench_143",
1252 "liblinker_reloc_bench_144",
1253 "liblinker_reloc_bench_145",
1254 "liblinker_reloc_bench_146",
1255 "liblinker_reloc_bench_147",
1256 "liblinker_reloc_bench_148",
1257 "liblinker_reloc_bench_149",
1258 "liblinker_reloc_bench_150",
1259 "liblinker_reloc_bench_151",
1260 "liblinker_reloc_bench_152",
1261 "liblinker_reloc_bench_153",
1262 "liblinker_reloc_bench_154",
1263 "liblinker_reloc_bench_155",
1264 "liblinker_reloc_bench_156",
1265 "liblinker_reloc_bench_157",
1266 "liblinker_reloc_bench_158",
1267 "liblinker_reloc_bench_159",
1268 "liblinker_reloc_bench_160",
1269 "liblinker_reloc_bench_161",
1270 "liblinker_reloc_bench_162",
1271 "liblinker_reloc_bench_163",
1272 "liblinker_reloc_bench_164",
1273 "liblinker_reloc_bench_165",
1274 "liblinker_reloc_bench_166",
1275 "liblinker_reloc_bench_167",
1276 "liblinker_reloc_bench_168",
1277 "libns_hidden_child_app",
1278 "libns_hidden_child_global",
1279 "libns_hidden_child_internal",
1280 "libns_hidden_child_public",
1281 "libnstest_dlopened",
1282 "libnstest_ns_a_public1",
1283 "libnstest_ns_a_public1_internal",
1284 "libnstest_ns_b_public2",
1285 "libnstest_ns_b_public3",
1286 "libnstest_private",
1287 "libnstest_private_external",
1288 "libnstest_public",
1289 "libnstest_public_internal",
1290 "libnstest_root",
1291 "libnstest_root_not_isolated",
1292 "librelocations-ANDROID_REL",
1293 "librelocations-ANDROID_RELR",
1294 "librelocations-RELR",
1295 "librelocations-fat",
1296 "libsegment_gap_inner",
1297 "libsegment_gap_outer",
Liz Kammerf6275092023-04-11 11:06:07 -04001298 "libssl_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001299 "libstatssocket_private",
1300 "libsysv-hash-table-library",
1301 "libtest_atexit",
1302 "libtest_check_order_dlsym",
1303 "libtest_check_order_dlsym_1_left",
1304 "libtest_check_order_dlsym_2_right",
1305 "libtest_check_order_dlsym_3_c",
1306 "libtest_check_order_dlsym_a",
1307 "libtest_check_order_dlsym_b",
1308 "libtest_check_order_dlsym_d",
1309 "libtest_check_order_reloc_root",
1310 "libtest_check_order_reloc_root_1",
1311 "libtest_check_order_reloc_root_2",
1312 "libtest_check_order_reloc_siblings",
1313 "libtest_check_order_reloc_siblings_1",
1314 "libtest_check_order_reloc_siblings_2",
1315 "libtest_check_order_reloc_siblings_3",
1316 "libtest_check_order_reloc_siblings_a",
1317 "libtest_check_order_reloc_siblings_b",
1318 "libtest_check_order_reloc_siblings_c",
1319 "libtest_check_order_reloc_siblings_c_1",
1320 "libtest_check_order_reloc_siblings_c_2",
1321 "libtest_check_order_reloc_siblings_d",
1322 "libtest_check_order_reloc_siblings_e",
1323 "libtest_check_order_reloc_siblings_f",
1324 "libtest_check_rtld_next_from_library",
1325 "libtest_dlopen_df_1_global",
1326 "libtest_dlopen_from_ctor",
1327 "libtest_dlopen_from_ctor_main",
1328 "libtest_dlopen_weak_undefined_func",
1329 "libtest_dlsym_df_1_global",
1330 "libtest_dlsym_from_this",
1331 "libtest_dlsym_from_this_child",
1332 "libtest_dlsym_from_this_grandchild",
1333 "libtest_dlsym_weak_func",
1334 "libtest_dt_runpath_a",
1335 "libtest_dt_runpath_b",
1336 "libtest_dt_runpath_c",
1337 "libtest_dt_runpath_d",
1338 "libtest_dt_runpath_d_zip",
1339 "libtest_dt_runpath_x",
1340 "libtest_dt_runpath_y",
1341 "libtest_elftls_dynamic",
1342 "libtest_elftls_dynamic_filler_1",
1343 "libtest_elftls_dynamic_filler_2",
1344 "libtest_elftls_dynamic_filler_3",
1345 "libtest_elftls_shared_var",
1346 "libtest_elftls_shared_var_ie",
1347 "libtest_elftls_tprel",
1348 "libtest_empty",
1349 "libtest_ifunc",
1350 "libtest_ifunc_variable",
1351 "libtest_ifunc_variable_impl",
1352 "libtest_indirect_thread_local_dtor",
1353 "libtest_init_fini_order_child",
1354 "libtest_init_fini_order_grand_child",
1355 "libtest_init_fini_order_root",
1356 "libtest_init_fini_order_root2",
1357 "libtest_missing_symbol",
1358 "libtest_missing_symbol_child_private",
1359 "libtest_missing_symbol_child_public",
1360 "libtest_missing_symbol_root",
1361 "libtest_nodelete_1",
1362 "libtest_nodelete_2",
1363 "libtest_nodelete_dt_flags_1",
1364 "libtest_pthread_atfork",
1365 "libtest_relo_check_dt_needed_order",
1366 "libtest_relo_check_dt_needed_order_1",
1367 "libtest_relo_check_dt_needed_order_2",
1368 "libtest_simple",
1369 "libtest_thread_local_dtor",
1370 "libtest_thread_local_dtor2",
1371 "libtest_two_parents_child",
1372 "libtest_two_parents_parent1",
1373 "libtest_two_parents_parent2",
1374 "libtest_versioned_lib",
1375 "libtest_versioned_libv1",
1376 "libtest_versioned_libv2",
1377 "libtest_versioned_otherlib",
1378 "libtest_versioned_otherlib_empty",
1379 "libtest_versioned_uselibv1",
1380 "libtest_versioned_uselibv2",
1381 "libtest_versioned_uselibv2_other",
1382 "libtest_versioned_uselibv3_other",
1383 "libtest_with_dependency",
1384 "libtest_with_dependency_loop",
1385 "libtest_with_dependency_loop_a",
1386 "libtest_with_dependency_loop_b",
1387 "libtest_with_dependency_loop_b_tmp",
1388 "libtest_with_dependency_loop_c",
1389 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001390
1391 // depends on unconverted libprotobuf-java-nano
1392 "dnsresolverprotosnano",
1393 "launcherprotosnano",
1394 "datastallprotosnano",
1395 "devicepolicyprotosnano",
Wei Li7d8f6182022-10-11 14:38:16 -07001396 "ota_metadata_proto_java",
1397 "merge_ota",
1398
1399 // releasetools
1400 "releasetools_fsverity_metadata_generator",
1401 "verity_utils",
1402 "check_ota_package_signature",
1403 "check_target_files_vintf",
1404 "releasetools_check_target_files_vintf",
1405 "releasetools_verity_utils",
1406 "build_image",
1407 "ota_from_target_files",
1408 "releasetools_ota_from_target_files",
1409 "releasetools_build_image",
1410 "add_img_to_target_files",
1411 "releasetools_add_img_to_target_files",
1412 "fsverity_metadata_generator",
1413 "sign_target_files_apks",
1414
1415 // depends on the support of yacc file
1416 "libapplypatch",
1417 "libapplypatch_modes",
1418 "applypatch",
Yu Liu6c999ef2022-10-19 16:41:10 +00001419
1420 // TODO(b/254476335): disable the following due to this bug
1421 "libapexinfo",
1422 "libapexinfo_tests",
Colin Cross20c89f12022-12-05 16:47:44 -08001423
1424 // uses glob in $(locations)
1425 "libc_musl_sysroot",
Kevin Dagostino2c3be412023-02-07 04:10:27 +00001426
1427 // TODO(b/266459895): depends on libunwindstack
1428 "libutils_test",
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001429
Cole Faustd82f0362023-04-12 17:32:19 -07001430 // Has dependencies on other tools like ziptool, bp2build'd data properties don't work with these tests atm
1431 "ziparchive_tests_large",
1432 "mkbootimg_test",
1433 "certify_bootimg_test",
1434
1435 // Despite being _host module types, these require devices to run
1436 "logd_integration_test",
1437 "mobly-hello-world-test",
1438 "mobly-multidevice-test",
1439
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001440 // TODO(b/274805756): Support core_platform and current java APIs
1441 "fake-framework",
1442
1443 // TODO(b/277616982): These modules depend on private java APIs, but maybe they don't need to.
1444 "StreamingProtoTest",
1445 "textclassifierprotoslite",
1446 "styleprotoslite",
1447 "CtsPkgInstallerConstants",
1448 "guava-android-testlib",
Sam Delmericobefbf052023-04-28 11:23:58 -04001449
1450 "MetaDataBaseUnitTest", // depends on libstagefright
1451 "AVCUtilsUnitTest", // depends on libstagefright
1452 "ColorUtilsTest", // depends on libmediandk
Wei Li74e3e002023-04-26 12:15:55 -07001453
1454 // python_test_host with test data
1455 "sbom_writers_test",
Sam Delmerico24c56032022-03-28 19:53:03 +00001456 }
1457
Sam Delmerico24c56032022-03-28 19:53:03 +00001458 MixedBuildsDisabledList = []string{
Liz Kammer63367e12022-06-13 19:35:12 +00001459 "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
1460
Sam Delmerico24c56032022-03-28 19:53:03 +00001461 "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
1462
1463 "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
1464 "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.
1465
1466 "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
1467 "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
1468 "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
1469
1470 // Depends on libprotobuf-cpp-*
1471 "libadb_pairing_connection",
1472 "libadb_pairing_connection_static",
1473 "libadb_pairing_server", "libadb_pairing_server_static",
1474
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxa56e9702022-02-23 18:39:59 -05001475 // TODO(b/240563612) Needing `stem` selection support for cc_binary
Sam Delmerico24c56032022-03-28 19:53:03 +00001476 "crasher",
Sam Delmerico277795c2022-02-25 17:04:37 +00001477
1478 // java_import[_host] issues
1479 // tradefed prebuilts depend on libprotobuf
1480 "prebuilt_tradefed",
1481 "prebuilt_tradefed-test-framework",
1482 // handcrafted BUILD.bazel files in //prebuilts/...
1483 "prebuilt_r8lib-prebuilt",
1484 "prebuilt_sdk-core-lambda-stubs",
1485 "prebuilt_android-support-collections-nodeps",
1486 "prebuilt_android-arch-core-common-nodeps",
1487 "prebuilt_android-arch-lifecycle-common-java8-nodeps",
1488 "prebuilt_android-arch-lifecycle-common-nodeps",
1489 "prebuilt_android-support-annotations-nodeps",
1490 "prebuilt_android-arch-paging-common-nodeps",
1491 "prebuilt_android-arch-room-common-nodeps",
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001492 // TODO(b/217750501) exclude_dirs property not supported
1493 "prebuilt_kotlin-reflect",
1494 "prebuilt_kotlin-stdlib",
1495 "prebuilt_kotlin-stdlib-jdk7",
1496 "prebuilt_kotlin-stdlib-jdk8",
1497 "prebuilt_kotlin-test",
1498 // TODO(b/217750501) exclude_files property not supported
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001499 "prebuilt_currysrc_org.eclipse",
Yu Liu828c4062023-01-23 20:56:46 +00001500
1501 // TODO(b/266459895): re-enable libunwindstack
1502 "libunwindstack",
1503 "libunwindstack_stdout_log",
1504 "libunwindstack_no_dex",
1505 "libunwindstack_utils",
1506 "unwind_reg_info",
1507 "libunwindstack_local",
1508 "unwind_for_offline",
1509 "unwind",
1510 "unwind_info",
1511 "unwind_symbols",
Yu Liu828c4062023-01-23 20:56:46 +00001512 "libEGL",
Yu Liu828c4062023-01-23 20:56:46 +00001513 "libGLESv2",
Liz Kammerf2355052023-03-22 11:14:34 -04001514 "libc_malloc_debug",
1515 "libcodec2_hidl@1.0",
Yu Liu828c4062023-01-23 20:56:46 +00001516 "libcodec2_hidl@1.1",
Yu Liu828c4062023-01-23 20:56:46 +00001517 "libcodec2_hidl@1.2",
Liz Kammerf2355052023-03-22 11:14:34 -04001518 "libfdtrack",
1519 "libgui",
1520 "libgui_bufferqueue_static",
1521 "libmedia_codecserviceregistrant",
1522 "libstagefright_bufferqueue_helper_novndk",
Yu Liu828c4062023-01-23 20:56:46 +00001523 "libutils_test",
1524 "libutilscallstack",
Liz Kammerf2355052023-03-22 11:14:34 -04001525 "mediaswcodec",
Sam Delmerico24c56032022-03-28 19:53:03 +00001526 }
Chris Parsonsef615e52022-08-18 22:04:11 -04001527
Chris Parsons66fc7452022-11-04 13:26:17 -04001528 // Bazel prod-mode allowlist. Modules in this list are built by Bazel
1529 // in either prod mode or staging mode.
Jingwen Chen889f2f22022-12-16 08:16:01 +00001530 ProdMixedBuildsEnabledList = []string{
Jingwen Chen01addfc2023-03-13 12:49:52 +00001531 // M5: tzdata launch
Jingwen Chen889f2f22022-12-16 08:16:01 +00001532 "com.android.tzdata",
1533 "test1_com.android.tzdata",
Jingwen Chen61342112023-04-11 08:49:01 +00001534 "test3_com.android.tzdata",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001535 // M7: adbd launch
Jingwen Chen98bf5cc2022-12-14 13:27:25 +00001536 "com.android.adbd",
1537 "test_com.android.adbd",
1538 "adbd_test",
1539 "adb_crypto_test",
1540 "adb_pairing_auth_test",
1541 "adb_pairing_connection_test",
1542 "adb_tls_connection_test",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001543 // M9: mixed builds for mainline trains launch
1544 "api_fingerprint",
Sam Delmerico96e53702023-04-07 15:09:37 -04001545 // M11: neuralnetworks launch
1546 "com.android.neuralnetworks",
1547 "test_com.android.neuralnetworks",
1548 "libneuralnetworks",
1549 "libneuralnetworks_static",
Jingwen Chen889f2f22022-12-16 08:16:01 +00001550 }
MarkDacekb78465d2022-10-18 20:10:16 +00001551
Chris Parsons66fc7452022-11-04 13:26:17 -04001552 // Staging-mode allowlist. Modules in this list are only built
1553 // by Bazel with --bazel-mode-staging. This list should contain modules
1554 // which will soon be added to the prod allowlist.
MarkDacek421a4d62022-12-13 21:17:08 +00001555 // It is implicit that all modules in ProdMixedBuildsEnabledList will
1556 // also be built - do not add them to this list.
Sam Delmericobefbf052023-04-28 11:23:58 -04001557 StagingMixedBuildsEnabledList = []string{
1558 // M13: media.swcodec launch
Liz Kammer3c226ff2023-05-12 08:49:54 -04001559 // TODO(b/282042844): reenable
1560 // "com.android.media.swcodec",
1561 // "test_com.android.media.swcodec",
1562 // "libstagefright_foundation",
Sam Delmericobefbf052023-04-28 11:23:58 -04001563 }
Yu Liue4312402023-01-18 09:15:31 -08001564
1565 // These should be the libs that are included by the apexes in the ProdMixedBuildsEnabledList
Jingwen Chen01addfc2023-03-13 12:49:52 +00001566 ProdDclaMixedBuildsEnabledList = []string{
Yu Liue4312402023-01-18 09:15:31 -08001567 "libbase",
1568 "libc++",
1569 "libcrypto",
1570 "libcutils",
1571 }
1572
Jingwen Chen01addfc2023-03-13 12:49:52 +00001573 // These should be the libs that are included by the apexes in the StagingMixedBuildsEnabledList
1574 StagingDclaMixedBuildsEnabledList = []string{}
1575
Yu Liue4312402023-01-18 09:15:31 -08001576 // TODO(b/269342245): Enable the rest of the DCLA libs
1577 // "libssl",
1578 // "libstagefright_flacdec",
1579 // "libutils",
Jeongik Chae114e602023-03-19 00:12:39 +09001580
Jeongik Chab745e2e2023-04-11 14:28:43 +09001581 // The list of module types which are expected to spend lots of build time.
1582 // With `--ninja_weight_source=soong`, ninja builds these module types and deps first.
1583 HugeModuleTypePrefixMap = map[string]int{
1584 "rust_": HIGH_PRIORITIZED_WEIGHT,
1585 "droidstubs": DEFAULT_PRIORITIZED_WEIGHT,
1586 "art_": DEFAULT_PRIORITIZED_WEIGHT,
1587 "ndk_library": DEFAULT_PRIORITIZED_WEIGHT,
Jeongik Chae114e602023-03-19 00:12:39 +09001588 }
Sam Delmerico24c56032022-03-28 19:53:03 +00001589)