blob: fce8d7b283f956d98b0577b2c39f620cb6911f08 [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
Sam Delmerico24c56032022-03-28 19:53:03 +000040)
41
42var (
43 Bp2buildDefaultConfig = Bp2BuildConfig{
Sasha Smundak8bea2672022-08-04 13:31:14 -070044 "art": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040045 "art/libartbase": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +000046 "art/libartpalette": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040047 "art/libdexfile": Bp2BuildDefaultTrueRecursively,
48 "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
49 "art/runtime": Bp2BuildDefaultTrueRecursively,
50 "art/tools": Bp2BuildDefaultTrue,
51 "bionic": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +000052 "bootable/recovery/applypatch": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +000053 "bootable/recovery/minadbd": Bp2BuildDefaultTrue,
54 "bootable/recovery/minui": Bp2BuildDefaultTrue,
55 "bootable/recovery/recovery_utils": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040056 "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
57
Cole Faust324a92e2022-08-23 15:29:05 -070058 "build/bazel": Bp2BuildDefaultTrueRecursively,
59 "build/make/target/product/security": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -070060 "build/make/tools/releasetools": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070061 "build/make/tools/signapk": Bp2BuildDefaultTrue,
62 "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
63 "build/soong": Bp2BuildDefaultTrue,
64 "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
65 "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
66 "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -070067 "build/soong/licenses": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070068 "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
69 "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040070
71 "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
Jingwen Chen1ec77852022-11-07 14:36:12 +000072
73 "dalvik/tools/dexdeps": Bp2BuildDefaultTrueRecursively,
74
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040075 "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
76 "development/apps/Fallback": Bp2BuildDefaultTrue,
77 "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
78 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
79 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
80 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
81 "development/samples/Compass": Bp2BuildDefaultTrue,
82 "development/samples/ContactManager": Bp2BuildDefaultTrue,
83 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
84 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
85 "development/samples/Home": Bp2BuildDefaultTrue,
86 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
87 "development/samples/JetBoy": Bp2BuildDefaultTrue,
88 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
89 "development/samples/LceDemo": Bp2BuildDefaultTrue,
90 "development/samples/LunarLander": Bp2BuildDefaultTrue,
91 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
92 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
93 "development/samples/NotePad": Bp2BuildDefaultTrue,
94 "development/samples/Obb": Bp2BuildDefaultTrue,
95 "development/samples/RSSReader": Bp2BuildDefaultTrue,
96 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
97 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
98 "development/samples/SipDemo": Bp2BuildDefaultTrue,
99 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
100 "development/samples/Snake": Bp2BuildDefaultTrue,
101 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
102 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
103 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
104 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
105 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
106 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
107 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
108 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
109 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
110 "development/sdk": Bp2BuildDefaultTrueRecursively,
111
112 "external/aac": Bp2BuildDefaultTrueRecursively,
113 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700114 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000115 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400116 "external/auto/common": Bp2BuildDefaultTrueRecursively,
117 "external/auto/service": Bp2BuildDefaultTrueRecursively,
118 "external/boringssl": Bp2BuildDefaultTrueRecursively,
119 "external/bouncycastle": Bp2BuildDefaultTrue,
120 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700121 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
122 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400123 "external/conscrypt": Bp2BuildDefaultTrue,
124 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
125 "external/eigen": Bp2BuildDefaultTrueRecursively,
126 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
127 "external/error_prone": Bp2BuildDefaultTrueRecursively,
128 "external/expat": Bp2BuildDefaultTrueRecursively,
129 "external/f2fs-tools": Bp2BuildDefaultTrue,
130 "external/flac": Bp2BuildDefaultTrueRecursively,
131 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
132 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
133 "external/googletest": Bp2BuildDefaultTrueRecursively,
134 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
135 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
136 "external/icu": Bp2BuildDefaultTrueRecursively,
137 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
138 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400139 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400140 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400141 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400142 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000143 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400144 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
145 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
146 "external/junit": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400147 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400148 "external/libavc": Bp2BuildDefaultTrueRecursively,
149 "external/libcap": Bp2BuildDefaultTrueRecursively,
150 "external/libcxx": Bp2BuildDefaultTrueRecursively,
151 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700152 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000153 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400154 "external/libevent": Bp2BuildDefaultTrueRecursively,
155 "external/libgav1": Bp2BuildDefaultTrueRecursively,
156 "external/libhevc": Bp2BuildDefaultTrueRecursively,
157 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
158 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
159 "external/libpng": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700160 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700161 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400162 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700163 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400164 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
165 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
166 "external/minijail": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000167 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000168 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Spandan Das6960ac12022-11-22 04:45:05 +0000169 "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400170 "external/pcre": Bp2BuildDefaultTrueRecursively,
171 "external/protobuf": Bp2BuildDefaultTrueRecursively,
172 "external/python/six": Bp2BuildDefaultTrueRecursively,
173 "external/rappor": Bp2BuildDefaultTrueRecursively,
174 "external/scudo": Bp2BuildDefaultTrueRecursively,
175 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
176 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700177 "external/speex": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400178 "external/toybox": Bp2BuildDefaultTrueRecursively,
179 "external/zlib": Bp2BuildDefaultTrueRecursively,
180 "external/zopfli": Bp2BuildDefaultTrueRecursively,
181 "external/zstd": Bp2BuildDefaultTrueRecursively,
182
Jingwen Chen1ec77852022-11-07 14:36:12 +0000183 "frameworks/av": Bp2BuildDefaultTrue,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400184 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000185 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000186 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Jingwen Chen8ebc6202022-09-14 11:48:21 +0000187 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000188 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400189 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400190 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Sam Delmerico97bd1272022-08-25 14:45:31 -0400191 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400192 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
193 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400194 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000195 "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400196 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
197 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400198 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400199 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
200 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400201 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400202 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
203 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
204 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
205 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
206 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000207 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000208 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400209
Liz Kammer1c921162022-08-17 16:58:32 -0400210 "hardware/interfaces": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000211 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400212 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
213 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
214 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
215 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
216 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
217 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000218 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400219 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
220 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
221 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
222 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
223 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000224 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400225 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
226 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
227 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
228 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000229 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
230 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
231 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
232 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
233 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
234 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
235 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
236 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400237 "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
238 "hardware/interfaces/media/bufferpool/2.0": Bp2BuildDefaultTrue,
239 "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
240 "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
241 "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
242 "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
243 "hardware/interfaces/neuralnetworks/1.0": Bp2BuildDefaultTrue,
244 "hardware/interfaces/neuralnetworks/1.1": Bp2BuildDefaultTrue,
245 "hardware/interfaces/neuralnetworks/1.2": Bp2BuildDefaultTrue,
246 "hardware/interfaces/neuralnetworks/1.3": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000247 "hardware/interfaces/neuralnetworks/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400248
249 "libnativehelper": Bp2BuildDefaultTrueRecursively,
250
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400251 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
252 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
253 "packages/apps/Protips": Bp2BuildDefaultTrue,
Sasha Smundak31327e92022-09-18 17:10:54 -0700254 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400255 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000256 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400257 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
258 "packages/modules/adb": Bp2BuildDefaultTrue,
259 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
260 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
261 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
262 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
263 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
264 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
265 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000266 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400267 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000268 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400269
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000270 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
271
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400272 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
273 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
274 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
275 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700276 "prebuilts/tools": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400277 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
278
Alixb4e09a02022-09-27 15:36:01 +0000279 "sdk/dumpeventlog": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000280 "sdk/eventanalyzer": Bp2BuildDefaultTrue,
Alixb4e09a02022-09-27 15:36:01 +0000281
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000282 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
283 "system/apex/apexer": Bp2BuildDefaultTrue,
284 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
285 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
286 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
287 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
288 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000289 "system/core/healthd": Bp2BuildDefaultTrue,
290 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000291 "system/core/libasyncio": Bp2BuildDefaultTrue,
292 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
293 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
294 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
295 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
296 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
297 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000298 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000299 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000300 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000301 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
302 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700303 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000304 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
305 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700306 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Liz Kammer09d831e2022-09-16 09:02:26 -0400307 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000308 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
309 "system/libbase": Bp2BuildDefaultTrueRecursively,
310 "system/libfmq": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400311 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
312 "system/libhidl/transport": Bp2BuildDefaultTrue,
313 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700314 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
315 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
316 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
317 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400318 "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
319 "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
320 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
321 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
322 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000323 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
324 "system/libprocinfo": Bp2BuildDefaultTrue,
325 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000326 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700327 "system/media": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000328 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700329 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000330 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
331 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
332 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000333 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000334 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
335 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400336 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700337 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400338 "system/tools/sysprop": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000339 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400340
341 "tools/apksig": Bp2BuildDefaultTrue,
342 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
343 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000344 }
345
346 Bp2buildKeepExistingBuildFile = map[string]bool{
347 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
348 ".":/*recursive = */ false,
349
Cole Faust324a92e2022-08-23 15:29:05 -0700350 "build/bazel":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000351 "build/make/core":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000352 "build/bazel_common_rules":/* recursive = */ true,
353 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
354 "build/make/tools":/* recursive = */ false,
355 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000356 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000357
358 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
359 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
360 "external/bazelbuild-rules_android":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700361 "external/bazelbuild-rules_license":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400362 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000363 "external/bazel-skylib":/* recursive = */ true,
364 "external/guava":/* recursive = */ true,
365 "external/jsr305":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700366 "external/protobuf":/* recursive = */ false,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000367
368 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
369 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
370
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400371 "frameworks/base/tools/codegen":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000372 "frameworks/ex/common":/* recursive = */ true,
373
374 "packages/apps/Music":/* recursive = */ true,
375 "packages/apps/QuickSearchBox":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000376
Yu Liu56ccb1a2022-11-12 10:47:07 -0800377 "prebuilts/abi-dumps/platform":/* recursive = */ true,
378 "prebuilts/abi-dumps/ndk":/* recursive = */ true,
Romain Jobredeaux29197972022-05-30 22:02:31 -0400379 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000380 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700381 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Yu Liu56ccb1a2022-11-12 10:47:07 -0800382 "prebuilts/clang-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000383 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000384 "prebuilts/build-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000385 "prebuilts/jdk/jdk11":/* recursive = */ false,
Cole Faust7071a052022-07-29 15:58:33 -0700386 "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 +0000387 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000388 "prebuilts/sdk/tools":/* recursive = */ false,
389 "prebuilts/r8":/* recursive = */ false,
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000390 "prebuilts/runtime":/* recursive = */ false,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000391
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000392 // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
393 "tools/asuite/atest":/* recursive = */ false,
394 "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000395 }
396
397 Bp2buildModuleAlwaysConvertList = []string{
Liz Kammer09d831e2022-09-16 09:02:26 -0400398 "libidmap2_policies",
399 "libSurfaceFlingerProp",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400400 // cc mainline modules
Liz Kammerbe1315e2022-05-10 09:15:31 -0400401 "code_coverage.policy",
402 "code_coverage.policy.other",
403 "codec2_soft_exports",
Vinh Tran99fd6502022-09-09 18:36:24 -0400404 "codecs_g711dec",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400405 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400406 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400407 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400408 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400409 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400410 "com.android.media.swcodec.certificate",
411 "com.android.media.swcodec.key",
Vinh Tranfd446d62022-09-21 17:30:20 -0400412 "com.android.neuralnetworks",
Liz Kammer5068eae2022-05-11 17:24:29 -0400413 "com.android.neuralnetworks-androidManifest",
414 "com.android.neuralnetworks.certificate",
415 "com.android.neuralnetworks.key",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400416 "flatbuffer_headers",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400417 "framework-connectivity-protos",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400418 "gemmlowp_headers",
419 "gl_headers",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400420 "ipconnectivity-proto-src",
Vinh Tran99fd6502022-09-09 18:36:24 -0400421 "libaidlcommonsupport",
Liz Kammer63367e12022-06-13 19:35:12 +0000422 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400423 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400424 "libaudioclient_aidl_conversion_util",
Vinh Tran9f6796a2022-08-16 13:10:31 -0400425 "libbinder",
426 "libbinder_device_interface_sources",
Vinh Tran444154d2022-08-16 13:10:31 -0400427 "libbinder_aidl",
Liz Kammer63367e12022-06-13 19:35:12 +0000428 "libbinder_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400429 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400430 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400431 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000432 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400433 "libcodec2_headers",
434 "libcodec2_internal",
435 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400436 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400437 "libgrallocusage",
438 "libgralloctypes",
439 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400440 "libneuralnetworks",
Vinh Tran99fd6502022-09-09 18:36:24 -0400441 "libgraphicsenv",
Liz Kammer63367e12022-06-13 19:35:12 +0000442 "libhardware",
Liz Kammer5068eae2022-05-11 17:24:29 -0400443 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400444 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400445 "libnativewindow_headers",
446 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400447 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400448 "libopus",
449 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000450 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700451 "libandroidio",
452 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400453 "libserviceutils",
Vinh Tran99fd6502022-09-09 18:36:24 -0400454 "libstagefright_amrnbenc",
455 "libstagefright_amrnbdec",
456 "libstagefright_amrwbdec",
457 "libstagefright_amrwbenc",
458 "libstagefright_amrnb_common",
Liz Kammer5068eae2022-05-11 17:24:29 -0400459 "libstagefright_enc_common",
Vinh Tran99fd6502022-09-09 18:36:24 -0400460 "libstagefright_flacdec",
461 "libstagefright_foundation",
Liz Kammer5068eae2022-05-11 17:24:29 -0400462 "libstagefright_foundation_headers",
463 "libstagefright_headers",
Vinh Tran99fd6502022-09-09 18:36:24 -0400464 "libstagefright_m4vh263dec",
465 "libstagefright_m4vh263enc",
466 "libstagefright_mp3dec",
467 "libstagefright_mp3dec_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000468 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400469 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400470 "libtextclassifier_hash_headers",
471 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000472 "libtflite_kernel_utils",
473 "libtinyxml2",
Vinh Tran99fd6502022-09-09 18:36:24 -0400474 "libui",
Liz Kammer5068eae2022-05-11 17:24:29 -0400475 "libui-types",
Liz Kammer63367e12022-06-13 19:35:12 +0000476 "libui_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400477 "libvorbisidec",
478 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000479 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400480 "mediaswcodec.policy",
481 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400482 "neuralnetworks_types",
Vinh Tran38534232022-09-13 18:50:31 -0400483 "neuralnetworks_utils_hal_aidl",
Vinh Tran99fd6502022-09-09 18:36:24 -0400484 "neuralnetworks_utils_hal_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400485 "neuralnetworks_utils_hal_service",
Vinh Tran99fd6502022-09-09 18:36:24 -0400486 "neuralnetworks_utils_hal_1_0",
487 "neuralnetworks_utils_hal_1_1",
488 "neuralnetworks_utils_hal_1_2",
489 "neuralnetworks_utils_hal_1_3",
490 "libneuralnetworks_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400491 // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
492 "packagemanager_aidl_interface",
Liz Kammer63367e12022-06-13 19:35:12 +0000493 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400494 "philox_random_headers",
495 "server_configurable_flags",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400496 "service-permission-streaming-proto-sources",
Vinh Tranf19b6582022-09-21 17:01:49 -0400497 "statslog_neuralnetworks.cpp",
498 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400499 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400500
Vinh Tran99fd6502022-09-09 18:36:24 -0400501 "libstagefright_bufferpool@2.0",
502 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400503 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400504
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000505 // prebuilts
506 "prebuilt_stats-log-api-gen",
507
Jingwen Chen9009dc22022-08-04 15:26:46 +0000508 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000509 "fastboot",
510 "libfastboot",
511 "liblp",
512 "libstorage_literals_headers",
513
Sam Delmerico24c56032022-03-28 19:53:03 +0000514 //external/avb
515 "avbtool",
516 "libavb",
517 "avb_headers",
518
Alix5918d642022-06-27 20:57:44 +0000519 //external/libxml2
520 "xmllint",
521 "libxml2",
522
Sam Delmerico24c56032022-03-28 19:53:03 +0000523 //external/fec
524 "libfec_rs",
525
526 //system/core/libsparse
527 "libsparse",
528
529 //system/extras/ext4_utils
530 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700531 "mke2fs_conf",
Sam Delmerico24c56032022-03-28 19:53:03 +0000532
533 //system/extras/libfec
534 "libfec",
535
536 //system/extras/squashfs_utils
537 "libsquashfs_utils",
538
539 //system/extras/verity/fec
540 "fec",
Wei Li7d8f6182022-10-11 14:38:16 -0700541 "boot_signer",
Sam Delmerico24c56032022-03-28 19:53:03 +0000542
543 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
544 // genrule dependencies for java_imports
545 "car-ui-androidx-annotation-nodeps",
546 "car-ui-androidx-collection-nodeps",
547 "car-ui-androidx-core-common-nodeps",
548 "car-ui-androidx-lifecycle-common-nodeps",
549 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700550
551 //system/libhidl
552 // needed by cc_hidl_library
553 "libhidlbase",
Vinh Tran444154d2022-08-16 13:10:31 -0400554
555 //frameworks/native
556 "framework_native_aidl_binder",
557 "framework_native_aidl_gui",
558
559 //frameworks/native/libs/input
560 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400561
562 // needed for aidl_interface's ndk backend
563 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000564
565 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000566
567 // needed by liblogd
568 "ILogcatManagerService_aidl",
569 "libincremental_aidl-cpp",
570 "incremental_aidl",
Jingwen Chen2247aca2022-09-09 10:47:43 +0000571
572 //frameworks/native/cmds/cmd
573 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000574
575 //system/core/fs_mgr/libdm
576 "libdm",
577
578 //system/core/fs_mgr/libfiemap
579 "libfiemap_headers",
580 "libfiemap_passthrough_srcs",
581 "libfiemap_srcs",
582
583 //system/gsid
584 "libgsi",
585 "libgsi_headers",
586
587 //system/core/libkeyutils
588 "libkeyutils",
589
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000590 //bootable/recovery/otautil
591 "libotautil",
592
593 //system/vold
594 "libvold_headers",
595
596 //system/extras/libfscrypt
597 "libfscrypt",
598
599 //system/core/fs_mgr
600 "libfstab",
601
602 //bootable/recovery/fuse_sideload
603 "libfusesideload",
604
605 //system/core/fs_mgr/libfs_avb
606 "libfs_avb",
607
608 //system/core/fs_mgr
609 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700610
611 "libcodec2_hidl@1.0",
612 "libcodec2_hidl@1.1",
613 "libcodec2_hidl@1.2",
614 "libcodec2_hidl_plugin_stub",
615 "libcodec2_hidl_plugin",
616 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700617 "libGLESv2",
618 "libEGL",
619 "libcodec2_vndk",
620 "libnativeloader_lazy",
621 "libnativeloader",
622 "libEGL_getProcAddress",
623 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400624
Yu Liu8c981532022-09-27 12:47:26 -0700625 "mediaswcodec",
626 "libmedia_headers",
627 "libmedia_codecserviceregistrant",
628 "libsfplugin_ccodec_utils",
629 "libcodec2_soft_aacenc",
630 "libcodec2_soft_amrnbdec",
631 "libcodec2_soft_amrnbenc",
632 "libcodec2_soft_amrwbdec",
633 "libcodec2_soft_amrwbenc",
634 "libcodec2_soft_hevcdec",
635 "libcodec2_soft_hevcenc",
636 "libcodec2_soft_g711alawdec",
637 "libcodec2_soft_g711mlawdec",
638 "libcodec2_soft_mpeg2dec",
639 "libcodec2_soft_h263dec",
640 "libcodec2_soft_h263enc",
641 "libcodec2_soft_mpeg4dec",
642 "libcodec2_soft_mpeg4enc",
643 "libcodec2_soft_mp3dec",
644 "libcodec2_soft_vorbisdec",
645 "libcodec2_soft_opusdec",
646 "libcodec2_soft_opusenc",
647 "libcodec2_soft_vp8dec",
648 "libcodec2_soft_vp9dec",
649 "libcodec2_soft_av1dec_gav1",
650 "libcodec2_soft_vp8enc",
651 "libcodec2_soft_vp9enc",
652 "libcodec2_soft_rawdec",
653 "libcodec2_soft_flacdec",
654 "libcodec2_soft_flacenc",
655 "libcodec2_soft_gsmdec",
656 "libcodec2_soft_avcdec",
657 "libcodec2_soft_avcenc",
658 "libcodec2_soft_aacdec",
659 "libcodec2_soft_common",
Alix8062f4d2022-11-14 21:38:07 +0000660
661 // kotlin srcs in java libs
662 "CtsPkgInstallerConstants",
663 "kotlinx_atomicfu",
Sam Delmerico24c56032022-03-28 19:53:03 +0000664 }
665
666 Bp2buildModuleTypeAlwaysConvertList = []string{
Spandan Dasd58630f2022-09-08 01:04:22 +0000667 "aidl_interface_headers",
Sasha Smundak8bea2672022-08-04 13:31:14 -0700668 "license",
Liz Kammer45faf8f2022-06-02 16:00:54 -0400669 "linker_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000670 "java_import",
671 "java_import_host",
Trevor Radcliffead3d1232022-09-01 16:25:10 +0000672 "sysprop_library",
Zi Wangb3cb38c2022-09-23 16:36:11 -0700673 "bpf",
Sam Delmerico24c56032022-03-28 19:53:03 +0000674 }
675
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000676 // Add the names of modules that bp2build should never convert, if it is
677 // in the package allowlist. An error will be thrown if a module must
678 // not be here and in the alwaysConvert lists.
679 //
680 // For prebuilt modules (e.g. android_library_import), remember to add
681 // the "prebuilt_" prefix to the name, so that it's differentiable from
682 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +0000683 Bp2buildModuleDoNotConvertList = []string{
Vinh Tran220fb8b2022-10-04 12:04:17 -0400684 // TODO(b/250876486): Created cc_aidl_library doesn't have static libs from parent cc module
685 "libgui_window_info_static",
686 "libgui", // Depends on unconverted libgui_window_info_static
687 "libdisplay", // Depends on uncovnerted libgui
688 // Depends on unconverted libdisplay
689 "libdvr_static.google",
690 "libdvr.google",
691 "libvrsensor",
692 "dvr_api-test",
693 // Depends on unconverted libandroid, libgui
694 "dvr_buffer_queue-test",
695 "dvr_display-test",
696 // Depends on unconverted libchrome
697 "pdx_benchmarks",
698 "buffer_hub_queue-test",
699 "buffer_hub_queue_producer-test",
700
Sam Delmerico24c56032022-03-28 19:53:03 +0000701 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +0000702 "libactivitymanager_aidl", // TODO(b/207426160): Unsupported use of aidl sources (via Dactivity_manager_procstate_aidl) in a cc_library
703
704 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +0000705 "logtagd.rc",
706
Sam Delmerico24c56032022-03-28 19:53:03 +0000707 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +0000708
709 // TODO(b/202876379): has arch-variant static_executable
710 "linkerconfig",
711 "mdnsd",
712 "libcutils_test_static",
713 "KernelLibcutilsTest",
714
Cole Faust7071a052022-07-29 15:58:33 -0700715 "linker", // TODO(b/228316882): cc_binary uses link_crt
Cole Faust7071a052022-07-29 15:58:33 -0700716 "versioner", // TODO(b/228313961): depends on prebuilt shared library libclang-cpp_host as a shared library, which does not supply expected providers for a shared library
Liz Kammer63367e12022-06-13 19:35:12 +0000717 "art_libartbase_headers", // TODO(b/236268577): Header libraries do not support export_shared_libs_headers
718 "apexer_test", // Requires aapt2
Cole Faust91a2e102022-05-31 14:56:48 -0700719 "apexer_test_host_tools",
720 "host_apex_verifier",
Cole Faust7071a052022-07-29 15:58:33 -0700721 "tjbench", // TODO(b/240563612): Stem property
Sam Delmerico24c56032022-03-28 19:53:03 +0000722
723 // java bugs
724 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
725
726 // python protos
Cole Faust53b62092022-05-12 15:37:02 -0700727 "libprotobuf-python", // Has a handcrafted alternative
Sam Delmerico24c56032022-03-28 19:53:03 +0000728
729 // genrule incompatibilities
730 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
731 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
732
733 // aar support
734 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000735 // ERROR: The dependencies for the following 1 jar(s) are not complete.
736 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
737 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +0000738
739 // path property for filegroups
740 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
741 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
742 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000743 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
744 "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
745 "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico79985812022-03-23 20:20:42 +0000746 "auto_value_plugin_resources", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000747
748 // go deps:
Jingwen Chenf50817d2022-09-21 06:46:08 +0000749 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
750 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
751 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000752
753 // in cmd attribute of genrule rule //system/timezone/output_data:robolectric_tzdata: label '//system/timezone/output_data:iana/tzdata' in $(location) expression is not a declared prerequisite of this rule
754 "robolectric_tzdata",
Sam Delmerico24c56032022-03-28 19:53:03 +0000755
756 // rust support
757 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
758
759 // unconverted deps
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000760 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000761 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
762 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
763 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
764 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
765 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
766 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
Sam Delmerico24c56032022-03-28 19:53:03 +0000767 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
Sam Delmerico24c56032022-03-28 19:53:03 +0000768 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
769 "dex2oat-script", // depends on unconverted modules: dex2oat
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000770 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
771 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
Sam Delmerico24c56032022-03-28 19:53:03 +0000772 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400773 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -0400774 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +0000775 "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
776 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
777 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -0400778 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
779 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Sam Delmerico24c56032022-03-28 19:53:03 +0000780 "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
781 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +0000782 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +0000783 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
784 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +0000785 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
786 "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
787 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
788 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
789 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
790 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
791 "libprotobuf-java-nano", // b/220869005, depends on non-public_current SDK
Vinh Tranc3873e82022-08-23 20:33:25 -0400792 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +0000793 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
794 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
795 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
Vinh Tranf19b6582022-09-21 17:01:49 -0400796 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
797 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
798 "test_fips", // depends on unconverted modules: adb
799 "timezone-host", // depends on unconverted modules: art.module.api.annotations
800 "truth-host-prebuilt", // depends on unconverted modules: truth-prebuilt
801 "truth-prebuilt", // depends on unconverted modules: asm-7.0, guava
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxbff2e882022-04-20 18:44:54 +0000802
Jingwen Chen5012e072022-08-04 15:04:43 +0000803 // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
804 "toybox-static",
Wei Li81852ca2022-07-27 00:22:06 -0700805
Liz Kammer09d831e2022-09-16 09:02:26 -0400806 // aidl files not created
807 "overlayable_policy_aidl_interface",
808
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000809 //prebuilts/tools/common/m2
810 // depends on //external/okio:okio-lib, which uses kotlin
811 "wire-runtime",
812
Jingwen Chena0519422022-09-28 08:01:57 +0000813 // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
814 "minadbd",
815
816 // depends on android.hardware.health-V2.0-java
817 "android.hardware.health-translate-java",
818
Jingwen Chen537242c2022-08-24 11:53:27 +0000819 // cc_test related.
820 // Failing host cc_tests
821 "memunreachable_unit_test",
822 "libprocinfo_test",
823 "ziparchive-tests",
824 "gtest_isolated_tests",
825 "libunwindstack_unit_test",
826 "task_profiles_test",
827 "power_tests", // failing test on server, but not on host
828
829 // reflect: call of reflect.Value.NumField on interface Value
830 // affects all cc_tests that depend on art_defaults
831 "libnativebridge-tests",
832 "libnativeloader_test",
833 "art_libnativebridge_cts_tests",
834 "art_standalone_libdexfile_external_tests",
835 "art_standalone_libdexfile_support_tests",
836 "libnativebridge-lazy-tests",
837 "libnativebridge-test-case",
838 "libnativebridge2-test-case",
839 "libnativebridge3-test-case",
840 "libnativebridge6-test-case",
841 "libnativebridge6prezygotefork",
842
Liz Kammer09d831e2022-09-16 09:02:26 -0400843 "libandroidfw_tests", "aapt2_tests", // failing due to data path issues
844
Jingwen Chen537242c2022-08-24 11:53:27 +0000845 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
846 "AMRWBEncTest",
Jingwen Chenf0616002022-09-01 14:28:55 +0000847 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
848 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
849 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
850 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
Jingwen Chen537242c2022-08-24 11:53:27 +0000851 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
852 "Mpeg4H263DecoderTest", // depends on unconverted modules: libstagefright_foundation
853 "Mpeg4H263EncoderTest",
Jingwen Chen537242c2022-08-24 11:53:27 +0000854 "avcdec",
855 "avcenc",
856 "bionic-benchmarks-tests",
857 "bionic-fortify-runtime-asan-test",
858 "bionic-stress-tests",
859 "bionic-unit-tests",
860 "bionic-unit-tests-glibc",
861 "bionic-unit-tests-static",
862 "boringssl_crypto_test",
863 "boringssl_ssl_test",
864 "cfi_test_helper",
865 "cfi_test_helper2",
866 "cintltst32",
867 "cintltst64",
868 "compare",
869 "cpuid",
870 "debuggerd_test", // depends on unconverted modules: libdebuggerd
871 "elftls_dlopen_ie_error_helper",
872 "exec_linker_helper",
873 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
874 "fdtrack_test",
875 "google-benchmark-test",
876 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
877 "gtest-typed-test_test",
878 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
879 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
880 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
881 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
882 "gtest_tests",
883 "gtest_tests_no_main",
884 "gwp_asan_unittest",
885 "half_test",
886 "hashcombine_test",
887 "hevcdec",
888 "hevcenc",
889 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
890 "i444tonv12_eg",
891 "icu4c_sample_break",
892 "intltest32",
893 "intltest64",
894 "ion-unit-tests",
895 "jemalloc5_integrationtests",
896 "jemalloc5_unittests",
897 "ld_config_test_helper",
898 "ld_preload_test_helper",
899 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
900 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
901 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
Jingwen Chen537242c2022-08-24 11:53:27 +0000902 "libcutils_sockets_test",
903 "libexpectedutils_test",
904 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +0000905 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +0000906 "libminijail_test",
907 "libminijail_unittest_gtest",
908 "libpackagelistparser_test",
909 "libprotobuf_vendor_suffix_test",
910 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
911 "libstagefright_amrnbenc_test",
912 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
913 "libstagefright_m4vh263enc_test",
914 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
915 "libstatssocket_test",
916 "libvndksupport-tests",
917 "libyuv_unittest",
918 "linker-unit-tests",
919 "malloc_debug_system_tests",
920 "malloc_debug_unit_tests",
921 "malloc_hooks_system_tests",
922 "mat_test",
923 "mathtest",
924 "memunreachable_binder_test", // depends on unconverted modules: libbinder
925 "memunreachable_test",
926 "metadata_tests",
927 "minijail0_cli_unittest_gtest",
928 "mpeg2dec",
929 "mvcdec",
930 "ns_hidden_child_helper",
931 "pngtest",
932 "preinit_getauxval_test_helper",
933 "preinit_syscall_test_helper",
934 "psnr",
935 "quat_test",
936 "rappor-tests", // depends on unconverted modules: jsr305, guava
937 "scudo_unit_tests",
938 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
939 "syscall_filter_unittest_gtest",
940 "sysprop_test", // depends on unconverted modules: libcom.android.sysprop.tests
941 "thread_exit_cb_helper",
942 "tls_properties_helper",
943 "ulp",
944 "vec_test",
945 "yuvconstants",
946 "yuvconvert",
947 "zipalign_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +0000948
949 // cc_test_library
950 "clang_diagnostic_tests",
951 "exec_linker_helper_lib",
952 "fortify_disabled_for_tidy",
953 "ld_config_test_helper_lib1",
954 "ld_config_test_helper_lib2",
955 "ld_config_test_helper_lib3",
956 "ld_preload_test_helper_lib1",
957 "ld_preload_test_helper_lib2",
958 "libBionicElfTlsLoaderTests",
959 "libBionicElfTlsTests",
960 "libBionicElfTlsTests",
961 "libBionicFramePointerTests",
962 "libBionicFramePointerTests",
963 "libBionicStandardTests",
964 "libBionicStandardTests",
965 "libBionicTests",
966 "libart-broken",
967 "libatest_simple_zip",
968 "libcfi-test",
969 "libcfi-test-bad",
970 "libcrash_test",
971 // "libcrypto_fuzz_unsafe",
972 "libdl_preempt_test_1",
973 "libdl_preempt_test_2",
974 "libdl_test_df_1_global",
975 "libdlext_test",
976 "libdlext_test_different_soname",
977 "libdlext_test_fd",
978 "libdlext_test_norelro",
979 "libdlext_test_recursive",
980 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -0400981 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +0000982 "libfortify1-new-tests-clang",
983 "libfortify1-new-tests-clang",
984 "libfortify1-tests-clang",
985 "libfortify1-tests-clang",
986 "libfortify2-new-tests-clang",
987 "libfortify2-new-tests-clang",
988 "libfortify2-tests-clang",
989 "libfortify2-tests-clang",
990 "libgnu-hash-table-library",
991 "libicutest_static",
992 "liblinker_reloc_bench_000",
993 "liblinker_reloc_bench_001",
994 "liblinker_reloc_bench_002",
995 "liblinker_reloc_bench_003",
996 "liblinker_reloc_bench_004",
997 "liblinker_reloc_bench_005",
998 "liblinker_reloc_bench_006",
999 "liblinker_reloc_bench_007",
1000 "liblinker_reloc_bench_008",
1001 "liblinker_reloc_bench_009",
1002 "liblinker_reloc_bench_010",
1003 "liblinker_reloc_bench_011",
1004 "liblinker_reloc_bench_012",
1005 "liblinker_reloc_bench_013",
1006 "liblinker_reloc_bench_014",
1007 "liblinker_reloc_bench_015",
1008 "liblinker_reloc_bench_016",
1009 "liblinker_reloc_bench_017",
1010 "liblinker_reloc_bench_018",
1011 "liblinker_reloc_bench_019",
1012 "liblinker_reloc_bench_020",
1013 "liblinker_reloc_bench_021",
1014 "liblinker_reloc_bench_022",
1015 "liblinker_reloc_bench_023",
1016 "liblinker_reloc_bench_024",
1017 "liblinker_reloc_bench_025",
1018 "liblinker_reloc_bench_026",
1019 "liblinker_reloc_bench_027",
1020 "liblinker_reloc_bench_028",
1021 "liblinker_reloc_bench_029",
1022 "liblinker_reloc_bench_030",
1023 "liblinker_reloc_bench_031",
1024 "liblinker_reloc_bench_032",
1025 "liblinker_reloc_bench_033",
1026 "liblinker_reloc_bench_034",
1027 "liblinker_reloc_bench_035",
1028 "liblinker_reloc_bench_036",
1029 "liblinker_reloc_bench_037",
1030 "liblinker_reloc_bench_038",
1031 "liblinker_reloc_bench_039",
1032 "liblinker_reloc_bench_040",
1033 "liblinker_reloc_bench_041",
1034 "liblinker_reloc_bench_042",
1035 "liblinker_reloc_bench_043",
1036 "liblinker_reloc_bench_044",
1037 "liblinker_reloc_bench_045",
1038 "liblinker_reloc_bench_046",
1039 "liblinker_reloc_bench_047",
1040 "liblinker_reloc_bench_048",
1041 "liblinker_reloc_bench_049",
1042 "liblinker_reloc_bench_050",
1043 "liblinker_reloc_bench_051",
1044 "liblinker_reloc_bench_052",
1045 "liblinker_reloc_bench_053",
1046 "liblinker_reloc_bench_054",
1047 "liblinker_reloc_bench_055",
1048 "liblinker_reloc_bench_056",
1049 "liblinker_reloc_bench_057",
1050 "liblinker_reloc_bench_058",
1051 "liblinker_reloc_bench_059",
1052 "liblinker_reloc_bench_060",
1053 "liblinker_reloc_bench_061",
1054 "liblinker_reloc_bench_062",
1055 "liblinker_reloc_bench_063",
1056 "liblinker_reloc_bench_064",
1057 "liblinker_reloc_bench_065",
1058 "liblinker_reloc_bench_066",
1059 "liblinker_reloc_bench_067",
1060 "liblinker_reloc_bench_068",
1061 "liblinker_reloc_bench_069",
1062 "liblinker_reloc_bench_070",
1063 "liblinker_reloc_bench_071",
1064 "liblinker_reloc_bench_072",
1065 "liblinker_reloc_bench_073",
1066 "liblinker_reloc_bench_074",
1067 "liblinker_reloc_bench_075",
1068 "liblinker_reloc_bench_076",
1069 "liblinker_reloc_bench_077",
1070 "liblinker_reloc_bench_078",
1071 "liblinker_reloc_bench_079",
1072 "liblinker_reloc_bench_080",
1073 "liblinker_reloc_bench_081",
1074 "liblinker_reloc_bench_082",
1075 "liblinker_reloc_bench_083",
1076 "liblinker_reloc_bench_084",
1077 "liblinker_reloc_bench_085",
1078 "liblinker_reloc_bench_086",
1079 "liblinker_reloc_bench_087",
1080 "liblinker_reloc_bench_088",
1081 "liblinker_reloc_bench_089",
1082 "liblinker_reloc_bench_090",
1083 "liblinker_reloc_bench_091",
1084 "liblinker_reloc_bench_092",
1085 "liblinker_reloc_bench_093",
1086 "liblinker_reloc_bench_094",
1087 "liblinker_reloc_bench_095",
1088 "liblinker_reloc_bench_096",
1089 "liblinker_reloc_bench_097",
1090 "liblinker_reloc_bench_098",
1091 "liblinker_reloc_bench_099",
1092 "liblinker_reloc_bench_100",
1093 "liblinker_reloc_bench_101",
1094 "liblinker_reloc_bench_102",
1095 "liblinker_reloc_bench_103",
1096 "liblinker_reloc_bench_104",
1097 "liblinker_reloc_bench_105",
1098 "liblinker_reloc_bench_106",
1099 "liblinker_reloc_bench_107",
1100 "liblinker_reloc_bench_108",
1101 "liblinker_reloc_bench_109",
1102 "liblinker_reloc_bench_110",
1103 "liblinker_reloc_bench_111",
1104 "liblinker_reloc_bench_112",
1105 "liblinker_reloc_bench_113",
1106 "liblinker_reloc_bench_114",
1107 "liblinker_reloc_bench_115",
1108 "liblinker_reloc_bench_116",
1109 "liblinker_reloc_bench_117",
1110 "liblinker_reloc_bench_118",
1111 "liblinker_reloc_bench_119",
1112 "liblinker_reloc_bench_120",
1113 "liblinker_reloc_bench_121",
1114 "liblinker_reloc_bench_122",
1115 "liblinker_reloc_bench_123",
1116 "liblinker_reloc_bench_124",
1117 "liblinker_reloc_bench_125",
1118 "liblinker_reloc_bench_126",
1119 "liblinker_reloc_bench_127",
1120 "liblinker_reloc_bench_128",
1121 "liblinker_reloc_bench_129",
1122 "liblinker_reloc_bench_130",
1123 "liblinker_reloc_bench_131",
1124 "liblinker_reloc_bench_132",
1125 "liblinker_reloc_bench_133",
1126 "liblinker_reloc_bench_134",
1127 "liblinker_reloc_bench_135",
1128 "liblinker_reloc_bench_136",
1129 "liblinker_reloc_bench_137",
1130 "liblinker_reloc_bench_138",
1131 "liblinker_reloc_bench_139",
1132 "liblinker_reloc_bench_140",
1133 "liblinker_reloc_bench_141",
1134 "liblinker_reloc_bench_142",
1135 "liblinker_reloc_bench_143",
1136 "liblinker_reloc_bench_144",
1137 "liblinker_reloc_bench_145",
1138 "liblinker_reloc_bench_146",
1139 "liblinker_reloc_bench_147",
1140 "liblinker_reloc_bench_148",
1141 "liblinker_reloc_bench_149",
1142 "liblinker_reloc_bench_150",
1143 "liblinker_reloc_bench_151",
1144 "liblinker_reloc_bench_152",
1145 "liblinker_reloc_bench_153",
1146 "liblinker_reloc_bench_154",
1147 "liblinker_reloc_bench_155",
1148 "liblinker_reloc_bench_156",
1149 "liblinker_reloc_bench_157",
1150 "liblinker_reloc_bench_158",
1151 "liblinker_reloc_bench_159",
1152 "liblinker_reloc_bench_160",
1153 "liblinker_reloc_bench_161",
1154 "liblinker_reloc_bench_162",
1155 "liblinker_reloc_bench_163",
1156 "liblinker_reloc_bench_164",
1157 "liblinker_reloc_bench_165",
1158 "liblinker_reloc_bench_166",
1159 "liblinker_reloc_bench_167",
1160 "liblinker_reloc_bench_168",
1161 "libns_hidden_child_app",
1162 "libns_hidden_child_global",
1163 "libns_hidden_child_internal",
1164 "libns_hidden_child_public",
1165 "libnstest_dlopened",
1166 "libnstest_ns_a_public1",
1167 "libnstest_ns_a_public1_internal",
1168 "libnstest_ns_b_public2",
1169 "libnstest_ns_b_public3",
1170 "libnstest_private",
1171 "libnstest_private_external",
1172 "libnstest_public",
1173 "libnstest_public_internal",
1174 "libnstest_root",
1175 "libnstest_root_not_isolated",
1176 "librelocations-ANDROID_REL",
1177 "librelocations-ANDROID_RELR",
1178 "librelocations-RELR",
1179 "librelocations-fat",
1180 "libsegment_gap_inner",
1181 "libsegment_gap_outer",
1182 // "libssl_fuzz_unsafe",
1183 "libstatssocket_private",
1184 "libsysv-hash-table-library",
1185 "libtest_atexit",
1186 "libtest_check_order_dlsym",
1187 "libtest_check_order_dlsym_1_left",
1188 "libtest_check_order_dlsym_2_right",
1189 "libtest_check_order_dlsym_3_c",
1190 "libtest_check_order_dlsym_a",
1191 "libtest_check_order_dlsym_b",
1192 "libtest_check_order_dlsym_d",
1193 "libtest_check_order_reloc_root",
1194 "libtest_check_order_reloc_root_1",
1195 "libtest_check_order_reloc_root_2",
1196 "libtest_check_order_reloc_siblings",
1197 "libtest_check_order_reloc_siblings_1",
1198 "libtest_check_order_reloc_siblings_2",
1199 "libtest_check_order_reloc_siblings_3",
1200 "libtest_check_order_reloc_siblings_a",
1201 "libtest_check_order_reloc_siblings_b",
1202 "libtest_check_order_reloc_siblings_c",
1203 "libtest_check_order_reloc_siblings_c_1",
1204 "libtest_check_order_reloc_siblings_c_2",
1205 "libtest_check_order_reloc_siblings_d",
1206 "libtest_check_order_reloc_siblings_e",
1207 "libtest_check_order_reloc_siblings_f",
1208 "libtest_check_rtld_next_from_library",
1209 "libtest_dlopen_df_1_global",
1210 "libtest_dlopen_from_ctor",
1211 "libtest_dlopen_from_ctor_main",
1212 "libtest_dlopen_weak_undefined_func",
1213 "libtest_dlsym_df_1_global",
1214 "libtest_dlsym_from_this",
1215 "libtest_dlsym_from_this_child",
1216 "libtest_dlsym_from_this_grandchild",
1217 "libtest_dlsym_weak_func",
1218 "libtest_dt_runpath_a",
1219 "libtest_dt_runpath_b",
1220 "libtest_dt_runpath_c",
1221 "libtest_dt_runpath_d",
1222 "libtest_dt_runpath_d_zip",
1223 "libtest_dt_runpath_x",
1224 "libtest_dt_runpath_y",
1225 "libtest_elftls_dynamic",
1226 "libtest_elftls_dynamic_filler_1",
1227 "libtest_elftls_dynamic_filler_2",
1228 "libtest_elftls_dynamic_filler_3",
1229 "libtest_elftls_shared_var",
1230 "libtest_elftls_shared_var_ie",
1231 "libtest_elftls_tprel",
1232 "libtest_empty",
1233 "libtest_ifunc",
1234 "libtest_ifunc_variable",
1235 "libtest_ifunc_variable_impl",
1236 "libtest_indirect_thread_local_dtor",
1237 "libtest_init_fini_order_child",
1238 "libtest_init_fini_order_grand_child",
1239 "libtest_init_fini_order_root",
1240 "libtest_init_fini_order_root2",
1241 "libtest_missing_symbol",
1242 "libtest_missing_symbol_child_private",
1243 "libtest_missing_symbol_child_public",
1244 "libtest_missing_symbol_root",
1245 "libtest_nodelete_1",
1246 "libtest_nodelete_2",
1247 "libtest_nodelete_dt_flags_1",
1248 "libtest_pthread_atfork",
1249 "libtest_relo_check_dt_needed_order",
1250 "libtest_relo_check_dt_needed_order_1",
1251 "libtest_relo_check_dt_needed_order_2",
1252 "libtest_simple",
1253 "libtest_thread_local_dtor",
1254 "libtest_thread_local_dtor2",
1255 "libtest_two_parents_child",
1256 "libtest_two_parents_parent1",
1257 "libtest_two_parents_parent2",
1258 "libtest_versioned_lib",
1259 "libtest_versioned_libv1",
1260 "libtest_versioned_libv2",
1261 "libtest_versioned_otherlib",
1262 "libtest_versioned_otherlib_empty",
1263 "libtest_versioned_uselibv1",
1264 "libtest_versioned_uselibv2",
1265 "libtest_versioned_uselibv2_other",
1266 "libtest_versioned_uselibv3_other",
1267 "libtest_with_dependency",
1268 "libtest_with_dependency_loop",
1269 "libtest_with_dependency_loop_a",
1270 "libtest_with_dependency_loop_b",
1271 "libtest_with_dependency_loop_b_tmp",
1272 "libtest_with_dependency_loop_c",
1273 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001274
1275 // depends on unconverted libprotobuf-java-nano
1276 "dnsresolverprotosnano",
1277 "launcherprotosnano",
1278 "datastallprotosnano",
1279 "devicepolicyprotosnano",
Wei Li7d8f6182022-10-11 14:38:16 -07001280 "ota_metadata_proto_java",
1281 "merge_ota",
1282
1283 // releasetools
1284 "releasetools_fsverity_metadata_generator",
1285 "verity_utils",
1286 "check_ota_package_signature",
1287 "check_target_files_vintf",
1288 "releasetools_check_target_files_vintf",
1289 "releasetools_verity_utils",
1290 "build_image",
1291 "ota_from_target_files",
1292 "releasetools_ota_from_target_files",
1293 "releasetools_build_image",
1294 "add_img_to_target_files",
1295 "releasetools_add_img_to_target_files",
1296 "fsverity_metadata_generator",
1297 "sign_target_files_apks",
1298
1299 // depends on the support of yacc file
1300 "libapplypatch",
1301 "libapplypatch_modes",
1302 "applypatch",
Yu Liu6c999ef2022-10-19 16:41:10 +00001303
1304 // TODO(b/254476335): disable the following due to this bug
1305 "libapexinfo",
1306 "libapexinfo_tests",
Sam Delmerico24c56032022-03-28 19:53:03 +00001307 }
1308
1309 Bp2buildCcLibraryStaticOnlyList = []string{}
1310
1311 MixedBuildsDisabledList = []string{
Liz Kammer63367e12022-06-13 19:35:12 +00001312 "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
1313
Sam Delmerico24c56032022-03-28 19:53:03 +00001314 "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
1315
1316 "libbrotli", // http://b/198585397, ld.lld: error: bionic/libc/arch-arm64/generic/bionic/memmove.S:95:(.text+0x10): relocation R_AARCH64_CONDBR19 out of range: -1404176 is not in [-1048576, 1048575]; references __memcpy
1317 "minijail_constants_json", // http://b/200899432, bazel-built cc_genrule does not work in mixed build when it is a dependency of another soong module.
1318
1319 "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
1320 "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
1321 "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
1322
1323 // Depends on libprotobuf-cpp-*
1324 "libadb_pairing_connection",
1325 "libadb_pairing_connection_static",
1326 "libadb_pairing_server", "libadb_pairing_server_static",
1327
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxa56e9702022-02-23 18:39:59 -05001328 // TODO(b/240563612) Needing `stem` selection support for cc_binary
Sam Delmerico24c56032022-03-28 19:53:03 +00001329 "crasher",
Sam Delmerico277795c2022-02-25 17:04:37 +00001330
1331 // java_import[_host] issues
1332 // tradefed prebuilts depend on libprotobuf
1333 "prebuilt_tradefed",
1334 "prebuilt_tradefed-test-framework",
1335 // handcrafted BUILD.bazel files in //prebuilts/...
1336 "prebuilt_r8lib-prebuilt",
1337 "prebuilt_sdk-core-lambda-stubs",
1338 "prebuilt_android-support-collections-nodeps",
1339 "prebuilt_android-arch-core-common-nodeps",
1340 "prebuilt_android-arch-lifecycle-common-java8-nodeps",
1341 "prebuilt_android-arch-lifecycle-common-nodeps",
1342 "prebuilt_android-support-annotations-nodeps",
1343 "prebuilt_android-arch-paging-common-nodeps",
1344 "prebuilt_android-arch-room-common-nodeps",
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001345 // TODO(b/217750501) exclude_dirs property not supported
1346 "prebuilt_kotlin-reflect",
1347 "prebuilt_kotlin-stdlib",
1348 "prebuilt_kotlin-stdlib-jdk7",
1349 "prebuilt_kotlin-stdlib-jdk8",
1350 "prebuilt_kotlin-test",
1351 // TODO(b/217750501) exclude_files property not supported
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001352 "prebuilt_currysrc_org.eclipse",
Sam Delmerico24c56032022-03-28 19:53:03 +00001353 }
Chris Parsonsef615e52022-08-18 22:04:11 -04001354
Chris Parsons66fc7452022-11-04 13:26:17 -04001355 // Bazel prod-mode allowlist. Modules in this list are built by Bazel
1356 // in either prod mode or staging mode.
Christopher Parsonsff4cceb2022-11-30 15:44:15 +00001357 ProdMixedBuildsEnabledList = []string{"com.android.tzdata"}
MarkDacekb78465d2022-10-18 20:10:16 +00001358
Chris Parsons66fc7452022-11-04 13:26:17 -04001359 // Staging-mode allowlist. Modules in this list are only built
1360 // by Bazel with --bazel-mode-staging. This list should contain modules
1361 // which will soon be added to the prod allowlist.
Jingwen Chendece4572022-11-09 06:51:29 +00001362 StagingMixedBuildsEnabledList = []string{"com.android.tzdata"}
Sam Delmerico24c56032022-03-28 19:53:03 +00001363)