blob: 12e583c774efed2e4e27e55c2c58aa3cf1afb32f [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,
Spandan Dasb3d5c482023-05-15 18:49:23 +000088 "development/python-packages/adb": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040089 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
90 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
91 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
92 "development/samples/Compass": Bp2BuildDefaultTrue,
93 "development/samples/ContactManager": Bp2BuildDefaultTrue,
94 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
95 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
96 "development/samples/Home": Bp2BuildDefaultTrue,
97 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
98 "development/samples/JetBoy": Bp2BuildDefaultTrue,
99 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
100 "development/samples/LceDemo": Bp2BuildDefaultTrue,
101 "development/samples/LunarLander": Bp2BuildDefaultTrue,
102 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
103 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
104 "development/samples/NotePad": Bp2BuildDefaultTrue,
105 "development/samples/Obb": Bp2BuildDefaultTrue,
106 "development/samples/RSSReader": Bp2BuildDefaultTrue,
107 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
108 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
109 "development/samples/SipDemo": Bp2BuildDefaultTrue,
110 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
111 "development/samples/Snake": Bp2BuildDefaultTrue,
112 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
113 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
114 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
115 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
116 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
117 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
118 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
119 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
120 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
121 "development/sdk": Bp2BuildDefaultTrueRecursively,
122
123 "external/aac": Bp2BuildDefaultTrueRecursively,
124 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700125 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000126 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400127 "external/auto/common": Bp2BuildDefaultTrueRecursively,
128 "external/auto/service": Bp2BuildDefaultTrueRecursively,
129 "external/boringssl": Bp2BuildDefaultTrueRecursively,
130 "external/bouncycastle": Bp2BuildDefaultTrue,
131 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700132 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
133 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400134 "external/conscrypt": Bp2BuildDefaultTrue,
135 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
136 "external/eigen": Bp2BuildDefaultTrueRecursively,
137 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
138 "external/error_prone": Bp2BuildDefaultTrueRecursively,
Usta Shresthad66f2ce2023-03-15 15:01:59 -0400139 "external/escapevelocity": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400140 "external/expat": Bp2BuildDefaultTrueRecursively,
141 "external/f2fs-tools": Bp2BuildDefaultTrue,
142 "external/flac": Bp2BuildDefaultTrueRecursively,
143 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700144 "external/fsverity-utils": Bp2BuildDefaultTrueRecursively,
Romain Jobredeauxe7370ea2023-04-04 10:30:14 -0400145 "external/guava": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400146 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
147 "external/googletest": Bp2BuildDefaultTrueRecursively,
148 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
149 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
150 "external/icu": Bp2BuildDefaultTrueRecursively,
151 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
152 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400153 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400154 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400155 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400156 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000157 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400158 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
159 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500160 "external/jsr305": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500161 "external/jsr330": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400162 "external/junit": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500163 "external/kotlinc": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400164 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400165 "external/libavc": Bp2BuildDefaultTrueRecursively,
166 "external/libcap": Bp2BuildDefaultTrueRecursively,
167 "external/libcxx": Bp2BuildDefaultTrueRecursively,
168 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700169 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000170 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400171 "external/libevent": Bp2BuildDefaultTrueRecursively,
172 "external/libgav1": Bp2BuildDefaultTrueRecursively,
173 "external/libhevc": Bp2BuildDefaultTrueRecursively,
174 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
175 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
176 "external/libpng": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700177 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700178 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400179 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700180 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400181 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
182 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
183 "external/minijail": Bp2BuildDefaultTrueRecursively,
Colin Cross20c89f12022-12-05 16:47:44 -0800184 "external/musl": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000185 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000186 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Spandan Das6960ac12022-11-22 04:45:05 +0000187 "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400188 "external/pcre": Bp2BuildDefaultTrueRecursively,
189 "external/protobuf": Bp2BuildDefaultTrueRecursively,
190 "external/python/six": Bp2BuildDefaultTrueRecursively,
191 "external/rappor": Bp2BuildDefaultTrueRecursively,
192 "external/scudo": Bp2BuildDefaultTrueRecursively,
Cole Faust6cac8cb2023-06-15 15:01:30 -0700193 "external/selinux/checkpolicy": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400194 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
195 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700196 "external/speex": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400197 "external/sqlite": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000198 "external/tinyalsa": Bp2BuildDefaultTrueRecursively,
199 "external/tinyalsa_new": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400200 "external/toybox": Bp2BuildDefaultTrueRecursively,
201 "external/zlib": Bp2BuildDefaultTrueRecursively,
202 "external/zopfli": Bp2BuildDefaultTrueRecursively,
203 "external/zstd": Bp2BuildDefaultTrueRecursively,
204
Jingwen Chen1ec77852022-11-07 14:36:12 +0000205 "frameworks/av": Bp2BuildDefaultTrue,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400206 "frameworks/av/media/audioaidlconversion": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400207 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000208 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000209 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400210 "frameworks/av/media/libmediahelper": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500211 "frameworks/av/media/libshmem": Bp2BuildDefaultTrueRecursively,
Liz Kammere7a47122023-05-12 08:44:51 -0400212 "frameworks/av/media/module/codecs": Bp2BuildDefaultTrueRecursively,
213 "frameworks/av/media/module/foundation": Bp2BuildDefaultTrueRecursively,
Jingwen Chen8ebc6202022-09-14 11:48:21 +0000214 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000215 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400216 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
Vinh Tran320aecf2023-04-28 11:21:25 -0400217 "frameworks/base/libs/services": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400218 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400219 "frameworks/base/proto": Bp2BuildDefaultTrue,
Liz Kammere7a47122023-05-12 08:44:51 -0400220 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400221 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
222 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400223 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
Alix9d562792023-03-02 17:12:30 +0000224 "frameworks/base/tools/codegen": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000225 "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
Vinh Tran9b09bc52023-02-21 09:56:25 -0500226 "frameworks/hardware/interfaces/stats/aidl": Bp2BuildDefaultTrue,
Liz Kammere7a47122023-05-12 08:44:51 -0400227 "frameworks/libs/modules-utils/build": Bp2BuildDefaultTrueRecursively,
Usta Shrestha6e5a5b12023-05-19 10:30:52 -0400228 "frameworks/libs/net/common/native": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400229 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
230 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400231 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400232 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
233 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400234 "frameworks/native/libs/permission": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400235 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400236 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
237 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
238 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
239 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
240 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000241 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000242 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400243
Liz Kammere76510b2023-03-20 17:30:51 -0400244 "hardware/interfaces": Bp2BuildDefaultTrue,
245 "hardware/interfaces/audio/aidl": Bp2BuildDefaultTrue,
246 "hardware/interfaces/audio/aidl/common": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000247 "hardware/interfaces/audio/aidl/default": Bp2BuildDefaultTrue,
248 "hardware/interfaces/audio/aidl/sounddose": Bp2BuildDefaultTrue,
Liz Kammere76510b2023-03-20 17:30:51 -0400249 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
250 "hardware/interfaces/common/fmq/aidl": Bp2BuildDefaultTrue,
251 "hardware/interfaces/common/support": Bp2BuildDefaultTrue,
252 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
253 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
254 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
255 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
256 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
257 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
258 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
259 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
260 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
261 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
262 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
263 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
264 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
265 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
266 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
267 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
268 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
269 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
270 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
271 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
272 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
273 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
274 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
275 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
276 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
277 "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
278 "hardware/interfaces/media/bufferpool": Bp2BuildDefaultTrueRecursively,
279 "hardware/interfaces/media/bufferpool/aidl/default/tests": Bp2BuildDefaultFalseRecursively,
280 "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
281 "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
282 "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
283 "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
284 "hardware/interfaces/neuralnetworks": Bp2BuildDefaultTrueRecursively,
285 "hardware/interfaces/neuralnetworks/aidl/vts": Bp2BuildDefaultFalseRecursively,
286 "hardware/interfaces/neuralnetworks/1.0/vts": Bp2BuildDefaultFalseRecursively,
287 "hardware/interfaces/neuralnetworks/1.1/vts": Bp2BuildDefaultFalseRecursively,
288 "hardware/interfaces/neuralnetworks/1.2/vts": Bp2BuildDefaultFalseRecursively,
289 "hardware/interfaces/neuralnetworks/1.3/vts": Bp2BuildDefaultFalseRecursively,
290 "hardware/interfaces/neuralnetworks/1.4/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400291
292 "libnativehelper": Bp2BuildDefaultTrueRecursively,
293
Alix79f853d2023-02-10 15:57:01 +0000294 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
295 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
296 "packages/apps/Protips": Bp2BuildDefaultTrue,
297 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
298 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
299 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
300 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
301 "packages/modules/adb": Bp2BuildDefaultTrue,
302 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
303 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
304 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
305 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
306 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
307 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
308 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000309 "packages/modules/Gki/libkver": Bp2BuildDefaultTrue,
Alix79f853d2023-02-10 15:57:01 +0000310 "packages/modules/NetworkStack/common/captiveportal": Bp2BuildDefaultTrue,
Yu Liue1ab66d2023-03-24 10:53:02 -0700311 "packages/modules/NeuralNetworks/apex": Bp2BuildDefaultTrue,
MarkDacekb9e11c52023-04-26 21:28:16 +0000312 "packages/modules/NeuralNetworks/apex/testing": Bp2BuildDefaultTrue,
Alix79f853d2023-02-10 15:57:01 +0000313 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
314 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
315 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400316
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000317 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
318
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400319 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
320 "prebuilts/gradle-plugin": Bp2BuildDefaultTrueRecursively,
321 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux8242b432023-05-04 10:16:26 -0400322 "prebuilts/sdk": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400323 "prebuilts/sdk/current/androidx": Bp2BuildDefaultTrue,
324 "prebuilts/sdk/current/androidx-legacy": Bp2BuildDefaultTrue,
325 "prebuilts/sdk/current/extras/constraint-layout-x": Bp2BuildDefaultTrue,
326 "prebuilts/sdk/current/extras/material-design-x": Bp2BuildDefaultTrue,
327 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
328 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
329 "prebuilts/tools": Bp2BuildDefaultTrue,
330 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400331
Alixb4e09a02022-09-27 15:36:01 +0000332 "sdk/dumpeventlog": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000333 "sdk/eventanalyzer": Bp2BuildDefaultTrue,
Alixb4e09a02022-09-27 15:36:01 +0000334
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000335 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
336 "system/apex/apexer": Bp2BuildDefaultTrue,
337 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
Jingwen Chena1a17752023-06-15 11:06:34 +0000338 "system/apex/libs/libapexsupport": Bp2BuildDefaultFalseRecursively, // TODO(b/267572288): depends on rust
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000339 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
340 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
341 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
342 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000343 "system/core/healthd": Bp2BuildDefaultTrue,
344 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000345 "system/core/libasyncio": Bp2BuildDefaultTrue,
346 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
347 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
348 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
349 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
350 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
351 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700352 "system/core/libsparse": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000353 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000354 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000355 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000356 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
357 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700358 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000359 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
360 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700361 "system/extras/f2fs_utils": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700362 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700363 "system/extras/verity": Bp2BuildDefaultTrueRecursively,
Chris Parsons52b842a2022-12-19 11:45:23 -0500364 "system/hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400365 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000366 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
367 "system/libbase": Bp2BuildDefaultTrueRecursively,
368 "system/libfmq": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400369 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
370 "system/libhidl/transport": Bp2BuildDefaultTrue,
371 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700372 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
373 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
374 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
375 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400376 "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
377 "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
378 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
379 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
380 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000381 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
382 "system/libprocinfo": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000383 "system/libvintf": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000384 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000385 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700386 "system/media": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000387 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000388 "system/media/alsa_utils": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700389 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000390 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
391 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
392 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700393 "system/security/fsverity": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000394 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000395 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
396 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Jingwen Chen61342112023-04-11 08:49:01 +0000397 "system/timezone/testdata": Bp2BuildDefaultTrueRecursively,
398 "system/timezone/testing": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400399 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000400 "system/tools/aidl/metadata": Bp2BuildDefaultTrue,
401 "system/tools/hidl/metadata": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700402 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400403 "system/tools/sysprop": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000404 "system/tools/xsdc/utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000405 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400406
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400407 "tools/apifinder": Bp2BuildDefaultTrue,
Dan Albertf1235a82023-04-13 16:39:28 +0000408 "tools/apksig": Bp2BuildDefaultTrue,
409 "tools/external_updater": Bp2BuildDefaultTrueRecursively,
410 "tools/metalava": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400411 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
412 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000413 }
414
415 Bp2buildKeepExistingBuildFile = map[string]bool{
416 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
417 ".":/*recursive = */ false,
418
Cole Faust324a92e2022-08-23 15:29:05 -0700419 "build/bazel":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000420 "build/make/core":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000421 "build/bazel_common_rules":/* recursive = */ true,
Cole Faust10b94de2023-03-31 17:38:33 -0700422 "build/make/target/product/security":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000423 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
424 "build/make/tools":/* recursive = */ false,
425 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000426 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000427
428 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
429 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
430 "external/bazelbuild-rules_android":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700431 "external/bazelbuild-rules_license":/* recursive = */ true,
Spandan Das4a5bc5c2023-06-26 03:44:04 +0000432 "external/bazelbuild-rules_go":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400433 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000434 "external/bazel-skylib":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700435 "external/protobuf":/* recursive = */ false,
Cole Faustde12be32022-11-19 15:14:48 -0800436 "external/python/absl-py":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000437
Trevor Radcliffe391a25d2023-03-22 20:22:27 +0000438 "external/compiler-rt/lib/cfi":/* recursive = */ false,
439
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000440 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
441 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
442
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500443 // Building manually due to b/179889880: resource files cross package boundary
Sam Delmerico24c56032022-03-28 19:53:03 +0000444 "packages/apps/Music":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000445
Yu Liu56ccb1a2022-11-12 10:47:07 -0800446 "prebuilts/abi-dumps/platform":/* recursive = */ true,
447 "prebuilts/abi-dumps/ndk":/* recursive = */ true,
Romain Jobredeaux29197972022-05-30 22:02:31 -0400448 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000449 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700450 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Yu Liu56ccb1a2022-11-12 10:47:07 -0800451 "prebuilts/clang-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000452 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000453 "prebuilts/build-tools":/* recursive = */ true,
Romain Jobredeauxd4e1a152023-03-17 11:02:01 -0400454 "prebuilts/jdk/jdk17":/* recursive = */ true,
Cole Faust7071a052022-07-29 15:58:33 -0700455 "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 +0000456 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000457 "prebuilts/sdk/tools":/* recursive = */ false,
458 "prebuilts/r8":/* recursive = */ false,
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000459 "prebuilts/runtime":/* recursive = */ false,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000460
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000461 // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
462 "tools/asuite/atest":/* recursive = */ false,
463 "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
Yu Liu828c4062023-01-23 20:56:46 +0000464
465 // TODO(b/266459895): remove this and the placeholder BUILD file after re-enabling libunwindstack
466 "external/rust/crates/rustc-demangle-capi":/* recursive = */ false,
Chris Parsons8152a942023-06-06 16:17:50 +0000467
468 // Used for testing purposes only. Should not actually exist in the real source tree.
469 "testpkg/keep_build_file":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000470 }
471
472 Bp2buildModuleAlwaysConvertList = []string{
Liz Kammer09d831e2022-09-16 09:02:26 -0400473 "libidmap2_policies",
474 "libSurfaceFlingerProp",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400475 // cc mainline modules
Liz Kammera7bea312023-05-04 09:51:56 -0400476
477 // com.android.media.swcodec
Vinh Tran2dbc7452022-09-29 10:49:07 -0400478 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400479 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400480 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400481 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400482 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400483 "com.android.media.swcodec.certificate",
484 "com.android.media.swcodec.key",
Liz Kammera7bea312023-05-04 09:51:56 -0400485 "test_com.android.media.swcodec",
486
487 // deps
488 "code_coverage.policy",
489 "code_coverage.policy.other",
490 "codec2_soft_exports",
Spandan Das8d6bf5e2023-05-19 00:18:49 +0000491 "compatibility_matrix_schema",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400492 "flatbuffer_headers",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400493 "framework-connectivity-protos",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400494 "gemmlowp_headers",
495 "gl_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000496 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400497 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400498 "libaudioclient_aidl_conversion_util",
Vinh Tran9f6796a2022-08-16 13:10:31 -0400499 "libbinder",
500 "libbinder_device_interface_sources",
Vinh Tran444154d2022-08-16 13:10:31 -0400501 "libbinder_aidl",
Liz Kammer63367e12022-06-13 19:35:12 +0000502 "libbinder_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400503 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400504 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400505 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000506 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400507 "libcodec2_headers",
508 "libcodec2_internal",
509 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400510 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400511 "libgrallocusage",
512 "libgralloctypes",
513 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400514 "libneuralnetworks",
Sam Delmerico646dcfa2023-04-07 14:38:32 -0400515 "libneuralnetworks_static",
Vinh Tran99fd6502022-09-09 18:36:24 -0400516 "libgraphicsenv",
Liz Kammer63367e12022-06-13 19:35:12 +0000517 "libhardware",
Liz Kammer5068eae2022-05-11 17:24:29 -0400518 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400519 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400520 "libnativewindow_headers",
521 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400522 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400523 "libopus",
524 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000525 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700526 "libandroidio",
527 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400528 "libserviceutils",
Liz Kammer63367e12022-06-13 19:35:12 +0000529 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400530 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400531 "libtextclassifier_hash_headers",
532 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000533 "libtflite_kernel_utils",
534 "libtinyxml2",
Vinh Tran99fd6502022-09-09 18:36:24 -0400535 "libui",
Liz Kammer5068eae2022-05-11 17:24:29 -0400536 "libui-types",
Liz Kammer63367e12022-06-13 19:35:12 +0000537 "libui_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400538 "libvorbisidec",
539 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000540 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400541 "mediaswcodec.policy",
542 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400543 "neuralnetworks_types",
Vinh Tran99fd6502022-09-09 18:36:24 -0400544 "libneuralnetworks_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400545 // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
546 "packagemanager_aidl_interface",
Liz Kammer63367e12022-06-13 19:35:12 +0000547 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400548 "philox_random_headers",
549 "server_configurable_flags",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400550 "service-permission-streaming-proto-sources",
Vinh Tranf19b6582022-09-21 17:01:49 -0400551 "statslog_neuralnetworks.cpp",
552 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400553 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400554
Vinh Tran99fd6502022-09-09 18:36:24 -0400555 "libstagefright_bufferpool@2.0",
556 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400557 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400558
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000559 // prebuilts
560 "prebuilt_stats-log-api-gen",
561
Jingwen Chen9009dc22022-08-04 15:26:46 +0000562 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000563 "fastboot",
564 "libfastboot",
565 "liblp",
566 "libstorage_literals_headers",
567
Liz Kammerf0ab5462023-04-04 11:38:54 -0400568 "PluginCoreLib",
569 "dagger2",
570 "dagger2-android-annotation-stubs",
571 "dagger2-bootstrap-compiler",
572 "dagger2-producers",
573 "okio-lib",
574 "setupdesign-strings",
575
Sam Delmerico24c56032022-03-28 19:53:03 +0000576 //external/avb
577 "avbtool",
578 "libavb",
579 "avb_headers",
580
Alix5918d642022-06-27 20:57:44 +0000581 //external/libxml2
582 "xmllint",
583 "libxml2",
584
Sam Delmerico24c56032022-03-28 19:53:03 +0000585 //external/fec
586 "libfec_rs",
587
Vinh Tran320aecf2023-04-28 11:21:25 -0400588 //frameworks/base/core/java
589 "IDropBoxManagerService_aidl",
590
Sam Delmerico24c56032022-03-28 19:53:03 +0000591 //system/extras/ext4_utils
592 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700593 "mke2fs_conf",
Cole Faust17cd19c2023-06-08 12:26:42 -0700594 "mkuserimg_mke2fs",
595 "blk_alloc_to_base_fs",
Sam Delmerico24c56032022-03-28 19:53:03 +0000596
597 //system/extras/libfec
598 "libfec",
599
600 //system/extras/squashfs_utils
601 "libsquashfs_utils",
602
Sam Delmerico24c56032022-03-28 19:53:03 +0000603 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
604 // genrule dependencies for java_imports
605 "car-ui-androidx-annotation-nodeps",
606 "car-ui-androidx-collection-nodeps",
607 "car-ui-androidx-core-common-nodeps",
608 "car-ui-androidx-lifecycle-common-nodeps",
609 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700610
611 //system/libhidl
Jingwen Chen263d4002023-03-29 07:15:10 +0000612 "libhidlbase", // needed by cc_hidl_library
613 "libhidl_gtest_helper",
Vinh Tran444154d2022-08-16 13:10:31 -0400614
615 //frameworks/native
616 "framework_native_aidl_binder",
617 "framework_native_aidl_gui",
618
619 //frameworks/native/libs/input
620 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400621
622 // needed for aidl_interface's ndk backend
623 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000624
625 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000626
627 // needed by liblogd
628 "ILogcatManagerService_aidl",
629 "libincremental_aidl-cpp",
630 "incremental_aidl",
Jingwen Chen2247aca2022-09-09 10:47:43 +0000631
632 //frameworks/native/cmds/cmd
633 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000634
635 //system/core/fs_mgr/libdm
636 "libdm",
637
638 //system/core/fs_mgr/libfiemap
639 "libfiemap_headers",
640 "libfiemap_passthrough_srcs",
641 "libfiemap_srcs",
642
643 //system/gsid
644 "libgsi",
645 "libgsi_headers",
646
647 //system/core/libkeyutils
648 "libkeyutils",
649
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000650 //bootable/recovery/otautil
651 "libotautil",
652
653 //system/vold
654 "libvold_headers",
655
656 //system/extras/libfscrypt
657 "libfscrypt",
658
659 //system/core/fs_mgr
660 "libfstab",
661
662 //bootable/recovery/fuse_sideload
663 "libfusesideload",
664
665 //system/core/fs_mgr/libfs_avb
666 "libfs_avb",
667
668 //system/core/fs_mgr
669 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700670
671 "libcodec2_hidl@1.0",
672 "libcodec2_hidl@1.1",
673 "libcodec2_hidl@1.2",
674 "libcodec2_hidl_plugin_stub",
675 "libcodec2_hidl_plugin",
676 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700677 "libGLESv2",
678 "libEGL",
679 "libcodec2_vndk",
680 "libnativeloader_lazy",
681 "libnativeloader",
682 "libEGL_getProcAddress",
683 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400684
Yu Liu8c981532022-09-27 12:47:26 -0700685 "mediaswcodec",
686 "libmedia_headers",
687 "libmedia_codecserviceregistrant",
688 "libsfplugin_ccodec_utils",
689 "libcodec2_soft_aacenc",
690 "libcodec2_soft_amrnbdec",
691 "libcodec2_soft_amrnbenc",
692 "libcodec2_soft_amrwbdec",
693 "libcodec2_soft_amrwbenc",
694 "libcodec2_soft_hevcdec",
695 "libcodec2_soft_hevcenc",
696 "libcodec2_soft_g711alawdec",
697 "libcodec2_soft_g711mlawdec",
698 "libcodec2_soft_mpeg2dec",
699 "libcodec2_soft_h263dec",
700 "libcodec2_soft_h263enc",
701 "libcodec2_soft_mpeg4dec",
702 "libcodec2_soft_mpeg4enc",
703 "libcodec2_soft_mp3dec",
704 "libcodec2_soft_vorbisdec",
705 "libcodec2_soft_opusdec",
706 "libcodec2_soft_opusenc",
707 "libcodec2_soft_vp8dec",
708 "libcodec2_soft_vp9dec",
709 "libcodec2_soft_av1dec_gav1",
710 "libcodec2_soft_vp8enc",
711 "libcodec2_soft_vp9enc",
712 "libcodec2_soft_rawdec",
713 "libcodec2_soft_flacdec",
714 "libcodec2_soft_flacenc",
715 "libcodec2_soft_gsmdec",
716 "libcodec2_soft_avcdec",
717 "libcodec2_soft_avcenc",
718 "libcodec2_soft_aacdec",
719 "libcodec2_soft_common",
Alix8062f4d2022-11-14 21:38:07 +0000720
721 // kotlin srcs in java libs
Alix8062f4d2022-11-14 21:38:07 +0000722 "kotlinx_atomicfu",
Alix7c8eaeb2022-11-16 15:44:55 +0000723
724 // kotlin srcs in java binary
725 "AnalyzerKt",
726 "trebuchet-core",
Alix36795a72023-01-20 16:10:52 +0000727
728 // kotlin srcs in android_library
729 "renderscript_toolkit",
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500730
731 //kotlin srcs in android_binary
732 "MusicKotlin",
Zi Wang75a38e72023-02-15 22:52:47 -0800733
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -0500734 // java_library with prebuilt sdk_version
735 "android-common",
736
Zi Wang75a38e72023-02-15 22:52:47 -0800737 // checked in current.txt for merged_txts
738 "non-updatable-current.txt",
739 "non-updatable-system-current.txt",
740 "non-updatable-module-lib-current.txt",
741 "non-updatable-system-server-current.txt",
Zi Wangb31a8332023-03-06 15:21:35 -0800742
743 // for api_fingerprint.txt generation
744 "api_fingerprint",
Alixf848bf82023-03-06 19:43:55 +0000745
746 // allowlisting for kotlinx_coroutines
Liz Kammerf0ab5462023-04-04 11:38:54 -0400747 "annotations",
748 "kotlinx-coroutines-android-annotation-stubs",
749 "kotlinx-coroutines-core",
Alixf848bf82023-03-06 19:43:55 +0000750 "kotlinx_coroutines",
Romain Jobredeauxe7370ea2023-04-04 10:30:14 -0400751 "kotlinx_coroutines-device",
752 "kotlinx_coroutines-host",
Sam Delmerico9d71a842023-03-16 16:24:54 -0400753
754 // for building com.android.neuralnetworks
755 "libimapper_stablec",
756 "libimapper_providerutils",
Alixe5085eb2023-01-31 19:38:41 +0000757
758 // min_sdk_version in android_app
759 "CtsShimUpgrade",
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400760
Liz Kammerf0ab5462023-04-04 11:38:54 -0400761 "art_cmdlineparser_headers",
762
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400763 // Mainline Module Apps
764 "CaptivePortalLogin",
Sam Delmericobefbf052023-04-28 11:23:58 -0400765
766 "libstagefright_headers",
Spandan Dasebbea2a2023-05-10 02:05:43 +0000767
768 // aidl
769 "aidl",
770 "libaidl-common",
Alixb29a3cd2023-05-09 20:37:49 +0000771
772 // java_resources containing only a single filegroup
773 "libauto_value_plugin",
774 "auto_value_plugin_resources",
775 "auto_value_extension",
Spandan Dasab5f1c52023-05-19 00:18:49 +0000776
777 // Used by xsd_config
778 "xsdc",
Yu Liu2c0b8902023-06-05 11:13:00 -0700779
780 // cc_test that can be run by b test
781 "binderRpcWireProtocolTest",
782 "binderUnitTest",
783 "cpu_features-bit_utils_test",
784 "liblp_test",
785 "android.hardware.audio.common.test.utility_tests",
786 "HalAudioStreamWorkerTest",
787 "libjavacore-unit-tests",
788 "NeuralNetworksTest_utils",
789 "NeuralNetworksTest_logtag",
790 "NeuralNetworksTest_operations",
791 "nanoapp_chqts_shared_tests",
792 "fakeservicemanager_test",
793 "tristate_test",
794 "binderUtilsHostTest",
795 "run_dex2oat_test",
796 "bluetooth-address-unit-tests",
Jihoon Kangc44be962023-06-06 16:35:29 +0000797
798 // for platform_compat_config
799 "process-compat-config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000800 }
801
802 Bp2buildModuleTypeAlwaysConvertList = []string{
Spandan Dasd58630f2022-09-08 01:04:22 +0000803 "aidl_interface_headers",
Zi Wangb2179e32023-01-31 15:53:30 -0800804 "bpf",
Zi Wang75a38e72023-02-15 22:52:47 -0800805 "combined_apis",
Sasha Smundak8bea2672022-08-04 13:31:14 -0700806 "license",
Liz Kammer45faf8f2022-06-02 16:00:54 -0400807 "linker_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000808 "java_import",
809 "java_import_host",
Zi Wangb2179e32023-01-31 15:53:30 -0800810 "java_sdk_library",
Trevor Radcliffead3d1232022-09-01 16:25:10 +0000811 "sysprop_library",
Spandan Das8d6bf5e2023-05-19 00:18:49 +0000812 "xsd_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000813 }
814
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000815 // Add the names of modules that bp2build should never convert, if it is
816 // in the package allowlist. An error will be thrown if a module must
817 // not be here and in the alwaysConvert lists.
818 //
819 // For prebuilt modules (e.g. android_library_import), remember to add
820 // the "prebuilt_" prefix to the name, so that it's differentiable from
821 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +0000822 Bp2buildModuleDoNotConvertList = []string{
Vinh Tran220fb8b2022-10-04 12:04:17 -0400823 // Depends on unconverted libandroid, libgui
824 "dvr_buffer_queue-test",
825 "dvr_display-test",
826 // Depends on unconverted libchrome
827 "pdx_benchmarks",
828 "buffer_hub_queue-test",
829 "buffer_hub_queue_producer-test",
830
Sam Delmerico24c56032022-03-28 19:53:03 +0000831 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +0000832
833 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +0000834 "logtagd.rc",
835
Sam Delmerico24c56032022-03-28 19:53:03 +0000836 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +0000837
838 // TODO(b/202876379): has arch-variant static_executable
839 "linkerconfig",
840 "mdnsd",
841 "libcutils_test_static",
842 "KernelLibcutilsTest",
843
Liz Kammerf0ab5462023-04-04 11:38:54 -0400844 "linker", // TODO(b/228316882): cc_binary uses link_crt
845 "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 Kammerf0ab5462023-04-04 11:38:54 -0400846
847 // requires host tools for apexer
848 "apexer_test", "apexer_test_host_tools", "host_apex_verifier",
Sam Delmerico24c56032022-03-28 19:53:03 +0000849
850 // java bugs
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -0500851 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
852 "bouncycastle", // TODO(b/274474005): Need support for custom system_modules.
Sam Delmerico24c56032022-03-28 19:53:03 +0000853
Sam Delmerico24c56032022-03-28 19:53:03 +0000854 // genrule incompatibilities
855 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
856 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
857
858 // aar support
Chris Parsons9f0e5522022-12-08 14:12:54 -0500859 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000860 // ERROR: The dependencies for the following 1 jar(s) are not complete.
861 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
862 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +0000863
864 // path property for filegroups
865 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
866 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
867 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000868 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
869 "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
870 "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
871
872 // go deps:
Jingwen Chenf50817d2022-09-21 06:46:08 +0000873 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
Cole Faustd82f0362023-04-12 17:32:19 -0700874 "analyze_bcpf_test", // depends on bpmodify a blueprint_go_binary.
Jingwen Chenf50817d2022-09-21 06:46:08 +0000875 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
876 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000877
Sam Delmerico24c56032022-03-28 19:53:03 +0000878 // rust support
879 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
880
881 // unconverted deps
Cole Faustd82f0362023-04-12 17:32:19 -0700882 "apexer_with_DCLA_preprocessing_test", // depends on unconverted modules: apexer_test_host_tools, com.android.example.apex
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000883 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
884 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
885 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
Cole Faustd82f0362023-04-12 17:32:19 -0700886 "apex_compression_test", // depends on unconverted modules: soong_zip, com.android.example.apex
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000887 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
888 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
889 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
Cole Faustd82f0362023-04-12 17:32:19 -0700890 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
Sam Delmerico24c56032022-03-28 19:53:03 +0000891 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
Sam Delmerico24c56032022-03-28 19:53:03 +0000892 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
893 "dex2oat-script", // depends on unconverted modules: dex2oat
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000894 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
895 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
Sam Delmerico24c56032022-03-28 19:53:03 +0000896 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400897 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -0400898 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +0000899 "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
900 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
901 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -0400902 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
903 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Sam Delmerico24c56032022-03-28 19:53:03 +0000904 "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
905 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +0000906 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +0000907 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
908 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +0000909 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
910 "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
911 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
912 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
913 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
914 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
Vinh Tranc3873e82022-08-23 20:33:25 -0400915 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +0000916 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
917 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
Sam Delmerico847178f2022-12-15 09:36:35 -0500918 "malloc-rss-benchmark", // depends on unconverted modules: libmeminfo
Sam Delmerico24c56032022-03-28 19:53:03 +0000919 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
Cole Faustd82f0362023-04-12 17:32:19 -0700920 "releasetools_test", // depends on unconverted modules: com.android.apex.compressed.v1
Vinh Tranf19b6582022-09-21 17:01:49 -0400921 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
922 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
923 "test_fips", // depends on unconverted modules: adb
924 "timezone-host", // depends on unconverted modules: art.module.api.annotations
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxbff2e882022-04-20 18:44:54 +0000925
Jingwen Chen5012e072022-08-04 15:04:43 +0000926 // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
927 "toybox-static",
Wei Li81852ca2022-07-27 00:22:06 -0700928
Liz Kammer09d831e2022-09-16 09:02:26 -0400929 // aidl files not created
930 "overlayable_policy_aidl_interface",
931
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000932 //prebuilts/tools/common/m2
933 // depends on //external/okio:okio-lib, which uses kotlin
934 "wire-runtime",
935
Jingwen Chena0519422022-09-28 08:01:57 +0000936 // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
937 "minadbd",
938
939 // depends on android.hardware.health-V2.0-java
940 "android.hardware.health-translate-java",
941
Jingwen Chen263d4002023-03-29 07:15:10 +0000942 //system/libvintf
943 // depends on apex-info-list-tinyxml, unconverted xsd_config Soong module type.
944 "libvintf",
945 "vintf",
946 "libassemblevintf",
947 "assemble_vintf",
948 "libvintffm",
949 "vintffm",
950 "checkvintf",
951
952 // depends on audio_policy_configuration_aidl_default, xsd_config module.
953 "libaudioserviceexampleimpl",
954 "android.hardware.audio.service-aidl.example",
955
956 // depends on //system/tools/aidl/build:aidl_metadata_json, which is an aidl_interfaces_metadata custom Soong type.
957 "aidl_metadata_in_cpp",
958 "libaidlmetadata",
Jingwen Chen29c45612023-03-30 05:17:01 +0000959 "libaidlmetadata_test",
Jingwen Chen263d4002023-03-29 07:15:10 +0000960
961 // depends on //system/tools/hidl/build:hidl_metadata_json, which is an hidl_interfaces_metadata custom Soong type.
962 "hidl_metadata_in_cpp",
963 "libhidlmetadata",
Jingwen Chen29c45612023-03-30 05:17:01 +0000964 "hidl_metadata_test",
Jingwen Chen263d4002023-03-29 07:15:10 +0000965
Jingwen Chen537242c2022-08-24 11:53:27 +0000966 // cc_test related.
Jingwen Chenb5edbf92023-03-20 13:17:49 +0000967 // b/274164834 "Could not open Configuration file test.cfg"
968 "svcenc", "svcdec",
969
Jingwen Chen537242c2022-08-24 11:53:27 +0000970 // Failing host cc_tests
Jingwen Chen537242c2022-08-24 11:53:27 +0000971 "libprocinfo_test",
972 "ziparchive-tests",
973 "gtest_isolated_tests",
974 "libunwindstack_unit_test",
Jingwen Chen537242c2022-08-24 11:53:27 +0000975 "power_tests", // failing test on server, but not on host
976
977 // reflect: call of reflect.Value.NumField on interface Value
978 // affects all cc_tests that depend on art_defaults
979 "libnativebridge-tests",
980 "libnativeloader_test",
981 "art_libnativebridge_cts_tests",
982 "art_standalone_libdexfile_external_tests",
983 "art_standalone_libdexfile_support_tests",
984 "libnativebridge-lazy-tests",
985 "libnativebridge-test-case",
986 "libnativebridge2-test-case",
987 "libnativebridge3-test-case",
988 "libnativebridge6-test-case",
989 "libnativebridge6prezygotefork",
990
Liz Kammer09d831e2022-09-16 09:02:26 -0400991 "libandroidfw_tests", "aapt2_tests", // failing due to data path issues
992
Jingwen Chena485d092023-04-20 12:34:08 +0000993 // error: overriding commands for target
994 // `out/host/linux-x86/nativetest64/gmock_tests/gmock_tests__cc_runner_test',
995 // previously defined at out/soong/installs-aosp_arm.mk:64919`
996 "gmock_tests",
997
Jingwen Chen537242c2022-08-24 11:53:27 +0000998 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
999 "AMRWBEncTest",
Sam Delmericobefbf052023-04-28 11:23:58 -04001000 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1001 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1002 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
1003 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1004 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
Jingwen Chen537242c2022-08-24 11:53:27 +00001005 "avcdec",
1006 "avcenc",
1007 "bionic-benchmarks-tests",
1008 "bionic-fortify-runtime-asan-test",
1009 "bionic-stress-tests",
1010 "bionic-unit-tests",
1011 "bionic-unit-tests-glibc",
1012 "bionic-unit-tests-static",
1013 "boringssl_crypto_test",
1014 "boringssl_ssl_test",
1015 "cfi_test_helper",
1016 "cfi_test_helper2",
1017 "cintltst32",
1018 "cintltst64",
1019 "compare",
1020 "cpuid",
1021 "debuggerd_test", // depends on unconverted modules: libdebuggerd
1022 "elftls_dlopen_ie_error_helper",
1023 "exec_linker_helper",
1024 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
1025 "fdtrack_test",
1026 "google-benchmark-test",
1027 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
1028 "gtest-typed-test_test",
1029 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1030 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1031 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
1032 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1033 "gtest_tests",
1034 "gtest_tests_no_main",
1035 "gwp_asan_unittest",
1036 "half_test",
1037 "hashcombine_test",
1038 "hevcdec",
1039 "hevcenc",
1040 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
1041 "i444tonv12_eg",
1042 "icu4c_sample_break",
1043 "intltest32",
1044 "intltest64",
1045 "ion-unit-tests",
1046 "jemalloc5_integrationtests",
1047 "jemalloc5_unittests",
1048 "ld_config_test_helper",
1049 "ld_preload_test_helper",
1050 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
1051 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
1052 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
Jingwen Chen537242c2022-08-24 11:53:27 +00001053 "libcutils_sockets_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001054 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +00001055 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +00001056 "libminijail_test",
1057 "libminijail_unittest_gtest",
1058 "libpackagelistparser_test",
1059 "libprotobuf_vendor_suffix_test",
1060 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
1061 "libstagefright_amrnbenc_test",
1062 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
1063 "libstagefright_m4vh263enc_test",
1064 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
1065 "libstatssocket_test",
1066 "libvndksupport-tests",
1067 "libyuv_unittest",
1068 "linker-unit-tests",
1069 "malloc_debug_system_tests",
1070 "malloc_debug_unit_tests",
1071 "malloc_hooks_system_tests",
1072 "mat_test",
1073 "mathtest",
1074 "memunreachable_binder_test", // depends on unconverted modules: libbinder
1075 "memunreachable_test",
1076 "metadata_tests",
1077 "minijail0_cli_unittest_gtest",
1078 "mpeg2dec",
1079 "mvcdec",
1080 "ns_hidden_child_helper",
1081 "pngtest",
1082 "preinit_getauxval_test_helper",
1083 "preinit_syscall_test_helper",
1084 "psnr",
1085 "quat_test",
1086 "rappor-tests", // depends on unconverted modules: jsr305, guava
1087 "scudo_unit_tests",
1088 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
1089 "syscall_filter_unittest_gtest",
Jingwen Chen537242c2022-08-24 11:53:27 +00001090 "thread_exit_cb_helper",
1091 "tls_properties_helper",
1092 "ulp",
1093 "vec_test",
1094 "yuvconstants",
1095 "yuvconvert",
1096 "zipalign_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +00001097
1098 // cc_test_library
1099 "clang_diagnostic_tests",
1100 "exec_linker_helper_lib",
1101 "fortify_disabled_for_tidy",
1102 "ld_config_test_helper_lib1",
1103 "ld_config_test_helper_lib2",
1104 "ld_config_test_helper_lib3",
1105 "ld_preload_test_helper_lib1",
1106 "ld_preload_test_helper_lib2",
1107 "libBionicElfTlsLoaderTests",
1108 "libBionicElfTlsTests",
1109 "libBionicElfTlsTests",
1110 "libBionicFramePointerTests",
1111 "libBionicFramePointerTests",
1112 "libBionicStandardTests",
1113 "libBionicStandardTests",
1114 "libBionicTests",
1115 "libart-broken",
1116 "libatest_simple_zip",
1117 "libcfi-test",
1118 "libcfi-test-bad",
1119 "libcrash_test",
Liz Kammerf6275092023-04-11 11:06:07 -04001120 "libcrypto_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001121 "libdl_preempt_test_1",
1122 "libdl_preempt_test_2",
1123 "libdl_test_df_1_global",
1124 "libdlext_test",
1125 "libdlext_test_different_soname",
1126 "libdlext_test_fd",
1127 "libdlext_test_norelro",
1128 "libdlext_test_recursive",
1129 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -04001130 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001131 "libfortify1-new-tests-clang",
1132 "libfortify1-new-tests-clang",
1133 "libfortify1-tests-clang",
1134 "libfortify1-tests-clang",
1135 "libfortify2-new-tests-clang",
1136 "libfortify2-new-tests-clang",
1137 "libfortify2-tests-clang",
1138 "libfortify2-tests-clang",
1139 "libgnu-hash-table-library",
1140 "libicutest_static",
1141 "liblinker_reloc_bench_000",
1142 "liblinker_reloc_bench_001",
1143 "liblinker_reloc_bench_002",
1144 "liblinker_reloc_bench_003",
1145 "liblinker_reloc_bench_004",
1146 "liblinker_reloc_bench_005",
1147 "liblinker_reloc_bench_006",
1148 "liblinker_reloc_bench_007",
1149 "liblinker_reloc_bench_008",
1150 "liblinker_reloc_bench_009",
1151 "liblinker_reloc_bench_010",
1152 "liblinker_reloc_bench_011",
1153 "liblinker_reloc_bench_012",
1154 "liblinker_reloc_bench_013",
1155 "liblinker_reloc_bench_014",
1156 "liblinker_reloc_bench_015",
1157 "liblinker_reloc_bench_016",
1158 "liblinker_reloc_bench_017",
1159 "liblinker_reloc_bench_018",
1160 "liblinker_reloc_bench_019",
1161 "liblinker_reloc_bench_020",
1162 "liblinker_reloc_bench_021",
1163 "liblinker_reloc_bench_022",
1164 "liblinker_reloc_bench_023",
1165 "liblinker_reloc_bench_024",
1166 "liblinker_reloc_bench_025",
1167 "liblinker_reloc_bench_026",
1168 "liblinker_reloc_bench_027",
1169 "liblinker_reloc_bench_028",
1170 "liblinker_reloc_bench_029",
1171 "liblinker_reloc_bench_030",
1172 "liblinker_reloc_bench_031",
1173 "liblinker_reloc_bench_032",
1174 "liblinker_reloc_bench_033",
1175 "liblinker_reloc_bench_034",
1176 "liblinker_reloc_bench_035",
1177 "liblinker_reloc_bench_036",
1178 "liblinker_reloc_bench_037",
1179 "liblinker_reloc_bench_038",
1180 "liblinker_reloc_bench_039",
1181 "liblinker_reloc_bench_040",
1182 "liblinker_reloc_bench_041",
1183 "liblinker_reloc_bench_042",
1184 "liblinker_reloc_bench_043",
1185 "liblinker_reloc_bench_044",
1186 "liblinker_reloc_bench_045",
1187 "liblinker_reloc_bench_046",
1188 "liblinker_reloc_bench_047",
1189 "liblinker_reloc_bench_048",
1190 "liblinker_reloc_bench_049",
1191 "liblinker_reloc_bench_050",
1192 "liblinker_reloc_bench_051",
1193 "liblinker_reloc_bench_052",
1194 "liblinker_reloc_bench_053",
1195 "liblinker_reloc_bench_054",
1196 "liblinker_reloc_bench_055",
1197 "liblinker_reloc_bench_056",
1198 "liblinker_reloc_bench_057",
1199 "liblinker_reloc_bench_058",
1200 "liblinker_reloc_bench_059",
1201 "liblinker_reloc_bench_060",
1202 "liblinker_reloc_bench_061",
1203 "liblinker_reloc_bench_062",
1204 "liblinker_reloc_bench_063",
1205 "liblinker_reloc_bench_064",
1206 "liblinker_reloc_bench_065",
1207 "liblinker_reloc_bench_066",
1208 "liblinker_reloc_bench_067",
1209 "liblinker_reloc_bench_068",
1210 "liblinker_reloc_bench_069",
1211 "liblinker_reloc_bench_070",
1212 "liblinker_reloc_bench_071",
1213 "liblinker_reloc_bench_072",
1214 "liblinker_reloc_bench_073",
1215 "liblinker_reloc_bench_074",
1216 "liblinker_reloc_bench_075",
1217 "liblinker_reloc_bench_076",
1218 "liblinker_reloc_bench_077",
1219 "liblinker_reloc_bench_078",
1220 "liblinker_reloc_bench_079",
1221 "liblinker_reloc_bench_080",
1222 "liblinker_reloc_bench_081",
1223 "liblinker_reloc_bench_082",
1224 "liblinker_reloc_bench_083",
1225 "liblinker_reloc_bench_084",
1226 "liblinker_reloc_bench_085",
1227 "liblinker_reloc_bench_086",
1228 "liblinker_reloc_bench_087",
1229 "liblinker_reloc_bench_088",
1230 "liblinker_reloc_bench_089",
1231 "liblinker_reloc_bench_090",
1232 "liblinker_reloc_bench_091",
1233 "liblinker_reloc_bench_092",
1234 "liblinker_reloc_bench_093",
1235 "liblinker_reloc_bench_094",
1236 "liblinker_reloc_bench_095",
1237 "liblinker_reloc_bench_096",
1238 "liblinker_reloc_bench_097",
1239 "liblinker_reloc_bench_098",
1240 "liblinker_reloc_bench_099",
1241 "liblinker_reloc_bench_100",
1242 "liblinker_reloc_bench_101",
1243 "liblinker_reloc_bench_102",
1244 "liblinker_reloc_bench_103",
1245 "liblinker_reloc_bench_104",
1246 "liblinker_reloc_bench_105",
1247 "liblinker_reloc_bench_106",
1248 "liblinker_reloc_bench_107",
1249 "liblinker_reloc_bench_108",
1250 "liblinker_reloc_bench_109",
1251 "liblinker_reloc_bench_110",
1252 "liblinker_reloc_bench_111",
1253 "liblinker_reloc_bench_112",
1254 "liblinker_reloc_bench_113",
1255 "liblinker_reloc_bench_114",
1256 "liblinker_reloc_bench_115",
1257 "liblinker_reloc_bench_116",
1258 "liblinker_reloc_bench_117",
1259 "liblinker_reloc_bench_118",
1260 "liblinker_reloc_bench_119",
1261 "liblinker_reloc_bench_120",
1262 "liblinker_reloc_bench_121",
1263 "liblinker_reloc_bench_122",
1264 "liblinker_reloc_bench_123",
1265 "liblinker_reloc_bench_124",
1266 "liblinker_reloc_bench_125",
1267 "liblinker_reloc_bench_126",
1268 "liblinker_reloc_bench_127",
1269 "liblinker_reloc_bench_128",
1270 "liblinker_reloc_bench_129",
1271 "liblinker_reloc_bench_130",
1272 "liblinker_reloc_bench_131",
1273 "liblinker_reloc_bench_132",
1274 "liblinker_reloc_bench_133",
1275 "liblinker_reloc_bench_134",
1276 "liblinker_reloc_bench_135",
1277 "liblinker_reloc_bench_136",
1278 "liblinker_reloc_bench_137",
1279 "liblinker_reloc_bench_138",
1280 "liblinker_reloc_bench_139",
1281 "liblinker_reloc_bench_140",
1282 "liblinker_reloc_bench_141",
1283 "liblinker_reloc_bench_142",
1284 "liblinker_reloc_bench_143",
1285 "liblinker_reloc_bench_144",
1286 "liblinker_reloc_bench_145",
1287 "liblinker_reloc_bench_146",
1288 "liblinker_reloc_bench_147",
1289 "liblinker_reloc_bench_148",
1290 "liblinker_reloc_bench_149",
1291 "liblinker_reloc_bench_150",
1292 "liblinker_reloc_bench_151",
1293 "liblinker_reloc_bench_152",
1294 "liblinker_reloc_bench_153",
1295 "liblinker_reloc_bench_154",
1296 "liblinker_reloc_bench_155",
1297 "liblinker_reloc_bench_156",
1298 "liblinker_reloc_bench_157",
1299 "liblinker_reloc_bench_158",
1300 "liblinker_reloc_bench_159",
1301 "liblinker_reloc_bench_160",
1302 "liblinker_reloc_bench_161",
1303 "liblinker_reloc_bench_162",
1304 "liblinker_reloc_bench_163",
1305 "liblinker_reloc_bench_164",
1306 "liblinker_reloc_bench_165",
1307 "liblinker_reloc_bench_166",
1308 "liblinker_reloc_bench_167",
1309 "liblinker_reloc_bench_168",
1310 "libns_hidden_child_app",
1311 "libns_hidden_child_global",
1312 "libns_hidden_child_internal",
1313 "libns_hidden_child_public",
1314 "libnstest_dlopened",
1315 "libnstest_ns_a_public1",
1316 "libnstest_ns_a_public1_internal",
1317 "libnstest_ns_b_public2",
1318 "libnstest_ns_b_public3",
1319 "libnstest_private",
1320 "libnstest_private_external",
1321 "libnstest_public",
1322 "libnstest_public_internal",
1323 "libnstest_root",
1324 "libnstest_root_not_isolated",
1325 "librelocations-ANDROID_REL",
1326 "librelocations-ANDROID_RELR",
1327 "librelocations-RELR",
1328 "librelocations-fat",
1329 "libsegment_gap_inner",
1330 "libsegment_gap_outer",
Liz Kammerf6275092023-04-11 11:06:07 -04001331 "libssl_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001332 "libstatssocket_private",
1333 "libsysv-hash-table-library",
1334 "libtest_atexit",
1335 "libtest_check_order_dlsym",
1336 "libtest_check_order_dlsym_1_left",
1337 "libtest_check_order_dlsym_2_right",
1338 "libtest_check_order_dlsym_3_c",
1339 "libtest_check_order_dlsym_a",
1340 "libtest_check_order_dlsym_b",
1341 "libtest_check_order_dlsym_d",
1342 "libtest_check_order_reloc_root",
1343 "libtest_check_order_reloc_root_1",
1344 "libtest_check_order_reloc_root_2",
1345 "libtest_check_order_reloc_siblings",
1346 "libtest_check_order_reloc_siblings_1",
1347 "libtest_check_order_reloc_siblings_2",
1348 "libtest_check_order_reloc_siblings_3",
1349 "libtest_check_order_reloc_siblings_a",
1350 "libtest_check_order_reloc_siblings_b",
1351 "libtest_check_order_reloc_siblings_c",
1352 "libtest_check_order_reloc_siblings_c_1",
1353 "libtest_check_order_reloc_siblings_c_2",
1354 "libtest_check_order_reloc_siblings_d",
1355 "libtest_check_order_reloc_siblings_e",
1356 "libtest_check_order_reloc_siblings_f",
1357 "libtest_check_rtld_next_from_library",
1358 "libtest_dlopen_df_1_global",
1359 "libtest_dlopen_from_ctor",
1360 "libtest_dlopen_from_ctor_main",
1361 "libtest_dlopen_weak_undefined_func",
1362 "libtest_dlsym_df_1_global",
1363 "libtest_dlsym_from_this",
1364 "libtest_dlsym_from_this_child",
1365 "libtest_dlsym_from_this_grandchild",
1366 "libtest_dlsym_weak_func",
1367 "libtest_dt_runpath_a",
1368 "libtest_dt_runpath_b",
1369 "libtest_dt_runpath_c",
1370 "libtest_dt_runpath_d",
1371 "libtest_dt_runpath_d_zip",
1372 "libtest_dt_runpath_x",
1373 "libtest_dt_runpath_y",
1374 "libtest_elftls_dynamic",
1375 "libtest_elftls_dynamic_filler_1",
1376 "libtest_elftls_dynamic_filler_2",
1377 "libtest_elftls_dynamic_filler_3",
1378 "libtest_elftls_shared_var",
1379 "libtest_elftls_shared_var_ie",
1380 "libtest_elftls_tprel",
1381 "libtest_empty",
1382 "libtest_ifunc",
1383 "libtest_ifunc_variable",
1384 "libtest_ifunc_variable_impl",
1385 "libtest_indirect_thread_local_dtor",
1386 "libtest_init_fini_order_child",
1387 "libtest_init_fini_order_grand_child",
1388 "libtest_init_fini_order_root",
1389 "libtest_init_fini_order_root2",
1390 "libtest_missing_symbol",
1391 "libtest_missing_symbol_child_private",
1392 "libtest_missing_symbol_child_public",
1393 "libtest_missing_symbol_root",
1394 "libtest_nodelete_1",
1395 "libtest_nodelete_2",
1396 "libtest_nodelete_dt_flags_1",
1397 "libtest_pthread_atfork",
1398 "libtest_relo_check_dt_needed_order",
1399 "libtest_relo_check_dt_needed_order_1",
1400 "libtest_relo_check_dt_needed_order_2",
1401 "libtest_simple",
1402 "libtest_thread_local_dtor",
1403 "libtest_thread_local_dtor2",
1404 "libtest_two_parents_child",
1405 "libtest_two_parents_parent1",
1406 "libtest_two_parents_parent2",
1407 "libtest_versioned_lib",
1408 "libtest_versioned_libv1",
1409 "libtest_versioned_libv2",
1410 "libtest_versioned_otherlib",
1411 "libtest_versioned_otherlib_empty",
1412 "libtest_versioned_uselibv1",
1413 "libtest_versioned_uselibv2",
1414 "libtest_versioned_uselibv2_other",
1415 "libtest_versioned_uselibv3_other",
1416 "libtest_with_dependency",
1417 "libtest_with_dependency_loop",
1418 "libtest_with_dependency_loop_a",
1419 "libtest_with_dependency_loop_b",
1420 "libtest_with_dependency_loop_b_tmp",
1421 "libtest_with_dependency_loop_c",
1422 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001423
1424 // depends on unconverted libprotobuf-java-nano
1425 "dnsresolverprotosnano",
1426 "launcherprotosnano",
1427 "datastallprotosnano",
1428 "devicepolicyprotosnano",
Wei Li7d8f6182022-10-11 14:38:16 -07001429 "ota_metadata_proto_java",
1430 "merge_ota",
1431
1432 // releasetools
Wei Li7d8f6182022-10-11 14:38:16 -07001433 "verity_utils",
1434 "check_ota_package_signature",
1435 "check_target_files_vintf",
1436 "releasetools_check_target_files_vintf",
Wei Li7d8f6182022-10-11 14:38:16 -07001437 "ota_from_target_files",
1438 "releasetools_ota_from_target_files",
Wei Li7d8f6182022-10-11 14:38:16 -07001439 "add_img_to_target_files",
1440 "releasetools_add_img_to_target_files",
1441 "fsverity_metadata_generator",
1442 "sign_target_files_apks",
1443
1444 // depends on the support of yacc file
1445 "libapplypatch",
1446 "libapplypatch_modes",
1447 "applypatch",
Yu Liu6c999ef2022-10-19 16:41:10 +00001448
1449 // TODO(b/254476335): disable the following due to this bug
1450 "libapexinfo",
1451 "libapexinfo_tests",
Colin Cross20c89f12022-12-05 16:47:44 -08001452
1453 // uses glob in $(locations)
1454 "libc_musl_sysroot",
Kevin Dagostino2c3be412023-02-07 04:10:27 +00001455
1456 // TODO(b/266459895): depends on libunwindstack
1457 "libutils_test",
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001458
Cole Faustd82f0362023-04-12 17:32:19 -07001459 // Has dependencies on other tools like ziptool, bp2build'd data properties don't work with these tests atm
1460 "ziparchive_tests_large",
1461 "mkbootimg_test",
1462 "certify_bootimg_test",
1463
1464 // Despite being _host module types, these require devices to run
1465 "logd_integration_test",
1466 "mobly-hello-world-test",
1467 "mobly-multidevice-test",
1468
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001469 // TODO(b/274805756): Support core_platform and current java APIs
1470 "fake-framework",
1471
1472 // TODO(b/277616982): These modules depend on private java APIs, but maybe they don't need to.
1473 "StreamingProtoTest",
1474 "textclassifierprotoslite",
1475 "styleprotoslite",
1476 "CtsPkgInstallerConstants",
1477 "guava-android-testlib",
Sam Delmericobefbf052023-04-28 11:23:58 -04001478
1479 "MetaDataBaseUnitTest", // depends on libstagefright
1480 "AVCUtilsUnitTest", // depends on libstagefright
1481 "ColorUtilsTest", // depends on libmediandk
Wei Li74e3e002023-04-26 12:15:55 -07001482
1483 // python_test_host with test data
1484 "sbom_writers_test",
Zi Wang65b36722023-05-23 15:18:33 -07001485
1486 // TODO(B/283193845): tradefed and its java_test_host dependents
1487 "tradefed",
1488 "permissive_mte_test",
1489 "ICU4CTestRunner",
1490
Zi Wangb9d36bc2023-06-02 15:25:50 -07001491 "HelloWorldHostTest", // TODO(b/280452825): Convert HelloWorldHostTest to b test
Sam Delmericoa8a10862023-06-12 14:37:56 -04001492
1493 "libprotobuf-full-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1494 "libprotobuf-lite-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
Sam Delmerico96c15502023-06-12 16:09:09 -04001495
Jason Wu5d5a3bb2023-06-14 13:24:24 -04001496 "logcat", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1497
Jason Wuee51c542023-06-13 14:54:56 -04001498 "expresscatalogvalidator", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1499
Sam Delmerico96c15502023-06-12 16:09:09 -04001500 // depends on other //art modules
1501 "libart-for-test",
1502 "libart_generated_headers",
1503 "libart-runtime-gtest",
1504 "libartd-runtime-gtest",
Sam Delmerico24c56032022-03-28 19:53:03 +00001505 }
1506
Sam Delmerico24c56032022-03-28 19:53:03 +00001507 MixedBuildsDisabledList = []string{
Liz Kammer63367e12022-06-13 19:35:12 +00001508 "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
1509
Sam Delmerico24c56032022-03-28 19:53:03 +00001510 "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
1511
1512 "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
1513 "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.
1514
1515 "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
1516 "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
1517 "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
1518
1519 // Depends on libprotobuf-cpp-*
1520 "libadb_pairing_connection",
1521 "libadb_pairing_connection_static",
1522 "libadb_pairing_server", "libadb_pairing_server_static",
1523
Sam Delmerico277795c2022-02-25 17:04:37 +00001524 // java_import[_host] issues
1525 // tradefed prebuilts depend on libprotobuf
1526 "prebuilt_tradefed",
1527 "prebuilt_tradefed-test-framework",
1528 // handcrafted BUILD.bazel files in //prebuilts/...
1529 "prebuilt_r8lib-prebuilt",
1530 "prebuilt_sdk-core-lambda-stubs",
1531 "prebuilt_android-support-collections-nodeps",
1532 "prebuilt_android-arch-core-common-nodeps",
1533 "prebuilt_android-arch-lifecycle-common-java8-nodeps",
1534 "prebuilt_android-arch-lifecycle-common-nodeps",
1535 "prebuilt_android-support-annotations-nodeps",
1536 "prebuilt_android-arch-paging-common-nodeps",
1537 "prebuilt_android-arch-room-common-nodeps",
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001538 // TODO(b/217750501) exclude_dirs property not supported
1539 "prebuilt_kotlin-reflect",
1540 "prebuilt_kotlin-stdlib",
1541 "prebuilt_kotlin-stdlib-jdk7",
1542 "prebuilt_kotlin-stdlib-jdk8",
1543 "prebuilt_kotlin-test",
1544 // TODO(b/217750501) exclude_files property not supported
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001545 "prebuilt_currysrc_org.eclipse",
Yu Liu828c4062023-01-23 20:56:46 +00001546
1547 // TODO(b/266459895): re-enable libunwindstack
1548 "libunwindstack",
1549 "libunwindstack_stdout_log",
1550 "libunwindstack_no_dex",
1551 "libunwindstack_utils",
1552 "unwind_reg_info",
1553 "libunwindstack_local",
1554 "unwind_for_offline",
1555 "unwind",
1556 "unwind_info",
1557 "unwind_symbols",
Yu Liu828c4062023-01-23 20:56:46 +00001558 "libEGL",
Yu Liu828c4062023-01-23 20:56:46 +00001559 "libGLESv2",
Liz Kammerf2355052023-03-22 11:14:34 -04001560 "libc_malloc_debug",
1561 "libcodec2_hidl@1.0",
Yu Liu828c4062023-01-23 20:56:46 +00001562 "libcodec2_hidl@1.1",
Yu Liu828c4062023-01-23 20:56:46 +00001563 "libcodec2_hidl@1.2",
Liz Kammerf2355052023-03-22 11:14:34 -04001564 "libfdtrack",
1565 "libgui",
1566 "libgui_bufferqueue_static",
1567 "libmedia_codecserviceregistrant",
1568 "libstagefright_bufferqueue_helper_novndk",
Yu Liu828c4062023-01-23 20:56:46 +00001569 "libutils_test",
1570 "libutilscallstack",
Liz Kammerf2355052023-03-22 11:14:34 -04001571 "mediaswcodec",
Sam Delmerico24c56032022-03-28 19:53:03 +00001572 }
Chris Parsonsef615e52022-08-18 22:04:11 -04001573
Chris Parsons66fc7452022-11-04 13:26:17 -04001574 // Bazel prod-mode allowlist. Modules in this list are built by Bazel
1575 // in either prod mode or staging mode.
Jingwen Chen889f2f22022-12-16 08:16:01 +00001576 ProdMixedBuildsEnabledList = []string{
Jingwen Chen01addfc2023-03-13 12:49:52 +00001577 // M5: tzdata launch
Jingwen Chen889f2f22022-12-16 08:16:01 +00001578 "com.android.tzdata",
1579 "test1_com.android.tzdata",
Jingwen Chen61342112023-04-11 08:49:01 +00001580 "test3_com.android.tzdata",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001581 // M7: adbd launch
Jingwen Chen98bf5cc2022-12-14 13:27:25 +00001582 "com.android.adbd",
1583 "test_com.android.adbd",
1584 "adbd_test",
1585 "adb_crypto_test",
1586 "adb_pairing_auth_test",
1587 "adb_pairing_connection_test",
1588 "adb_tls_connection_test",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001589 // M9: mixed builds for mainline trains launch
1590 "api_fingerprint",
Sam Delmerico96e53702023-04-07 15:09:37 -04001591 // M11: neuralnetworks launch
1592 "com.android.neuralnetworks",
1593 "test_com.android.neuralnetworks",
1594 "libneuralnetworks",
1595 "libneuralnetworks_static",
Jingwen Chen889f2f22022-12-16 08:16:01 +00001596 }
MarkDacekb78465d2022-10-18 20:10:16 +00001597
Chris Parsons66fc7452022-11-04 13:26:17 -04001598 // Staging-mode allowlist. Modules in this list are only built
1599 // by Bazel with --bazel-mode-staging. This list should contain modules
1600 // which will soon be added to the prod allowlist.
MarkDacek421a4d62022-12-13 21:17:08 +00001601 // It is implicit that all modules in ProdMixedBuildsEnabledList will
1602 // also be built - do not add them to this list.
Sam Delmericobefbf052023-04-28 11:23:58 -04001603 StagingMixedBuildsEnabledList = []string{
1604 // M13: media.swcodec launch
Sam Delmerico3402c0a2023-05-17 16:32:15 -04001605 "com.android.media.swcodec",
1606 "test_com.android.media.swcodec",
1607 "libstagefright_foundation",
1608 "libcodec2_hidl@1.0",
Sam Delmericobefbf052023-04-28 11:23:58 -04001609 }
Yu Liue4312402023-01-18 09:15:31 -08001610
1611 // These should be the libs that are included by the apexes in the ProdMixedBuildsEnabledList
Jingwen Chen01addfc2023-03-13 12:49:52 +00001612 ProdDclaMixedBuildsEnabledList = []string{
Yu Liue4312402023-01-18 09:15:31 -08001613 "libbase",
1614 "libc++",
1615 "libcrypto",
1616 "libcutils",
1617 }
1618
Jingwen Chen01addfc2023-03-13 12:49:52 +00001619 // These should be the libs that are included by the apexes in the StagingMixedBuildsEnabledList
Yu Liu7301fc82023-05-02 11:39:10 -07001620 StagingDclaMixedBuildsEnabledList = []string{
1621 "libstagefright_flacdec",
1622 "libutils",
1623 }
Jingwen Chen01addfc2023-03-13 12:49:52 +00001624
Yu Liue4312402023-01-18 09:15:31 -08001625 // TODO(b/269342245): Enable the rest of the DCLA libs
1626 // "libssl",
Jeongik Chae114e602023-03-19 00:12:39 +09001627
Jeongik Chab745e2e2023-04-11 14:28:43 +09001628 // The list of module types which are expected to spend lots of build time.
1629 // With `--ninja_weight_source=soong`, ninja builds these module types and deps first.
1630 HugeModuleTypePrefixMap = map[string]int{
1631 "rust_": HIGH_PRIORITIZED_WEIGHT,
1632 "droidstubs": DEFAULT_PRIORITIZED_WEIGHT,
1633 "art_": DEFAULT_PRIORITIZED_WEIGHT,
1634 "ndk_library": DEFAULT_PRIORITIZED_WEIGHT,
Jeongik Chae114e602023-03-19 00:12:39 +09001635 }
Sam Delmerico24c56032022-03-28 19:53:03 +00001636)