blob: 849c823ac204f13446868ddcb30c98fd264bdf21 [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,
Spandan Das390a6d62023-08-01 22:50:46 +0000124 "external/abseil-cpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400125 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700126 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000127 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400128 "external/auto/common": Bp2BuildDefaultTrueRecursively,
129 "external/auto/service": Bp2BuildDefaultTrueRecursively,
130 "external/boringssl": Bp2BuildDefaultTrueRecursively,
131 "external/bouncycastle": Bp2BuildDefaultTrue,
132 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700133 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
134 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Alixe2667872023-04-24 14:57:32 +0000135 "external/clang/lib": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400136 "external/conscrypt": Bp2BuildDefaultTrue,
137 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
138 "external/eigen": Bp2BuildDefaultTrueRecursively,
139 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
140 "external/error_prone": Bp2BuildDefaultTrueRecursively,
Usta Shresthad66f2ce2023-03-15 15:01:59 -0400141 "external/escapevelocity": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400142 "external/expat": Bp2BuildDefaultTrueRecursively,
143 "external/f2fs-tools": Bp2BuildDefaultTrue,
144 "external/flac": Bp2BuildDefaultTrueRecursively,
Liz Kammere848bb22023-06-29 09:21:50 -0400145 "external/flatbuffers": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400146 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700147 "external/fsverity-utils": Bp2BuildDefaultTrueRecursively,
Spandan Das2a8f9002023-08-16 17:49:25 +0000148 "external/gflags": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400149 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
150 "external/googletest": Bp2BuildDefaultTrueRecursively,
Liz Kammere848bb22023-06-29 09:21:50 -0400151 "external/guava": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400152 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
153 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
154 "external/icu": Bp2BuildDefaultTrueRecursively,
155 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
156 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400157 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400158 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400159 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400160 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000161 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400162 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
163 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500164 "external/jsr305": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500165 "external/jsr330": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400166 "external/junit": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500167 "external/kotlinc": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400168 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400169 "external/libavc": Bp2BuildDefaultTrueRecursively,
170 "external/libcap": Bp2BuildDefaultTrueRecursively,
171 "external/libcxx": Bp2BuildDefaultTrueRecursively,
172 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700173 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000174 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400175 "external/libevent": Bp2BuildDefaultTrueRecursively,
176 "external/libgav1": Bp2BuildDefaultTrueRecursively,
177 "external/libhevc": Bp2BuildDefaultTrueRecursively,
178 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
179 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
180 "external/libpng": Bp2BuildDefaultTrueRecursively,
Liz Kammer33dddf52023-09-07 14:54:41 -0400181 "external/libphonenumber": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700182 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700183 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400184 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700185 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400186 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
187 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
188 "external/minijail": Bp2BuildDefaultTrueRecursively,
Colin Cross20c89f12022-12-05 16:47:44 -0800189 "external/musl": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000190 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000191 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Spandan Das6960ac12022-11-22 04:45:05 +0000192 "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400193 "external/pcre": Bp2BuildDefaultTrueRecursively,
194 "external/protobuf": Bp2BuildDefaultTrueRecursively,
Spandan Das390a6d62023-08-01 22:50:46 +0000195 "external/python/pyyaml/lib/yaml": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400196 "external/python/six": Bp2BuildDefaultTrueRecursively,
Spandan Das77ce1272023-08-02 04:52:25 +0000197 "external/python/jinja/src": Bp2BuildDefaultTrueRecursively,
198 "external/python/markupsafe/src": Bp2BuildDefaultTrueRecursively,
199 "external/python/setuptools": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400200 "external/rappor": Bp2BuildDefaultTrueRecursively,
201 "external/scudo": Bp2BuildDefaultTrueRecursively,
Cole Faust6cac8cb2023-06-15 15:01:30 -0700202 "external/selinux/checkpolicy": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400203 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
204 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700205 "external/speex": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400206 "external/sqlite": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000207 "external/tinyalsa": Bp2BuildDefaultTrueRecursively,
208 "external/tinyalsa_new": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400209 "external/toybox": Bp2BuildDefaultTrueRecursively,
210 "external/zlib": Bp2BuildDefaultTrueRecursively,
211 "external/zopfli": Bp2BuildDefaultTrueRecursively,
212 "external/zstd": Bp2BuildDefaultTrueRecursively,
213
Jingwen Chen1ec77852022-11-07 14:36:12 +0000214 "frameworks/av": Bp2BuildDefaultTrue,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400215 "frameworks/av/media/audioaidlconversion": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400216 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000217 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000218 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400219 "frameworks/av/media/libmediahelper": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500220 "frameworks/av/media/libshmem": Bp2BuildDefaultTrueRecursively,
Liz Kammere7a47122023-05-12 08:44:51 -0400221 "frameworks/av/media/module/codecs": Bp2BuildDefaultTrueRecursively,
222 "frameworks/av/media/module/foundation": Bp2BuildDefaultTrueRecursively,
Jingwen Chen8ebc6202022-09-14 11:48:21 +0000223 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000224 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400225 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
Vinh Tran320aecf2023-04-28 11:21:25 -0400226 "frameworks/base/libs/services": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400227 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400228 "frameworks/base/proto": Bp2BuildDefaultTrue,
Liz Kammere7a47122023-05-12 08:44:51 -0400229 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400230 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
231 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
Yu Liua06f8692023-08-31 16:30:07 -0700232 "frameworks/base/tools/aapt": Bp2BuildDefaultTrue,
Liz Kammer09d831e2022-09-16 09:02:26 -0400233 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
Alix9d562792023-03-02 17:12:30 +0000234 "frameworks/base/tools/codegen": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000235 "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
Vinh Tran9b09bc52023-02-21 09:56:25 -0500236 "frameworks/hardware/interfaces/stats/aidl": Bp2BuildDefaultTrue,
Liz Kammere7a47122023-05-12 08:44:51 -0400237 "frameworks/libs/modules-utils/build": Bp2BuildDefaultTrueRecursively,
Motomu Utsumi44591552023-08-22 12:03:16 +0900238 "frameworks/libs/net/common/native": Bp2BuildDefaultTrueRecursively, // TODO(b/296014682): Remove this path
Liz Kammere848bb22023-06-29 09:21:50 -0400239 "frameworks/native": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400240 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
241 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400242 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400243 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
244 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400245 "frameworks/native/libs/permission": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400246 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400247 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
248 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
249 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
250 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
251 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000252 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000253 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400254
Liz Kammere76510b2023-03-20 17:30:51 -0400255 "hardware/interfaces": Bp2BuildDefaultTrue,
256 "hardware/interfaces/audio/aidl": Bp2BuildDefaultTrue,
257 "hardware/interfaces/audio/aidl/common": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000258 "hardware/interfaces/audio/aidl/default": Bp2BuildDefaultTrue,
259 "hardware/interfaces/audio/aidl/sounddose": Bp2BuildDefaultTrue,
Spandan Das8fe96ce2023-08-18 17:10:23 +0000260 "hardware/interfaces/camera/metadata/aidl": Bp2BuildDefaultTrueRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400261 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
262 "hardware/interfaces/common/fmq/aidl": Bp2BuildDefaultTrue,
263 "hardware/interfaces/common/support": Bp2BuildDefaultTrue,
264 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
265 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
266 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
267 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
268 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
269 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
270 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
271 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
272 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
273 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
274 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
275 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
276 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
277 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
278 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
279 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
280 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
281 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
282 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
283 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
284 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
285 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
286 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
287 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
288 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
Liz Kammer4fd2edb2023-09-08 08:56:46 -0400289 "hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400290 "hardware/interfaces/media/bufferpool/aidl/default/tests": Bp2BuildDefaultFalseRecursively,
Liz Kammer4fd2edb2023-09-08 08:56:46 -0400291 "hardware/interfaces/media/omx/1.0/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400292 "hardware/interfaces/neuralnetworks": Bp2BuildDefaultTrueRecursively,
293 "hardware/interfaces/neuralnetworks/aidl/vts": Bp2BuildDefaultFalseRecursively,
294 "hardware/interfaces/neuralnetworks/1.0/vts": Bp2BuildDefaultFalseRecursively,
295 "hardware/interfaces/neuralnetworks/1.1/vts": Bp2BuildDefaultFalseRecursively,
296 "hardware/interfaces/neuralnetworks/1.2/vts": Bp2BuildDefaultFalseRecursively,
297 "hardware/interfaces/neuralnetworks/1.3/vts": Bp2BuildDefaultFalseRecursively,
298 "hardware/interfaces/neuralnetworks/1.4/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400299
300 "libnativehelper": Bp2BuildDefaultTrueRecursively,
301
Alix79f853d2023-02-10 15:57:01 +0000302 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
303 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
304 "packages/apps/Protips": Bp2BuildDefaultTrue,
305 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
306 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
307 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
308 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
309 "packages/modules/adb": Bp2BuildDefaultTrue,
310 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
Liz Kammer01c09ca2023-08-09 15:47:54 -0400311 "packages/modules/adb/fastdeploy": Bp2BuildDefaultTrue,
Alix79f853d2023-02-10 15:57:01 +0000312 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
313 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
314 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
315 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
316 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
317 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
Motomu Utsumi44591552023-08-22 12:03:16 +0900318 "packages/modules/Connectivity/staticlibs/native": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000319 "packages/modules/Gki/libkver": Bp2BuildDefaultTrue,
Alix79f853d2023-02-10 15:57:01 +0000320 "packages/modules/NetworkStack/common/captiveportal": Bp2BuildDefaultTrue,
Yu Liue1ab66d2023-03-24 10:53:02 -0700321 "packages/modules/NeuralNetworks/apex": Bp2BuildDefaultTrue,
MarkDacekb9e11c52023-04-26 21:28:16 +0000322 "packages/modules/NeuralNetworks/apex/testing": Bp2BuildDefaultTrue,
Alix79f853d2023-02-10 15:57:01 +0000323 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
324 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
325 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400326
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000327 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
328
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400329 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
330 "prebuilts/gradle-plugin": Bp2BuildDefaultTrueRecursively,
331 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux8242b432023-05-04 10:16:26 -0400332 "prebuilts/sdk": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400333 "prebuilts/sdk/current/androidx": Bp2BuildDefaultTrue,
334 "prebuilts/sdk/current/androidx-legacy": Bp2BuildDefaultTrue,
335 "prebuilts/sdk/current/extras/constraint-layout-x": Bp2BuildDefaultTrue,
336 "prebuilts/sdk/current/extras/material-design-x": Bp2BuildDefaultTrue,
337 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
338 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
339 "prebuilts/tools": Bp2BuildDefaultTrue,
340 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
Romain Jobredeaux890d6ea2023-08-23 10:53:07 -0400341 "prebuilts/r8": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400342
Alixb4e09a02022-09-27 15:36:01 +0000343 "sdk/dumpeventlog": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000344 "sdk/eventanalyzer": Bp2BuildDefaultTrue,
Alixb4e09a02022-09-27 15:36:01 +0000345
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000346 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
347 "system/apex/apexer": Bp2BuildDefaultTrue,
348 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
Jingwen Chena1a17752023-06-15 11:06:34 +0000349 "system/apex/libs/libapexsupport": Bp2BuildDefaultFalseRecursively, // TODO(b/267572288): depends on rust
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000350 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
351 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
352 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
353 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000354 "system/core/healthd": Bp2BuildDefaultTrue,
355 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000356 "system/core/libasyncio": Bp2BuildDefaultTrue,
357 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
358 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
359 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
360 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
361 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
362 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700363 "system/core/libsparse": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000364 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000365 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000366 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000367 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
368 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700369 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000370 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
371 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700372 "system/extras/f2fs_utils": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700373 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700374 "system/extras/verity": Bp2BuildDefaultTrueRecursively,
Chris Parsons52b842a2022-12-19 11:45:23 -0500375 "system/hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400376 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000377 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
378 "system/libbase": Bp2BuildDefaultTrueRecursively,
379 "system/libfmq": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400380 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
381 "system/libhidl/transport": Bp2BuildDefaultTrue,
382 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700383 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
384 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
385 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
386 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400387 "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
388 "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
389 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
390 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
391 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000392 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
393 "system/libprocinfo": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000394 "system/libvintf": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000395 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000396 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700397 "system/media": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000398 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000399 "system/media/alsa_utils": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700400 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Spandan Das8fe96ce2023-08-18 17:10:23 +0000401 "system/media/camera": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000402 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
403 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
404 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700405 "system/security/fsverity": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000406 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000407 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
408 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Jingwen Chen61342112023-04-11 08:49:01 +0000409 "system/timezone/testdata": Bp2BuildDefaultTrueRecursively,
410 "system/timezone/testing": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400411 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000412 "system/tools/aidl/metadata": Bp2BuildDefaultTrue,
413 "system/tools/hidl/metadata": Bp2BuildDefaultTrue,
Liz Kammer4fd2edb2023-09-08 08:56:46 -0400414 "system/tools/hidl/utils": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700415 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400416 "system/tools/sysprop": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000417 "system/tools/xsdc/utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000418 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400419
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400420 "tools/apifinder": Bp2BuildDefaultTrue,
Dan Albertf1235a82023-04-13 16:39:28 +0000421 "tools/apksig": Bp2BuildDefaultTrue,
422 "tools/external_updater": Bp2BuildDefaultTrueRecursively,
Paul Duffin85e33c12023-09-07 12:08:53 +0100423 "tools/metalava": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400424 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
425 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000426 }
427
428 Bp2buildKeepExistingBuildFile = map[string]bool{
429 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
430 ".":/*recursive = */ false,
431
Cole Faust324a92e2022-08-23 15:29:05 -0700432 "build/bazel":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000433 "build/make/core":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000434 "build/bazel_common_rules":/* recursive = */ true,
Cole Faust10b94de2023-03-31 17:38:33 -0700435 "build/make/target/product/security":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000436 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
437 "build/make/tools":/* recursive = */ false,
438 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000439 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000440
441 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
442 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
443 "external/bazelbuild-rules_android":/* recursive = */ true,
Vinh Tran79587fa2023-08-18 13:50:00 -0400444 "external/bazelbuild-rules_cc":/* recursive = */ true,
Romain Jobredeaux01e6b2c2023-07-19 15:27:13 -0400445 "external/bazelbuild-rules_java":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700446 "external/bazelbuild-rules_license":/* recursive = */ true,
Spandan Das4a5bc5c2023-06-26 03:44:04 +0000447 "external/bazelbuild-rules_go":/* recursive = */ true,
Vinh Tranf5e59812023-08-03 19:47:30 +0000448 "external/bazelbuild-rules_python":/* recursive = */ true,
Vinh Tranfe1ecfc2023-06-27 22:20:15 -0400449 "external/bazelbuild-rules_rust":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400450 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000451 "external/bazel-skylib":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700452 "external/protobuf":/* recursive = */ false,
Cole Faustde12be32022-11-19 15:14:48 -0800453 "external/python/absl-py":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000454
Trevor Radcliffe391a25d2023-03-22 20:22:27 +0000455 "external/compiler-rt/lib/cfi":/* recursive = */ false,
456
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000457 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
458 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
459
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500460 // Building manually due to b/179889880: resource files cross package boundary
Sam Delmerico24c56032022-03-28 19:53:03 +0000461 "packages/apps/Music":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000462
Yu Liu56ccb1a2022-11-12 10:47:07 -0800463 "prebuilts/abi-dumps/platform":/* recursive = */ true,
464 "prebuilts/abi-dumps/ndk":/* recursive = */ true,
Romain Jobredeaux29197972022-05-30 22:02:31 -0400465 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000466 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700467 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Yu Liu56ccb1a2022-11-12 10:47:07 -0800468 "prebuilts/clang-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000469 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000470 "prebuilts/build-tools":/* recursive = */ true,
Romain Jobredeauxd4e1a152023-03-17 11:02:01 -0400471 "prebuilts/jdk/jdk17":/* recursive = */ true,
Cole Faust7071a052022-07-29 15:58:33 -0700472 "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 +0000473 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000474 "prebuilts/sdk/tools":/* recursive = */ false,
475 "prebuilts/r8":/* recursive = */ false,
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000476 "prebuilts/runtime":/* recursive = */ false,
Vinh Tranfe1ecfc2023-06-27 22:20:15 -0400477 "prebuilts/rust":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000478
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000479 // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
480 "tools/asuite/atest":/* recursive = */ false,
481 "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
Yu Liu828c4062023-01-23 20:56:46 +0000482
483 // TODO(b/266459895): remove this and the placeholder BUILD file after re-enabling libunwindstack
484 "external/rust/crates/rustc-demangle-capi":/* recursive = */ false,
Chris Parsons8152a942023-06-06 16:17:50 +0000485
486 // Used for testing purposes only. Should not actually exist in the real source tree.
487 "testpkg/keep_build_file":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000488 }
489
490 Bp2buildModuleAlwaysConvertList = []string{
Vinh Tran3570ce32023-08-24 11:10:01 -0400491 // aconfig
492 "libonce_cell",
493 "libanyhow",
494 "libunicode_segmentation",
495 "libmemchr",
496 "libbitflags-1.3.2",
497 "libryu",
498 "libitoa",
499 "libos_str_bytes",
500 "libheck",
Vinh Tranc1a6cee2023-08-24 12:10:49 -0400501 "libclap_lex",
502 "libsyn",
503 "libquote",
504 "libunicode_ident",
505 "libproc_macro2",
506 "libthiserror_impl",
507 "libserde_derive",
508 "libclap_derive",
509 "libthiserror",
510 "libserde",
511 "libclap",
512 "libbytes",
513 "libprotobuf_support",
514 "libtinytemplate",
515 "libserde_json",
Vinh Tran9b846782023-08-24 12:55:12 -0400516 "libprotobuf",
Vinh Tran3570ce32023-08-24 11:10:01 -0400517
Vinh Tran85b177d2023-08-24 12:10:49 -0400518 "protoc-gen-rust",
519 "libprotobuf_codegen",
520 "libprotobuf_parse",
521 "libregex",
522 "libtempfile",
523 "libwhich",
524 "libregex_syntax",
525 "libfastrand",
526 "libeither",
527 "libaho_corasick",
528 "liblibc",
529 "libcfg_if",
530 "liblog_rust",
531 "libgetrandom",
532 "libremove_dir_all",
533 "libahash",
534 "libhashbrown",
535 "libindexmap",
536 "libaconfig_protos",
537 "libpaste",
538 "aconfig",
539
Liz Kammer877b8462023-08-04 16:38:22 -0400540 // ext
541 "tagsoup",
542
543 // framework-res
544 "remote-color-resources-compile-public",
545 "remote-color-resources-compile-colors",
546
547 // framework-minus-apex
548 "android.mime.types.minimized",
549 "debian.mime.types.minimized",
550 "framework-javastream-protos",
551 "libview-inspector-annotation-processor",
552
553 // services
554 "apache-commons-math",
555 "cbor-java",
556 "icu4j_calendar_astronomer",
557 "json",
558 "remote-color-resources-compile-public",
559 "statslog-art-java-gen",
560 "statslog-framework-java-gen",
561
562 "AndroidCommonLint",
563 "ImmutabilityAnnotation",
564 "ImmutabilityAnnotationProcessorHostLibrary",
565
Liz Kammer09d831e2022-09-16 09:02:26 -0400566 "libidmap2_policies",
567 "libSurfaceFlingerProp",
Liz Kammere848bb22023-06-29 09:21:50 -0400568 "toolbox_input_labels",
569
Liz Kammerbe1315e2022-05-10 09:15:31 -0400570 // cc mainline modules
Liz Kammera7bea312023-05-04 09:51:56 -0400571
572 // com.android.media.swcodec
Vinh Tran2dbc7452022-09-29 10:49:07 -0400573 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400574 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400575 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400576 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400577 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400578 "com.android.media.swcodec.certificate",
579 "com.android.media.swcodec.key",
Liz Kammera7bea312023-05-04 09:51:56 -0400580 "test_com.android.media.swcodec",
581
582 // deps
583 "code_coverage.policy",
584 "code_coverage.policy.other",
585 "codec2_soft_exports",
Spandan Das8d6bf5e2023-05-19 00:18:49 +0000586 "compatibility_matrix_schema",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400587 "framework-connectivity-protos",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400588 "gemmlowp_headers",
589 "gl_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000590 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400591 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400592 "libaudioclient_aidl_conversion_util",
Vinh Tran9f6796a2022-08-16 13:10:31 -0400593 "libbinder",
594 "libbinder_device_interface_sources",
Vinh Tran444154d2022-08-16 13:10:31 -0400595 "libbinder_aidl",
Liz Kammer63367e12022-06-13 19:35:12 +0000596 "libbinder_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400597 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400598 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400599 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000600 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400601 "libcodec2_headers",
602 "libcodec2_internal",
603 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400604 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400605 "libgrallocusage",
606 "libgralloctypes",
607 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400608 "libneuralnetworks",
Sam Delmerico646dcfa2023-04-07 14:38:32 -0400609 "libneuralnetworks_static",
Vinh Tran99fd6502022-09-09 18:36:24 -0400610 "libgraphicsenv",
Liz Kammer63367e12022-06-13 19:35:12 +0000611 "libhardware",
Liz Kammer5068eae2022-05-11 17:24:29 -0400612 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400613 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400614 "libnativewindow_headers",
615 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400616 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400617 "libopus",
618 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000619 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700620 "libandroidio",
621 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400622 "libserviceutils",
Liz Kammer63367e12022-06-13 19:35:12 +0000623 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400624 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400625 "libtextclassifier_hash_headers",
626 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000627 "libtflite_kernel_utils",
628 "libtinyxml2",
Vinh Tran99fd6502022-09-09 18:36:24 -0400629 "libui",
Liz Kammer5068eae2022-05-11 17:24:29 -0400630 "libui-types",
Liz Kammer63367e12022-06-13 19:35:12 +0000631 "libui_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400632 "libvorbisidec",
633 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000634 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400635 "mediaswcodec.policy",
636 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400637 "neuralnetworks_types",
Vinh Tran99fd6502022-09-09 18:36:24 -0400638 "libneuralnetworks_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400639 // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
640 "packagemanager_aidl_interface",
Liz Kammer63367e12022-06-13 19:35:12 +0000641 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400642 "philox_random_headers",
643 "server_configurable_flags",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400644 "service-permission-streaming-proto-sources",
Vinh Tranf19b6582022-09-21 17:01:49 -0400645 "statslog_neuralnetworks.cpp",
646 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400647 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400648
Vinh Tran99fd6502022-09-09 18:36:24 -0400649 "libstagefright_bufferpool@2.0",
650 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400651 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400652
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000653 // prebuilts
654 "prebuilt_stats-log-api-gen",
655
Jingwen Chen9009dc22022-08-04 15:26:46 +0000656 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000657 "fastboot",
658 "libfastboot",
659 "liblp",
660 "libstorage_literals_headers",
661
Liz Kammerf0ab5462023-04-04 11:38:54 -0400662 "PluginCoreLib",
663 "dagger2",
664 "dagger2-android-annotation-stubs",
665 "dagger2-bootstrap-compiler",
666 "dagger2-producers",
667 "okio-lib",
668 "setupdesign-strings",
669
Sam Delmerico24c56032022-03-28 19:53:03 +0000670 //external/avb
671 "avbtool",
672 "libavb",
673 "avb_headers",
674
Alix5918d642022-06-27 20:57:44 +0000675 //external/libxml2
676 "xmllint",
677 "libxml2",
678
Sam Delmerico24c56032022-03-28 19:53:03 +0000679 //external/fec
680 "libfec_rs",
681
Vinh Tran320aecf2023-04-28 11:21:25 -0400682 //frameworks/base/core/java
683 "IDropBoxManagerService_aidl",
684
Sam Delmerico24c56032022-03-28 19:53:03 +0000685 //system/extras/ext4_utils
686 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700687 "mke2fs_conf",
Cole Faust17cd19c2023-06-08 12:26:42 -0700688 "mkuserimg_mke2fs",
689 "blk_alloc_to_base_fs",
Sam Delmerico24c56032022-03-28 19:53:03 +0000690
691 //system/extras/libfec
692 "libfec",
693
694 //system/extras/squashfs_utils
695 "libsquashfs_utils",
696
Sam Delmerico24c56032022-03-28 19:53:03 +0000697 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
698 // genrule dependencies for java_imports
699 "car-ui-androidx-annotation-nodeps",
700 "car-ui-androidx-collection-nodeps",
701 "car-ui-androidx-core-common-nodeps",
702 "car-ui-androidx-lifecycle-common-nodeps",
703 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700704
705 //system/libhidl
Jingwen Chen263d4002023-03-29 07:15:10 +0000706 "libhidlbase", // needed by cc_hidl_library
707 "libhidl_gtest_helper",
Vinh Tran444154d2022-08-16 13:10:31 -0400708
Vinh Tran444154d2022-08-16 13:10:31 -0400709 //frameworks/native/libs/input
710 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400711
712 // needed for aidl_interface's ndk backend
713 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000714
715 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000716
717 // needed by liblogd
718 "ILogcatManagerService_aidl",
719 "libincremental_aidl-cpp",
720 "incremental_aidl",
Jingwen Chen2247aca2022-09-09 10:47:43 +0000721
722 //frameworks/native/cmds/cmd
723 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000724
Jihoon Kang37d6d452023-08-18 18:07:38 +0000725 //system/chre
726 "chre_api",
727
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000728 //system/core/fs_mgr/libdm
729 "libdm",
730
731 //system/core/fs_mgr/libfiemap
732 "libfiemap_headers",
733 "libfiemap_passthrough_srcs",
734 "libfiemap_srcs",
735
736 //system/gsid
737 "libgsi",
738 "libgsi_headers",
739
740 //system/core/libkeyutils
741 "libkeyutils",
742
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000743 //bootable/recovery/otautil
744 "libotautil",
745
746 //system/vold
747 "libvold_headers",
748
749 //system/extras/libfscrypt
750 "libfscrypt",
751
752 //system/core/fs_mgr
753 "libfstab",
754
755 //bootable/recovery/fuse_sideload
756 "libfusesideload",
757
758 //system/core/fs_mgr/libfs_avb
759 "libfs_avb",
760
761 //system/core/fs_mgr
762 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700763
764 "libcodec2_hidl@1.0",
765 "libcodec2_hidl@1.1",
766 "libcodec2_hidl@1.2",
767 "libcodec2_hidl_plugin_stub",
768 "libcodec2_hidl_plugin",
Yu Liu41a58a92023-07-24 23:31:48 +0000769 "libcodec2_hal_common",
Yu Liubf7c03e2022-09-22 12:12:26 -0700770 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700771 "libGLESv2",
772 "libEGL",
773 "libcodec2_vndk",
774 "libnativeloader_lazy",
775 "libnativeloader",
776 "libEGL_getProcAddress",
777 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400778
Yu Liu8c981532022-09-27 12:47:26 -0700779 "mediaswcodec",
780 "libmedia_headers",
781 "libmedia_codecserviceregistrant",
782 "libsfplugin_ccodec_utils",
783 "libcodec2_soft_aacenc",
784 "libcodec2_soft_amrnbdec",
785 "libcodec2_soft_amrnbenc",
786 "libcodec2_soft_amrwbdec",
787 "libcodec2_soft_amrwbenc",
788 "libcodec2_soft_hevcdec",
789 "libcodec2_soft_hevcenc",
790 "libcodec2_soft_g711alawdec",
791 "libcodec2_soft_g711mlawdec",
792 "libcodec2_soft_mpeg2dec",
793 "libcodec2_soft_h263dec",
794 "libcodec2_soft_h263enc",
795 "libcodec2_soft_mpeg4dec",
796 "libcodec2_soft_mpeg4enc",
797 "libcodec2_soft_mp3dec",
798 "libcodec2_soft_vorbisdec",
799 "libcodec2_soft_opusdec",
800 "libcodec2_soft_opusenc",
801 "libcodec2_soft_vp8dec",
802 "libcodec2_soft_vp9dec",
803 "libcodec2_soft_av1dec_gav1",
804 "libcodec2_soft_vp8enc",
805 "libcodec2_soft_vp9enc",
806 "libcodec2_soft_rawdec",
807 "libcodec2_soft_flacdec",
808 "libcodec2_soft_flacenc",
809 "libcodec2_soft_gsmdec",
810 "libcodec2_soft_avcdec",
811 "libcodec2_soft_avcenc",
812 "libcodec2_soft_aacdec",
813 "libcodec2_soft_common",
Alix8062f4d2022-11-14 21:38:07 +0000814
815 // kotlin srcs in java libs
Alix8062f4d2022-11-14 21:38:07 +0000816 "kotlinx_atomicfu",
Alix7c8eaeb2022-11-16 15:44:55 +0000817
818 // kotlin srcs in java binary
819 "AnalyzerKt",
820 "trebuchet-core",
Alix36795a72023-01-20 16:10:52 +0000821
822 // kotlin srcs in android_library
823 "renderscript_toolkit",
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500824
825 //kotlin srcs in android_binary
826 "MusicKotlin",
Zi Wang75a38e72023-02-15 22:52:47 -0800827
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -0500828 // java_library with prebuilt sdk_version
829 "android-common",
830
Zi Wang75a38e72023-02-15 22:52:47 -0800831 // checked in current.txt for merged_txts
832 "non-updatable-current.txt",
833 "non-updatable-system-current.txt",
834 "non-updatable-module-lib-current.txt",
835 "non-updatable-system-server-current.txt",
Zi Wangb31a8332023-03-06 15:21:35 -0800836
837 // for api_fingerprint.txt generation
838 "api_fingerprint",
Alixf848bf82023-03-06 19:43:55 +0000839
840 // allowlisting for kotlinx_coroutines
Liz Kammerf0ab5462023-04-04 11:38:54 -0400841 "annotations",
842 "kotlinx-coroutines-android-annotation-stubs",
843 "kotlinx-coroutines-core",
Alixf848bf82023-03-06 19:43:55 +0000844 "kotlinx_coroutines",
Romain Jobredeauxe7370ea2023-04-04 10:30:14 -0400845 "kotlinx_coroutines-device",
846 "kotlinx_coroutines-host",
Sam Delmerico9d71a842023-03-16 16:24:54 -0400847
848 // for building com.android.neuralnetworks
849 "libimapper_stablec",
850 "libimapper_providerutils",
Alixe5085eb2023-01-31 19:38:41 +0000851
852 // min_sdk_version in android_app
853 "CtsShimUpgrade",
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400854
Liz Kammerf0ab5462023-04-04 11:38:54 -0400855 "art_cmdlineparser_headers",
856
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400857 // Mainline Module Apps
858 "CaptivePortalLogin",
Romain Jobredeaux039fc062023-07-17 12:06:31 -0400859 "ModuleMetadata",
Sam Delmericobefbf052023-04-28 11:23:58 -0400860
861 "libstagefright_headers",
Spandan Dasebbea2a2023-05-10 02:05:43 +0000862
863 // aidl
864 "aidl",
865 "libaidl-common",
Alixb29a3cd2023-05-09 20:37:49 +0000866
867 // java_resources containing only a single filegroup
868 "libauto_value_plugin",
869 "auto_value_plugin_resources",
870 "auto_value_extension",
Spandan Dasab5f1c52023-05-19 00:18:49 +0000871
872 // Used by xsd_config
873 "xsdc",
Yu Liu2c0b8902023-06-05 11:13:00 -0700874
875 // cc_test that can be run by b test
876 "binderRpcWireProtocolTest",
877 "binderUnitTest",
878 "cpu_features-bit_utils_test",
879 "liblp_test",
880 "android.hardware.audio.common.test.utility_tests",
881 "HalAudioStreamWorkerTest",
882 "libjavacore-unit-tests",
883 "NeuralNetworksTest_utils",
884 "NeuralNetworksTest_logtag",
885 "NeuralNetworksTest_operations",
886 "nanoapp_chqts_shared_tests",
887 "fakeservicemanager_test",
888 "tristate_test",
889 "binderUtilsHostTest",
890 "run_dex2oat_test",
891 "bluetooth-address-unit-tests",
Jihoon Kangc44be962023-06-06 16:35:29 +0000892
893 // for platform_compat_config
894 "process-compat-config",
Alixe2667872023-04-24 14:57:32 +0000895
896 // cc_* modules with rscript srcs
897 "rstest-latency",
898 "libRScpp_static",
899 "rs-headers",
900 "rs_script_api",
901 "libRSDispatch",
Spandan Das0766b4f2023-07-21 17:25:31 +0000902
903 // hal_unit_tests and deps
904 "android.hardware.contexthub_interface", // created implicitly by android.hardware.contexthub
905 "chre_flatbuffers",
906 "event_logger",
907 "hal_unit_tests",
yike1aaeea32023-07-26 22:19:09 +0000908
909 "merge_annotation_zips_test",
Alix289e9c62023-08-16 15:06:31 +0000910
Romain Jobredeaux520ab192023-08-30 12:19:54 -0400911 // bouncycastle dep
912 "platform-test-annotations",
913
Alix289e9c62023-08-16 15:06:31 +0000914 // java_resources with multiple resource_dirs
915 "emma",
Sam Delmerico24c56032022-03-28 19:53:03 +0000916 }
917
918 Bp2buildModuleTypeAlwaysConvertList = []string{
Spandan Dasd58630f2022-09-08 01:04:22 +0000919 "aidl_interface_headers",
Zi Wangb2179e32023-01-31 15:53:30 -0800920 "bpf",
Zi Wang75a38e72023-02-15 22:52:47 -0800921 "combined_apis",
Sasha Smundak8bea2672022-08-04 13:31:14 -0700922 "license",
Liz Kammer45faf8f2022-06-02 16:00:54 -0400923 "linker_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000924 "java_import",
925 "java_import_host",
Zi Wangb2179e32023-01-31 15:53:30 -0800926 "java_sdk_library",
Trevor Radcliffead3d1232022-09-01 16:25:10 +0000927 "sysprop_library",
Spandan Das8d6bf5e2023-05-19 00:18:49 +0000928 "xsd_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000929 }
930
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000931 // Add the names of modules that bp2build should never convert, if it is
932 // in the package allowlist. An error will be thrown if a module must
933 // not be here and in the alwaysConvert lists.
934 //
935 // For prebuilt modules (e.g. android_library_import), remember to add
936 // the "prebuilt_" prefix to the name, so that it's differentiable from
937 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +0000938 Bp2buildModuleDoNotConvertList = []string{
Vinh Tranbcb5f572023-08-24 11:10:01 -0400939 // rust modules that have cc deps
940 "liblogger",
941 "libbssl_ffi",
942 "libbssl_ffi_nostd",
943 "pull_rust",
944 "libstatslog_rust",
945 "libstatslog_rust_header",
946 "libflatbuffers",
947 "liblog_event_list",
948 "libminijail_rust",
949 "libminijail_sys",
950 "libfsverity_rs",
951 "libtombstoned_client_rust",
952
yike1aaeea32023-07-26 22:19:09 +0000953 // TODO(b/263326760): Failed already.
954 "minijail_compiler_unittest",
955 "minijail_parser_unittest",
956
Vinh Tran220fb8b2022-10-04 12:04:17 -0400957 // Depends on unconverted libandroid, libgui
958 "dvr_buffer_queue-test",
959 "dvr_display-test",
960 // Depends on unconverted libchrome
961 "pdx_benchmarks",
962 "buffer_hub_queue-test",
963 "buffer_hub_queue_producer-test",
964
Sam Delmerico24c56032022-03-28 19:53:03 +0000965 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +0000966
967 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +0000968 "logtagd.rc",
969
Sam Delmerico24c56032022-03-28 19:53:03 +0000970 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +0000971
972 // TODO(b/202876379): has arch-variant static_executable
973 "linkerconfig",
974 "mdnsd",
975 "libcutils_test_static",
976 "KernelLibcutilsTest",
977
Liz Kammerf0ab5462023-04-04 11:38:54 -0400978 "linker", // TODO(b/228316882): cc_binary uses link_crt
979 "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 -0400980
981 // requires host tools for apexer
982 "apexer_test", "apexer_test_host_tools", "host_apex_verifier",
Sam Delmerico24c56032022-03-28 19:53:03 +0000983
984 // java bugs
Jihoon Kangb06d8a52023-08-22 17:13:26 +0000985 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
986 "bouncycastle", // TODO(b/274474005): Need support for custom system_modules.
987 "bouncycastle-test-lib", // TODO(b/274474005): Reverse dependency of bouncycastle
Sam Delmerico24c56032022-03-28 19:53:03 +0000988
Sam Delmerico24c56032022-03-28 19:53:03 +0000989 // genrule incompatibilities
990 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
991 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
992
993 // aar support
Chris Parsons9f0e5522022-12-08 14:12:54 -0500994 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000995 // ERROR: The dependencies for the following 1 jar(s) are not complete.
996 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
997 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +0000998
999 // path property for filegroups
1000 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
1001 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
1002 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +00001003 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
1004 "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
1005 "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
1006
1007 // go deps:
Jingwen Chenf50817d2022-09-21 06:46:08 +00001008 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
Cole Faustd82f0362023-04-12 17:32:19 -07001009 "analyze_bcpf_test", // depends on bpmodify a blueprint_go_binary.
Jingwen Chenf50817d2022-09-21 06:46:08 +00001010 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
1011 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001012
Sam Delmerico24c56032022-03-28 19:53:03 +00001013 // rust support
1014 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
1015
1016 // unconverted deps
Cole Faustd82f0362023-04-12 17:32:19 -07001017 "apexer_with_DCLA_preprocessing_test", // depends on unconverted modules: apexer_test_host_tools, com.android.example.apex
Trevor Radcliffeef9c9002022-05-13 20:55:35 +00001018 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
1019 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
1020 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
Cole Faustd82f0362023-04-12 17:32:19 -07001021 "apex_compression_test", // depends on unconverted modules: soong_zip, com.android.example.apex
Trevor Radcliffeef9c9002022-05-13 20:55:35 +00001022 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
1023 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
1024 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
Cole Faustd82f0362023-04-12 17:32:19 -07001025 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
Sam Delmerico24c56032022-03-28 19:53:03 +00001026 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
Sam Delmerico24c56032022-03-28 19:53:03 +00001027 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
1028 "dex2oat-script", // depends on unconverted modules: dex2oat
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001029 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
1030 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
Sam Delmerico24c56032022-03-28 19:53:03 +00001031 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -04001032 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -04001033 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +00001034 "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
1035 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
1036 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -04001037 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
1038 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Chris Parsonsc149e812023-07-26 18:51:33 +00001039 "libart-runtime", // 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
1040 "libart-runtime-for-test", // 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
Sam Delmerico24c56032022-03-28 19:53:03 +00001041 "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
Chris Parsonsc149e812023-07-26 18:51:33 +00001042 "libartd-runtime", // 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
Sam Delmerico24c56032022-03-28 19:53:03 +00001043 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +00001044 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +00001045 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
1046 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +00001047 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
Sam Delmerico24c56032022-03-28 19:53:03 +00001048 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
1049 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
1050 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
1051 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
Liz Kammer33dddf52023-09-07 14:54:41 -04001052 "libphonenumber_test", // depends on android.test.mock
Vinh Tranc3873e82022-08-23 20:33:25 -04001053 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +00001054 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
1055 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
Sam Delmerico847178f2022-12-15 09:36:35 -05001056 "malloc-rss-benchmark", // depends on unconverted modules: libmeminfo
Sam Delmerico24c56032022-03-28 19:53:03 +00001057 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
Cole Faustd82f0362023-04-12 17:32:19 -07001058 "releasetools_test", // depends on unconverted modules: com.android.apex.compressed.v1
Vinh Tranf19b6582022-09-21 17:01:49 -04001059 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
1060 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
1061 "test_fips", // depends on unconverted modules: adb
1062 "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 +00001063
Liz Kammer09d831e2022-09-16 09:02:26 -04001064 // aidl files not created
1065 "overlayable_policy_aidl_interface",
1066
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001067 //prebuilts/tools/common/m2
1068 // depends on //external/okio:okio-lib, which uses kotlin
1069 "wire-runtime",
1070
Jingwen Chena0519422022-09-28 08:01:57 +00001071 // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
1072 "minadbd",
1073
1074 // depends on android.hardware.health-V2.0-java
1075 "android.hardware.health-translate-java",
1076
Jingwen Chen263d4002023-03-29 07:15:10 +00001077 //system/libvintf
1078 // depends on apex-info-list-tinyxml, unconverted xsd_config Soong module type.
Jingwen Chen263d4002023-03-29 07:15:10 +00001079 "libassemblevintf",
1080 "assemble_vintf",
Jingwen Chen263d4002023-03-29 07:15:10 +00001081 "checkvintf",
1082
1083 // depends on audio_policy_configuration_aidl_default, xsd_config module.
1084 "libaudioserviceexampleimpl",
1085 "android.hardware.audio.service-aidl.example",
1086
1087 // depends on //system/tools/aidl/build:aidl_metadata_json, which is an aidl_interfaces_metadata custom Soong type.
1088 "aidl_metadata_in_cpp",
1089 "libaidlmetadata",
Jingwen Chen29c45612023-03-30 05:17:01 +00001090 "libaidlmetadata_test",
Jingwen Chen263d4002023-03-29 07:15:10 +00001091
1092 // depends on //system/tools/hidl/build:hidl_metadata_json, which is an hidl_interfaces_metadata custom Soong type.
1093 "hidl_metadata_in_cpp",
1094 "libhidlmetadata",
Jingwen Chen29c45612023-03-30 05:17:01 +00001095 "hidl_metadata_test",
Jingwen Chen263d4002023-03-29 07:15:10 +00001096
Jingwen Chen537242c2022-08-24 11:53:27 +00001097 // cc_test related.
Jingwen Chenb5edbf92023-03-20 13:17:49 +00001098 // b/274164834 "Could not open Configuration file test.cfg"
1099 "svcenc", "svcdec",
1100
Jingwen Chen537242c2022-08-24 11:53:27 +00001101 // Failing host cc_tests
Jingwen Chen537242c2022-08-24 11:53:27 +00001102 "gtest_isolated_tests",
1103 "libunwindstack_unit_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001104 "power_tests", // failing test on server, but not on host
1105
1106 // reflect: call of reflect.Value.NumField on interface Value
1107 // affects all cc_tests that depend on art_defaults
1108 "libnativebridge-tests",
1109 "libnativeloader_test",
1110 "art_libnativebridge_cts_tests",
1111 "art_standalone_libdexfile_external_tests",
1112 "art_standalone_libdexfile_support_tests",
1113 "libnativebridge-lazy-tests",
1114 "libnativebridge-test-case",
1115 "libnativebridge2-test-case",
1116 "libnativebridge3-test-case",
1117 "libnativebridge6-test-case",
1118 "libnativebridge6prezygotefork",
1119
Yu Liu9cb66d02023-07-21 17:23:35 -07001120 "libandroidfw_tests", // failing due to data path issues
Liz Kammer09d831e2022-09-16 09:02:26 -04001121
Jingwen Chena485d092023-04-20 12:34:08 +00001122 // error: overriding commands for target
1123 // `out/host/linux-x86/nativetest64/gmock_tests/gmock_tests__cc_runner_test',
1124 // previously defined at out/soong/installs-aosp_arm.mk:64919`
1125 "gmock_tests",
1126
Jingwen Chen537242c2022-08-24 11:53:27 +00001127 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
1128 "AMRWBEncTest",
Sam Delmericobefbf052023-04-28 11:23:58 -04001129 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1130 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1131 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
1132 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1133 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
Jingwen Chen537242c2022-08-24 11:53:27 +00001134 "avcdec",
1135 "avcenc",
1136 "bionic-benchmarks-tests",
1137 "bionic-fortify-runtime-asan-test",
1138 "bionic-stress-tests",
1139 "bionic-unit-tests",
1140 "bionic-unit-tests-glibc",
1141 "bionic-unit-tests-static",
1142 "boringssl_crypto_test",
1143 "boringssl_ssl_test",
Yu Liu1d03d172023-07-19 21:33:33 +00001144 "boringssl_test_support", //b/244431896
Jingwen Chen537242c2022-08-24 11:53:27 +00001145 "cfi_test_helper",
1146 "cfi_test_helper2",
1147 "cintltst32",
1148 "cintltst64",
1149 "compare",
1150 "cpuid",
1151 "debuggerd_test", // depends on unconverted modules: libdebuggerd
1152 "elftls_dlopen_ie_error_helper",
1153 "exec_linker_helper",
1154 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
1155 "fdtrack_test",
1156 "google-benchmark-test",
1157 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
1158 "gtest-typed-test_test",
1159 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1160 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1161 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
1162 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1163 "gtest_tests",
1164 "gtest_tests_no_main",
1165 "gwp_asan_unittest",
1166 "half_test",
1167 "hashcombine_test",
1168 "hevcdec",
1169 "hevcenc",
1170 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
1171 "i444tonv12_eg",
1172 "icu4c_sample_break",
1173 "intltest32",
1174 "intltest64",
1175 "ion-unit-tests",
1176 "jemalloc5_integrationtests",
1177 "jemalloc5_unittests",
Yu Liucb916322023-08-10 10:58:01 -07001178 "jemalloc5_stresstests", // run by run_jemalloc_tests.sh and will be deleted after V
Jingwen Chen537242c2022-08-24 11:53:27 +00001179 "ld_config_test_helper",
1180 "ld_preload_test_helper",
1181 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
1182 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
1183 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
Jingwen Chen537242c2022-08-24 11:53:27 +00001184 "libcutils_sockets_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001185 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +00001186 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +00001187 "libminijail_test",
1188 "libminijail_unittest_gtest",
1189 "libpackagelistparser_test",
1190 "libprotobuf_vendor_suffix_test",
1191 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
1192 "libstagefright_amrnbenc_test",
1193 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
1194 "libstagefright_m4vh263enc_test",
1195 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
1196 "libstatssocket_test",
1197 "libvndksupport-tests",
1198 "libyuv_unittest",
1199 "linker-unit-tests",
1200 "malloc_debug_system_tests",
1201 "malloc_debug_unit_tests",
1202 "malloc_hooks_system_tests",
1203 "mat_test",
1204 "mathtest",
1205 "memunreachable_binder_test", // depends on unconverted modules: libbinder
1206 "memunreachable_test",
1207 "metadata_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +00001208 "mpeg2dec",
1209 "mvcdec",
1210 "ns_hidden_child_helper",
1211 "pngtest",
1212 "preinit_getauxval_test_helper",
1213 "preinit_syscall_test_helper",
1214 "psnr",
1215 "quat_test",
1216 "rappor-tests", // depends on unconverted modules: jsr305, guava
1217 "scudo_unit_tests",
1218 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
Jingwen Chen537242c2022-08-24 11:53:27 +00001219 "thread_exit_cb_helper",
1220 "tls_properties_helper",
1221 "ulp",
1222 "vec_test",
1223 "yuvconstants",
1224 "yuvconvert",
Jingwen Chen537242c2022-08-24 11:53:27 +00001225
1226 // cc_test_library
1227 "clang_diagnostic_tests",
1228 "exec_linker_helper_lib",
1229 "fortify_disabled_for_tidy",
1230 "ld_config_test_helper_lib1",
1231 "ld_config_test_helper_lib2",
1232 "ld_config_test_helper_lib3",
1233 "ld_preload_test_helper_lib1",
1234 "ld_preload_test_helper_lib2",
1235 "libBionicElfTlsLoaderTests",
1236 "libBionicElfTlsTests",
1237 "libBionicElfTlsTests",
1238 "libBionicFramePointerTests",
1239 "libBionicFramePointerTests",
1240 "libBionicStandardTests",
1241 "libBionicStandardTests",
1242 "libBionicTests",
1243 "libart-broken",
1244 "libatest_simple_zip",
1245 "libcfi-test",
1246 "libcfi-test-bad",
1247 "libcrash_test",
Liz Kammerf6275092023-04-11 11:06:07 -04001248 "libcrypto_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001249 "libdl_preempt_test_1",
1250 "libdl_preempt_test_2",
1251 "libdl_test_df_1_global",
1252 "libdlext_test",
1253 "libdlext_test_different_soname",
1254 "libdlext_test_fd",
1255 "libdlext_test_norelro",
1256 "libdlext_test_recursive",
1257 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -04001258 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001259 "libfortify1-new-tests-clang",
1260 "libfortify1-new-tests-clang",
1261 "libfortify1-tests-clang",
1262 "libfortify1-tests-clang",
1263 "libfortify2-new-tests-clang",
1264 "libfortify2-new-tests-clang",
1265 "libfortify2-tests-clang",
1266 "libfortify2-tests-clang",
1267 "libgnu-hash-table-library",
1268 "libicutest_static",
1269 "liblinker_reloc_bench_000",
1270 "liblinker_reloc_bench_001",
1271 "liblinker_reloc_bench_002",
1272 "liblinker_reloc_bench_003",
1273 "liblinker_reloc_bench_004",
1274 "liblinker_reloc_bench_005",
1275 "liblinker_reloc_bench_006",
1276 "liblinker_reloc_bench_007",
1277 "liblinker_reloc_bench_008",
1278 "liblinker_reloc_bench_009",
1279 "liblinker_reloc_bench_010",
1280 "liblinker_reloc_bench_011",
1281 "liblinker_reloc_bench_012",
1282 "liblinker_reloc_bench_013",
1283 "liblinker_reloc_bench_014",
1284 "liblinker_reloc_bench_015",
1285 "liblinker_reloc_bench_016",
1286 "liblinker_reloc_bench_017",
1287 "liblinker_reloc_bench_018",
1288 "liblinker_reloc_bench_019",
1289 "liblinker_reloc_bench_020",
1290 "liblinker_reloc_bench_021",
1291 "liblinker_reloc_bench_022",
1292 "liblinker_reloc_bench_023",
1293 "liblinker_reloc_bench_024",
1294 "liblinker_reloc_bench_025",
1295 "liblinker_reloc_bench_026",
1296 "liblinker_reloc_bench_027",
1297 "liblinker_reloc_bench_028",
1298 "liblinker_reloc_bench_029",
1299 "liblinker_reloc_bench_030",
1300 "liblinker_reloc_bench_031",
1301 "liblinker_reloc_bench_032",
1302 "liblinker_reloc_bench_033",
1303 "liblinker_reloc_bench_034",
1304 "liblinker_reloc_bench_035",
1305 "liblinker_reloc_bench_036",
1306 "liblinker_reloc_bench_037",
1307 "liblinker_reloc_bench_038",
1308 "liblinker_reloc_bench_039",
1309 "liblinker_reloc_bench_040",
1310 "liblinker_reloc_bench_041",
1311 "liblinker_reloc_bench_042",
1312 "liblinker_reloc_bench_043",
1313 "liblinker_reloc_bench_044",
1314 "liblinker_reloc_bench_045",
1315 "liblinker_reloc_bench_046",
1316 "liblinker_reloc_bench_047",
1317 "liblinker_reloc_bench_048",
1318 "liblinker_reloc_bench_049",
1319 "liblinker_reloc_bench_050",
1320 "liblinker_reloc_bench_051",
1321 "liblinker_reloc_bench_052",
1322 "liblinker_reloc_bench_053",
1323 "liblinker_reloc_bench_054",
1324 "liblinker_reloc_bench_055",
1325 "liblinker_reloc_bench_056",
1326 "liblinker_reloc_bench_057",
1327 "liblinker_reloc_bench_058",
1328 "liblinker_reloc_bench_059",
1329 "liblinker_reloc_bench_060",
1330 "liblinker_reloc_bench_061",
1331 "liblinker_reloc_bench_062",
1332 "liblinker_reloc_bench_063",
1333 "liblinker_reloc_bench_064",
1334 "liblinker_reloc_bench_065",
1335 "liblinker_reloc_bench_066",
1336 "liblinker_reloc_bench_067",
1337 "liblinker_reloc_bench_068",
1338 "liblinker_reloc_bench_069",
1339 "liblinker_reloc_bench_070",
1340 "liblinker_reloc_bench_071",
1341 "liblinker_reloc_bench_072",
1342 "liblinker_reloc_bench_073",
1343 "liblinker_reloc_bench_074",
1344 "liblinker_reloc_bench_075",
1345 "liblinker_reloc_bench_076",
1346 "liblinker_reloc_bench_077",
1347 "liblinker_reloc_bench_078",
1348 "liblinker_reloc_bench_079",
1349 "liblinker_reloc_bench_080",
1350 "liblinker_reloc_bench_081",
1351 "liblinker_reloc_bench_082",
1352 "liblinker_reloc_bench_083",
1353 "liblinker_reloc_bench_084",
1354 "liblinker_reloc_bench_085",
1355 "liblinker_reloc_bench_086",
1356 "liblinker_reloc_bench_087",
1357 "liblinker_reloc_bench_088",
1358 "liblinker_reloc_bench_089",
1359 "liblinker_reloc_bench_090",
1360 "liblinker_reloc_bench_091",
1361 "liblinker_reloc_bench_092",
1362 "liblinker_reloc_bench_093",
1363 "liblinker_reloc_bench_094",
1364 "liblinker_reloc_bench_095",
1365 "liblinker_reloc_bench_096",
1366 "liblinker_reloc_bench_097",
1367 "liblinker_reloc_bench_098",
1368 "liblinker_reloc_bench_099",
1369 "liblinker_reloc_bench_100",
1370 "liblinker_reloc_bench_101",
1371 "liblinker_reloc_bench_102",
1372 "liblinker_reloc_bench_103",
1373 "liblinker_reloc_bench_104",
1374 "liblinker_reloc_bench_105",
1375 "liblinker_reloc_bench_106",
1376 "liblinker_reloc_bench_107",
1377 "liblinker_reloc_bench_108",
1378 "liblinker_reloc_bench_109",
1379 "liblinker_reloc_bench_110",
1380 "liblinker_reloc_bench_111",
1381 "liblinker_reloc_bench_112",
1382 "liblinker_reloc_bench_113",
1383 "liblinker_reloc_bench_114",
1384 "liblinker_reloc_bench_115",
1385 "liblinker_reloc_bench_116",
1386 "liblinker_reloc_bench_117",
1387 "liblinker_reloc_bench_118",
1388 "liblinker_reloc_bench_119",
1389 "liblinker_reloc_bench_120",
1390 "liblinker_reloc_bench_121",
1391 "liblinker_reloc_bench_122",
1392 "liblinker_reloc_bench_123",
1393 "liblinker_reloc_bench_124",
1394 "liblinker_reloc_bench_125",
1395 "liblinker_reloc_bench_126",
1396 "liblinker_reloc_bench_127",
1397 "liblinker_reloc_bench_128",
1398 "liblinker_reloc_bench_129",
1399 "liblinker_reloc_bench_130",
1400 "liblinker_reloc_bench_131",
1401 "liblinker_reloc_bench_132",
1402 "liblinker_reloc_bench_133",
1403 "liblinker_reloc_bench_134",
1404 "liblinker_reloc_bench_135",
1405 "liblinker_reloc_bench_136",
1406 "liblinker_reloc_bench_137",
1407 "liblinker_reloc_bench_138",
1408 "liblinker_reloc_bench_139",
1409 "liblinker_reloc_bench_140",
1410 "liblinker_reloc_bench_141",
1411 "liblinker_reloc_bench_142",
1412 "liblinker_reloc_bench_143",
1413 "liblinker_reloc_bench_144",
1414 "liblinker_reloc_bench_145",
1415 "liblinker_reloc_bench_146",
1416 "liblinker_reloc_bench_147",
1417 "liblinker_reloc_bench_148",
1418 "liblinker_reloc_bench_149",
1419 "liblinker_reloc_bench_150",
1420 "liblinker_reloc_bench_151",
1421 "liblinker_reloc_bench_152",
1422 "liblinker_reloc_bench_153",
1423 "liblinker_reloc_bench_154",
1424 "liblinker_reloc_bench_155",
1425 "liblinker_reloc_bench_156",
1426 "liblinker_reloc_bench_157",
1427 "liblinker_reloc_bench_158",
1428 "liblinker_reloc_bench_159",
1429 "liblinker_reloc_bench_160",
1430 "liblinker_reloc_bench_161",
1431 "liblinker_reloc_bench_162",
1432 "liblinker_reloc_bench_163",
1433 "liblinker_reloc_bench_164",
1434 "liblinker_reloc_bench_165",
1435 "liblinker_reloc_bench_166",
1436 "liblinker_reloc_bench_167",
1437 "liblinker_reloc_bench_168",
1438 "libns_hidden_child_app",
1439 "libns_hidden_child_global",
1440 "libns_hidden_child_internal",
1441 "libns_hidden_child_public",
1442 "libnstest_dlopened",
1443 "libnstest_ns_a_public1",
1444 "libnstest_ns_a_public1_internal",
1445 "libnstest_ns_b_public2",
1446 "libnstest_ns_b_public3",
1447 "libnstest_private",
1448 "libnstest_private_external",
1449 "libnstest_public",
1450 "libnstest_public_internal",
1451 "libnstest_root",
1452 "libnstest_root_not_isolated",
1453 "librelocations-ANDROID_REL",
1454 "librelocations-ANDROID_RELR",
1455 "librelocations-RELR",
1456 "librelocations-fat",
1457 "libsegment_gap_inner",
1458 "libsegment_gap_outer",
Liz Kammerf6275092023-04-11 11:06:07 -04001459 "libssl_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001460 "libstatssocket_private",
1461 "libsysv-hash-table-library",
1462 "libtest_atexit",
1463 "libtest_check_order_dlsym",
1464 "libtest_check_order_dlsym_1_left",
1465 "libtest_check_order_dlsym_2_right",
1466 "libtest_check_order_dlsym_3_c",
1467 "libtest_check_order_dlsym_a",
1468 "libtest_check_order_dlsym_b",
1469 "libtest_check_order_dlsym_d",
1470 "libtest_check_order_reloc_root",
1471 "libtest_check_order_reloc_root_1",
1472 "libtest_check_order_reloc_root_2",
1473 "libtest_check_order_reloc_siblings",
1474 "libtest_check_order_reloc_siblings_1",
1475 "libtest_check_order_reloc_siblings_2",
1476 "libtest_check_order_reloc_siblings_3",
1477 "libtest_check_order_reloc_siblings_a",
1478 "libtest_check_order_reloc_siblings_b",
1479 "libtest_check_order_reloc_siblings_c",
1480 "libtest_check_order_reloc_siblings_c_1",
1481 "libtest_check_order_reloc_siblings_c_2",
1482 "libtest_check_order_reloc_siblings_d",
1483 "libtest_check_order_reloc_siblings_e",
1484 "libtest_check_order_reloc_siblings_f",
1485 "libtest_check_rtld_next_from_library",
1486 "libtest_dlopen_df_1_global",
1487 "libtest_dlopen_from_ctor",
1488 "libtest_dlopen_from_ctor_main",
1489 "libtest_dlopen_weak_undefined_func",
1490 "libtest_dlsym_df_1_global",
1491 "libtest_dlsym_from_this",
1492 "libtest_dlsym_from_this_child",
1493 "libtest_dlsym_from_this_grandchild",
1494 "libtest_dlsym_weak_func",
1495 "libtest_dt_runpath_a",
1496 "libtest_dt_runpath_b",
1497 "libtest_dt_runpath_c",
1498 "libtest_dt_runpath_d",
1499 "libtest_dt_runpath_d_zip",
1500 "libtest_dt_runpath_x",
1501 "libtest_dt_runpath_y",
1502 "libtest_elftls_dynamic",
1503 "libtest_elftls_dynamic_filler_1",
1504 "libtest_elftls_dynamic_filler_2",
1505 "libtest_elftls_dynamic_filler_3",
1506 "libtest_elftls_shared_var",
1507 "libtest_elftls_shared_var_ie",
1508 "libtest_elftls_tprel",
1509 "libtest_empty",
1510 "libtest_ifunc",
1511 "libtest_ifunc_variable",
1512 "libtest_ifunc_variable_impl",
1513 "libtest_indirect_thread_local_dtor",
1514 "libtest_init_fini_order_child",
1515 "libtest_init_fini_order_grand_child",
1516 "libtest_init_fini_order_root",
1517 "libtest_init_fini_order_root2",
1518 "libtest_missing_symbol",
1519 "libtest_missing_symbol_child_private",
1520 "libtest_missing_symbol_child_public",
1521 "libtest_missing_symbol_root",
1522 "libtest_nodelete_1",
1523 "libtest_nodelete_2",
1524 "libtest_nodelete_dt_flags_1",
1525 "libtest_pthread_atfork",
1526 "libtest_relo_check_dt_needed_order",
1527 "libtest_relo_check_dt_needed_order_1",
1528 "libtest_relo_check_dt_needed_order_2",
1529 "libtest_simple",
1530 "libtest_thread_local_dtor",
1531 "libtest_thread_local_dtor2",
1532 "libtest_two_parents_child",
1533 "libtest_two_parents_parent1",
1534 "libtest_two_parents_parent2",
1535 "libtest_versioned_lib",
1536 "libtest_versioned_libv1",
1537 "libtest_versioned_libv2",
1538 "libtest_versioned_otherlib",
1539 "libtest_versioned_otherlib_empty",
1540 "libtest_versioned_uselibv1",
1541 "libtest_versioned_uselibv2",
1542 "libtest_versioned_uselibv2_other",
1543 "libtest_versioned_uselibv3_other",
1544 "libtest_with_dependency",
1545 "libtest_with_dependency_loop",
1546 "libtest_with_dependency_loop_a",
1547 "libtest_with_dependency_loop_b",
1548 "libtest_with_dependency_loop_b_tmp",
1549 "libtest_with_dependency_loop_c",
1550 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001551
1552 // depends on unconverted libprotobuf-java-nano
1553 "dnsresolverprotosnano",
1554 "launcherprotosnano",
1555 "datastallprotosnano",
1556 "devicepolicyprotosnano",
Wei Li7d8f6182022-10-11 14:38:16 -07001557 "ota_metadata_proto_java",
1558 "merge_ota",
1559
1560 // releasetools
Wei Li7d8f6182022-10-11 14:38:16 -07001561 "verity_utils",
1562 "check_ota_package_signature",
1563 "check_target_files_vintf",
1564 "releasetools_check_target_files_vintf",
Wei Li7d8f6182022-10-11 14:38:16 -07001565 "ota_from_target_files",
1566 "releasetools_ota_from_target_files",
Wei Li7d8f6182022-10-11 14:38:16 -07001567 "add_img_to_target_files",
1568 "releasetools_add_img_to_target_files",
1569 "fsverity_metadata_generator",
1570 "sign_target_files_apks",
1571
1572 // depends on the support of yacc file
1573 "libapplypatch",
1574 "libapplypatch_modes",
1575 "applypatch",
Yu Liu6c999ef2022-10-19 16:41:10 +00001576
1577 // TODO(b/254476335): disable the following due to this bug
1578 "libapexinfo",
1579 "libapexinfo_tests",
Colin Cross20c89f12022-12-05 16:47:44 -08001580
1581 // uses glob in $(locations)
1582 "libc_musl_sysroot",
Kevin Dagostino2c3be412023-02-07 04:10:27 +00001583
1584 // TODO(b/266459895): depends on libunwindstack
1585 "libutils_test",
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001586
Cole Faustd82f0362023-04-12 17:32:19 -07001587 // Has dependencies on other tools like ziptool, bp2build'd data properties don't work with these tests atm
1588 "ziparchive_tests_large",
1589 "mkbootimg_test",
1590 "certify_bootimg_test",
1591
1592 // Despite being _host module types, these require devices to run
1593 "logd_integration_test",
1594 "mobly-hello-world-test",
1595 "mobly-multidevice-test",
1596
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001597 // TODO(b/274805756): Support core_platform and current java APIs
1598 "fake-framework",
1599
1600 // TODO(b/277616982): These modules depend on private java APIs, but maybe they don't need to.
1601 "StreamingProtoTest",
1602 "textclassifierprotoslite",
1603 "styleprotoslite",
1604 "CtsPkgInstallerConstants",
1605 "guava-android-testlib",
Sam Delmericobefbf052023-04-28 11:23:58 -04001606
1607 "MetaDataBaseUnitTest", // depends on libstagefright
1608 "AVCUtilsUnitTest", // depends on libstagefright
1609 "ColorUtilsTest", // depends on libmediandk
Wei Li74e3e002023-04-26 12:15:55 -07001610
1611 // python_test_host with test data
1612 "sbom_writers_test",
Zi Wang65b36722023-05-23 15:18:33 -07001613
1614 // TODO(B/283193845): tradefed and its java_test_host dependents
1615 "tradefed",
1616 "permissive_mte_test",
1617 "ICU4CTestRunner",
Usta (Tsering) Shrestha1205d712023-06-20 16:46:59 +00001618 "DeviceLongPollingStubTest",
Liz Kammer01c09ca2023-08-09 15:47:54 -04001619 "FastDeployHostTests",
Zi Wang65b36722023-05-23 15:18:33 -07001620
Sam Delmericoa8a10862023-06-12 14:37:56 -04001621 "libprotobuf-full-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1622 "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 -04001623
Jason Wu5d5a3bb2023-06-14 13:24:24 -04001624 "logcat", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1625
Jason Wuee51c542023-06-13 14:54:56 -04001626 "expresscatalogvalidator", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1627
Sam Delmerico96c15502023-06-12 16:09:09 -04001628 // depends on other //art modules
1629 "libart-for-test",
1630 "libart_generated_headers",
1631 "libart-runtime-gtest",
1632 "libartd-runtime-gtest",
Yu Liub6e0a642023-08-09 23:42:23 +00001633 "libart-unstripped",
1634
1635 // depends on libart-unstripped and new module type llvm_prebuilt_build_tool
1636 "check_cfi",
Jihoon Kang49defa62023-08-22 19:43:59 +00001637
Jihoon Kangf51ec392023-08-23 05:24:02 +00001638 // depends on unconverted module tradefed
1639 "HelloWorldPerformanceTest",
Romain Jobredeaux890d6ea2023-08-23 10:53:07 -04001640
1641 // r8 is a java_binary, which creates an implicit "r8.jar" target, but the
1642 // same package contains a "r8.jar" file which gets overshadowed by the implicit target.
1643 // We don't need this target as we're not using the Soong wrapper for now
1644 "r8",
Jihoon Kang04b7d802023-08-23 22:10:15 +00001645
1646 // Depends on the module defined in the directory not bp2build default allowed
1647 "ota_from_raw_img",
Sam Delmerico24c56032022-03-28 19:53:03 +00001648 }
1649
Chris Parsons66fc7452022-11-04 13:26:17 -04001650 // Bazel prod-mode allowlist. Modules in this list are built by Bazel
1651 // in either prod mode or staging mode.
Jingwen Chen889f2f22022-12-16 08:16:01 +00001652 ProdMixedBuildsEnabledList = []string{
Jingwen Chen01addfc2023-03-13 12:49:52 +00001653 // M5: tzdata launch
Jingwen Chen889f2f22022-12-16 08:16:01 +00001654 "com.android.tzdata",
1655 "test1_com.android.tzdata",
Jingwen Chen61342112023-04-11 08:49:01 +00001656 "test3_com.android.tzdata",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001657 // M7: adbd launch
Jingwen Chen98bf5cc2022-12-14 13:27:25 +00001658 "com.android.adbd",
1659 "test_com.android.adbd",
1660 "adbd_test",
1661 "adb_crypto_test",
1662 "adb_pairing_auth_test",
1663 "adb_pairing_connection_test",
1664 "adb_tls_connection_test",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001665 // M9: mixed builds for mainline trains launch
1666 "api_fingerprint",
Sam Delmerico96e53702023-04-07 15:09:37 -04001667 // M11: neuralnetworks launch
1668 "com.android.neuralnetworks",
1669 "test_com.android.neuralnetworks",
1670 "libneuralnetworks",
1671 "libneuralnetworks_static",
Trevor Radcliffe06101242023-06-29 22:30:18 +00001672 // M13: media.swcodec launch
1673 "com.android.media.swcodec",
1674 "test_com.android.media.swcodec",
1675 "libstagefright_foundation",
1676 "libcodec2_hidl@1.0",
1677 }
Yu Liub1274232023-06-21 22:37:32 +00001678
Trevor Radcliffee3c6a292023-07-07 19:29:04 +00001679 // Staging-mode allowlist. Modules in this list are only built
1680 // by Bazel with --bazel-mode-staging. This list should contain modules
1681 // which will soon be added to the prod allowlist.
1682 // It is implicit that all modules in ProdMixedBuildsEnabledList will
1683 // also be built - do not add them to this list.
1684 StagingMixedBuildsEnabledList = []string{}
1685
Yu Liue4312402023-01-18 09:15:31 -08001686 // These should be the libs that are included by the apexes in the ProdMixedBuildsEnabledList
Jingwen Chen01addfc2023-03-13 12:49:52 +00001687 ProdDclaMixedBuildsEnabledList = []string{
Yu Liue4312402023-01-18 09:15:31 -08001688 "libbase",
1689 "libc++",
1690 "libcrypto",
1691 "libcutils",
Trevor Radcliffe06101242023-06-29 22:30:18 +00001692 "libstagefright_flacdec",
1693 "libutils",
1694 }
Yu Liub1274232023-06-21 22:37:32 +00001695
Trevor Radcliffee3c6a292023-07-07 19:29:04 +00001696 // These should be the libs that are included by the apexes in the StagingMixedBuildsEnabledList
1697 StagingDclaMixedBuildsEnabledList = []string{}
1698
Yu Liue4312402023-01-18 09:15:31 -08001699 // TODO(b/269342245): Enable the rest of the DCLA libs
1700 // "libssl",
Jeongik Chae114e602023-03-19 00:12:39 +09001701
Jeongik Chab745e2e2023-04-11 14:28:43 +09001702 // The list of module types which are expected to spend lots of build time.
1703 // With `--ninja_weight_source=soong`, ninja builds these module types and deps first.
1704 HugeModuleTypePrefixMap = map[string]int{
1705 "rust_": HIGH_PRIORITIZED_WEIGHT,
1706 "droidstubs": DEFAULT_PRIORITIZED_WEIGHT,
1707 "art_": DEFAULT_PRIORITIZED_WEIGHT,
1708 "ndk_library": DEFAULT_PRIORITIZED_WEIGHT,
Jeongik Chae114e602023-03-19 00:12:39 +09001709 }
Cole Faustbc65a3f2023-08-01 16:38:55 +00001710
1711 BazelSandwichTargets = []struct {
1712 Label string
1713 Host bool
1714 }{
1715 {
1716 Label: "//build/bazel/examples/partitions:system_image",
1717 Host: false,
1718 },
Cole Faust5abc4bf2023-09-08 03:15:32 +00001719 // TODO(b/297269187) re-enable this
1720 //{
1721 // Label: "//build/bazel/examples/partitions:run_test",
1722 // Host: false,
1723 //},
Cole Faustbc65a3f2023-08-01 16:38:55 +00001724 }
Sam Delmerico24c56032022-03-28 19:53:03 +00001725)