blob: a39c3688c9225c8d03cf9a9aa45194eb8328ccfd [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
36)
37
38var (
39 Bp2buildDefaultConfig = Bp2BuildConfig{
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040040 "art/libartbase": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +000041 "art/libartpalette": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040042 "art/libdexfile": Bp2BuildDefaultTrueRecursively,
43 "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
44 "art/runtime": Bp2BuildDefaultTrueRecursively,
45 "art/tools": Bp2BuildDefaultTrue,
46 "bionic": Bp2BuildDefaultTrueRecursively,
47 "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
48
Cole Faust324a92e2022-08-23 15:29:05 -070049 "build/bazel": Bp2BuildDefaultTrueRecursively,
50 "build/make/target/product/security": Bp2BuildDefaultTrue,
51 "build/make/tools/signapk": Bp2BuildDefaultTrue,
52 "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
53 "build/soong": Bp2BuildDefaultTrue,
54 "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
55 "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
56 "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
57 "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
58 "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040059
60 "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
61 "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
62 "development/apps/Fallback": Bp2BuildDefaultTrue,
63 "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
64 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
65 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
66 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
67 "development/samples/Compass": Bp2BuildDefaultTrue,
68 "development/samples/ContactManager": Bp2BuildDefaultTrue,
69 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
70 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
71 "development/samples/Home": Bp2BuildDefaultTrue,
72 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
73 "development/samples/JetBoy": Bp2BuildDefaultTrue,
74 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
75 "development/samples/LceDemo": Bp2BuildDefaultTrue,
76 "development/samples/LunarLander": Bp2BuildDefaultTrue,
77 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
78 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
79 "development/samples/NotePad": Bp2BuildDefaultTrue,
80 "development/samples/Obb": Bp2BuildDefaultTrue,
81 "development/samples/RSSReader": Bp2BuildDefaultTrue,
82 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
83 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
84 "development/samples/SipDemo": Bp2BuildDefaultTrue,
85 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
86 "development/samples/Snake": Bp2BuildDefaultTrue,
87 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
88 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
89 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
90 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
91 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
92 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
93 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
94 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
95 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
96 "development/sdk": Bp2BuildDefaultTrueRecursively,
97
98 "external/aac": Bp2BuildDefaultTrueRecursively,
99 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
100 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
101 "external/auto/common": Bp2BuildDefaultTrueRecursively,
102 "external/auto/service": Bp2BuildDefaultTrueRecursively,
103 "external/boringssl": Bp2BuildDefaultTrueRecursively,
104 "external/bouncycastle": Bp2BuildDefaultTrue,
105 "external/brotli": Bp2BuildDefaultTrue,
106 "external/conscrypt": Bp2BuildDefaultTrue,
107 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
108 "external/eigen": Bp2BuildDefaultTrueRecursively,
109 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
110 "external/error_prone": Bp2BuildDefaultTrueRecursively,
111 "external/expat": Bp2BuildDefaultTrueRecursively,
112 "external/f2fs-tools": Bp2BuildDefaultTrue,
113 "external/flac": Bp2BuildDefaultTrueRecursively,
114 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
115 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
116 "external/googletest": Bp2BuildDefaultTrueRecursively,
117 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
118 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
119 "external/icu": Bp2BuildDefaultTrueRecursively,
120 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
121 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400122 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400123 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400124 "external/javassist": Bp2BuildDefaultTrueRecursively,
125 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400126 "external/javapoet": Bp2BuildDefaultTrueRecursively,
127 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
128 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
129 "external/junit": Bp2BuildDefaultTrueRecursively,
130 "external/libavc": Bp2BuildDefaultTrueRecursively,
131 "external/libcap": Bp2BuildDefaultTrueRecursively,
132 "external/libcxx": Bp2BuildDefaultTrueRecursively,
133 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
134 "external/libevent": Bp2BuildDefaultTrueRecursively,
135 "external/libgav1": Bp2BuildDefaultTrueRecursively,
136 "external/libhevc": Bp2BuildDefaultTrueRecursively,
137 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
138 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
139 "external/libpng": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700140 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700141 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400142 "external/lz4/lib": Bp2BuildDefaultTrue,
143 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
144 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
145 "external/minijail": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000146 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400147 "external/pcre": Bp2BuildDefaultTrueRecursively,
148 "external/protobuf": Bp2BuildDefaultTrueRecursively,
149 "external/python/six": Bp2BuildDefaultTrueRecursively,
150 "external/rappor": Bp2BuildDefaultTrueRecursively,
151 "external/scudo": Bp2BuildDefaultTrueRecursively,
152 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
153 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700154 "external/speex": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400155 "external/toybox": Bp2BuildDefaultTrueRecursively,
156 "external/zlib": Bp2BuildDefaultTrueRecursively,
157 "external/zopfli": Bp2BuildDefaultTrueRecursively,
158 "external/zstd": Bp2BuildDefaultTrueRecursively,
159
Vinh Tranb01eb602022-08-25 19:14:28 -0400160 "frameworks/av": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400161 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000162 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400163 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
164 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Sam Delmerico97bd1272022-08-25 14:45:31 -0400165 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400166 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
167 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
168 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
169 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
170 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
171 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
172 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
173 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
174 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
175 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
176 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
177 "frameworks/proto_logging/stats/stats_log_api_gen": Bp2BuildDefaultTrueRecursively,
178
Liz Kammer1c921162022-08-17 16:58:32 -0400179 "hardware/interfaces": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000180 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400181 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
182 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
183 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
184 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
185 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
186 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
187 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
188 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
189 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
190 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
191 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000192 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400193 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
194 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
195 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
196 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
197 "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
198 "hardware/interfaces/media/bufferpool/2.0": Bp2BuildDefaultTrue,
199 "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
200 "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
201 "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
202 "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
203 "hardware/interfaces/neuralnetworks/1.0": Bp2BuildDefaultTrue,
204 "hardware/interfaces/neuralnetworks/1.1": Bp2BuildDefaultTrue,
205 "hardware/interfaces/neuralnetworks/1.2": Bp2BuildDefaultTrue,
206 "hardware/interfaces/neuralnetworks/1.3": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000207 "hardware/interfaces/neuralnetworks/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400208
209 "libnativehelper": Bp2BuildDefaultTrueRecursively,
210
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400211 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
212 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
213 "packages/apps/Protips": Bp2BuildDefaultTrue,
214 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
215 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
216 "packages/modules/adb": Bp2BuildDefaultTrue,
217 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
218 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
219 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
220 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
221 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
222 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
223 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000224 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400225 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000226 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400227
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000228 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
229
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400230 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
231 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
232 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
233 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
234 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
235
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000236 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
237 "system/apex/apexer": Bp2BuildDefaultTrue,
238 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
239 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
240 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
241 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
242 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
243 "system/core/libasyncio": Bp2BuildDefaultTrue,
244 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
245 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
246 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
247 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
248 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
249 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
250 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000251 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000252 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
253 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
254 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
255 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
256 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
257 "system/libbase": Bp2BuildDefaultTrueRecursively,
258 "system/libfmq": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400259 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
260 "system/libhidl/transport": Bp2BuildDefaultTrue,
261 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700262 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
263 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
264 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
265 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400266 "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
267 "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
268 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
269 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
270 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000271 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
272 "system/libprocinfo": Bp2BuildDefaultTrue,
273 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000274 "system/logging": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000275 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700276 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000277 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
278 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
279 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000280 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000281 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
282 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
283 "system/tools/sysprop": Bp2BuildDefaultTrue,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400284 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000285 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400286
287 "tools/apksig": Bp2BuildDefaultTrue,
288 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
289 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000290 }
291
292 Bp2buildKeepExistingBuildFile = map[string]bool{
293 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
294 ".":/*recursive = */ false,
295
Cole Faust324a92e2022-08-23 15:29:05 -0700296 "build/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000297 "build/bazel_common_rules":/* recursive = */ true,
298 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
299 "build/make/tools":/* recursive = */ false,
300 "build/pesto":/* recursive = */ true,
Liz Kammer15088e42022-08-12 16:37:40 -0400301 "build/soong/ui/metrics/bp2build_progress_metrics_proto":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000302
303 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
304 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
305 "external/bazelbuild-rules_android":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400306 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000307 "external/bazel-skylib":/* recursive = */ true,
308 "external/guava":/* recursive = */ true,
309 "external/jsr305":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700310 "external/protobuf":/* recursive = */ false,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400311 "frameworks/base/tools/codegen":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000312 "frameworks/ex/common":/* recursive = */ true,
313
314 "packages/apps/Music":/* recursive = */ true,
315 "packages/apps/QuickSearchBox":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000316
Romain Jobredeaux29197972022-05-30 22:02:31 -0400317 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000318 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700319 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000320 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000321 "prebuilts/build-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000322 "prebuilts/jdk/jdk11":/* recursive = */ false,
Cole Faust7071a052022-07-29 15:58:33 -0700323 "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 +0000324 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000325 "prebuilts/sdk/tools":/* recursive = */ false,
326 "prebuilts/r8":/* recursive = */ false,
327 }
328
329 Bp2buildModuleAlwaysConvertList = []string{
Liz Kammerbe1315e2022-05-10 09:15:31 -0400330 // cc mainline modules
Liz Kammerbe1315e2022-05-10 09:15:31 -0400331 "code_coverage.policy",
332 "code_coverage.policy.other",
333 "codec2_soft_exports",
Liz Kammer5068eae2022-05-11 17:24:29 -0400334 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400335 "com.android.media.swcodec-ld.config.txt",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400336 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400337 "com.android.media.swcodec.certificate",
338 "com.android.media.swcodec.key",
339 "com.android.neuralnetworks-androidManifest",
340 "com.android.neuralnetworks.certificate",
341 "com.android.neuralnetworks.key",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400342 "flatbuffer_headers",
343 "gemmlowp_headers",
344 "gl_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000345 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400346 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400347 "libaudioclient_aidl_conversion_util",
Vinh Tran9f6796a2022-08-16 13:10:31 -0400348 "libbinder",
349 "libbinder_device_interface_sources",
Vinh Tran444154d2022-08-16 13:10:31 -0400350 "libbinder_aidl",
Liz Kammer63367e12022-06-13 19:35:12 +0000351 "libbinder_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400352 "libbinder_headers_platform_shared",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400353 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000354 "libbufferhub_headers",
355 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400356 "libcodec2_headers",
357 "libcodec2_internal",
358 "libdmabufheap",
Liz Kammer63367e12022-06-13 19:35:12 +0000359 "libdvr_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400360 "libgsm",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400361 "libgui_bufferqueue_sources",
Liz Kammer63367e12022-06-13 19:35:12 +0000362 "libhardware",
Liz Kammer5068eae2022-05-11 17:24:29 -0400363 "libhardware_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000364 "libincfs_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400365 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400366 "libnativewindow_headers",
367 "libneuralnetworks_headers",
368 "libopus",
Liz Kammer63367e12022-06-13 19:35:12 +0000369 "libpdx_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400370 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000371 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700372 "libandroidio",
373 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400374 "libserviceutils",
Liz Kammer5068eae2022-05-11 17:24:29 -0400375 "libstagefright_enc_common",
376 "libstagefright_foundation_headers",
377 "libstagefright_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000378 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400379 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400380 "libtextclassifier_hash_headers",
381 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000382 "libtflite_kernel_utils",
383 "libtinyxml2",
Liz Kammer5068eae2022-05-11 17:24:29 -0400384 "libui-types",
Liz Kammer63367e12022-06-13 19:35:12 +0000385 "libui_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400386 "libvorbisidec",
387 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000388 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400389 "mediaswcodec.policy",
390 "mediaswcodec.xml",
Liz Kammer63367e12022-06-13 19:35:12 +0000391 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400392 "philox_random_headers",
393 "server_configurable_flags",
394 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400395
Jingwen Chen9009dc22022-08-04 15:26:46 +0000396 // fastboot
397 "bootimg_headers",
398 "fastboot",
399 "libfastboot",
400 "liblp",
401 "libstorage_literals_headers",
402
Sam Delmerico24c56032022-03-28 19:53:03 +0000403 //external/avb
404 "avbtool",
405 "libavb",
406 "avb_headers",
407
408 //external/fec
409 "libfec_rs",
410
411 //system/core/libsparse
412 "libsparse",
413
414 //system/extras/ext4_utils
415 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700416 "mke2fs_conf",
Sam Delmerico24c56032022-03-28 19:53:03 +0000417
418 //system/extras/libfec
419 "libfec",
420
421 //system/extras/squashfs_utils
422 "libsquashfs_utils",
423
424 //system/extras/verity/fec
425 "fec",
426
427 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
428 // genrule dependencies for java_imports
429 "car-ui-androidx-annotation-nodeps",
430 "car-ui-androidx-collection-nodeps",
431 "car-ui-androidx-core-common-nodeps",
432 "car-ui-androidx-lifecycle-common-nodeps",
433 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700434
435 //system/libhidl
436 // needed by cc_hidl_library
437 "libhidlbase",
Vinh Tran444154d2022-08-16 13:10:31 -0400438
439 //frameworks/native
440 "framework_native_aidl_binder",
441 "framework_native_aidl_gui",
442
443 //frameworks/native/libs/input
444 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400445
446 // needed for aidl_interface's ndk backend
447 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000448
449 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000450
451 // needed by liblogd
452 "ILogcatManagerService_aidl",
453 "libincremental_aidl-cpp",
454 "incremental_aidl",
Jingwen Chen2247aca2022-09-09 10:47:43 +0000455
456 //frameworks/native/cmds/cmd
457 "libcmd",
Sam Delmerico24c56032022-03-28 19:53:03 +0000458 }
459
460 Bp2buildModuleTypeAlwaysConvertList = []string{
Liz Kammer45faf8f2022-06-02 16:00:54 -0400461 "linker_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000462 "java_import",
463 "java_import_host",
Trevor Radcliffead3d1232022-09-01 16:25:10 +0000464 "sysprop_library",
Sam Delmerico97bd1272022-08-25 14:45:31 -0400465 "aidl_interface_headers",
Sam Delmerico24c56032022-03-28 19:53:03 +0000466 }
467
468 Bp2buildModuleDoNotConvertList = []string{
469 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +0000470 "libactivitymanager_aidl", // TODO(b/207426160): Unsupported use of aidl sources (via Dactivity_manager_procstate_aidl) in a cc_library
471
472 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +0000473 "logtagd.rc",
474
Sam Delmerico24c56032022-03-28 19:53:03 +0000475 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +0000476
477 // TODO(b/202876379): has arch-variant static_executable
478 "linkerconfig",
479 "mdnsd",
480 "libcutils_test_static",
481 "KernelLibcutilsTest",
482
Cole Faust7071a052022-07-29 15:58:33 -0700483 "linker", // TODO(b/228316882): cc_binary uses link_crt
Cole Faust7071a052022-07-29 15:58:33 -0700484 "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 +0000485 "art_libartbase_headers", // TODO(b/236268577): Header libraries do not support export_shared_libs_headers
486 "apexer_test", // Requires aapt2
Cole Faust91a2e102022-05-31 14:56:48 -0700487 "apexer_test_host_tools",
488 "host_apex_verifier",
Cole Faust7071a052022-07-29 15:58:33 -0700489 "tjbench", // TODO(b/240563612): Stem property
Sam Delmerico24c56032022-03-28 19:53:03 +0000490
491 // java bugs
492 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
493
494 // python protos
Cole Faust53b62092022-05-12 15:37:02 -0700495 "libprotobuf-python", // Has a handcrafted alternative
Sam Delmerico24c56032022-03-28 19:53:03 +0000496
497 // genrule incompatibilities
498 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
499 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
500
501 // aar support
502 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
503 "prebuilt_platform-robolectric-4.4-prebuilt", // aosp/1999250, needs .aar support in Jars
504 "prebuilt_platform-robolectric-4.5.1-prebuilt", // aosp/1999250, needs .aar support in Jars
505
Liz Kammer63367e12022-06-13 19:35:12 +0000506 // proto support
507 "libstats_proto_host", // TODO(b/236055697): handle protos from other packages
508
Sam Delmerico24c56032022-03-28 19:53:03 +0000509 // path property for filegroups
510 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
511 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
512 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
513 "libprotobuf-internal-protos", // TODO(b/210751803), we don't handle path property for filegroups
514 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
515 "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
516 "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico79985812022-03-23 20:20:42 +0000517 "auto_value_plugin_resources", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000518
519 // go deps:
520 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
521 "apex-protos", // depends on soong_zip, a go binary
522 "generated_android_icu4j_src_files", "generated_android_icu4j_test_files", "icu4c_test_data", // depends on unconverted modules: soong_zip
523 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
524 "host_bionic_linker_script", // depends on extract_linker, a go binary.
525 "libc_musl_sysroot_bionic_arch_headers", // depends on soong_zip
Jingwen Chenc1728162022-04-27 09:56:33 +0000526 "libc_musl_sysroot_zlib_headers", // depends on soong_zip and zip2zip
Sam Delmerico24c56032022-03-28 19:53:03 +0000527 "libc_musl_sysroot_bionic_headers", // 218405924, depends on soong_zip and generates duplicate srcs
528 "libc_musl_sysroot_libc++_headers", "libc_musl_sysroot_libc++abi_headers", // depends on soong_zip, zip2zip
529 "robolectric-sqlite4java-native", // depends on soong_zip, a go binary
530 "robolectric_tzdata", // depends on soong_zip, a go binary
531
532 // rust support
533 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
534
535 // unconverted deps
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000536 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000537 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
538 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
539 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
540 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
541 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
542 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
Sam Delmerico24c56032022-03-28 19:53:03 +0000543 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
Sam Delmerico24c56032022-03-28 19:53:03 +0000544 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
545 "dex2oat-script", // depends on unconverted modules: dex2oat
546 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary, soong_zip
547 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary, soong_zip
548 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400549 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -0400550 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +0000551 "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
552 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
553 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -0400554 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
555 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Sam Delmerico24c56032022-03-28 19:53:03 +0000556 "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
557 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +0000558 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +0000559 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
560 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +0000561 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
562 "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
563 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
564 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
565 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
566 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
567 "libprotobuf-java-nano", // b/220869005, depends on non-public_current SDK
Vinh Tranc3873e82022-08-23 20:33:25 -0400568 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +0000569 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
570 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
571 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
572 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
573 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
574 "stats-log-api-gen", // depends on unconverted modules: libstats_proto_host
575 "statslog.cpp", "statslog.h", "statslog.rs", // depends on unconverted modules: stats-log-api-gen
576 "statslog_art.cpp", "statslog_art.h", "statslog_header.rs", // depends on unconverted modules: stats-log-api-gen
Liz Kammer3d13adc2022-08-09 09:26:54 -0400577 "test_fips", // depends on unconverted modules: adb
578 "timezone-host", // depends on unconverted modules: art.module.api.annotations
579 "truth-host-prebuilt", // depends on unconverted modules: truth-prebuilt
580 "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 +0000581
Jingwen Chen5012e072022-08-04 15:04:43 +0000582 // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
583 "toybox-static",
Wei Li81852ca2022-07-27 00:22:06 -0700584
Jingwen Chen537242c2022-08-24 11:53:27 +0000585 // cc_test related.
586 // Failing host cc_tests
587 "memunreachable_unit_test",
588 "libprocinfo_test",
589 "ziparchive-tests",
590 "gtest_isolated_tests",
591 "libunwindstack_unit_test",
592 "task_profiles_test",
593 "power_tests", // failing test on server, but not on host
594
595 // reflect: call of reflect.Value.NumField on interface Value
596 // affects all cc_tests that depend on art_defaults
597 "libnativebridge-tests",
598 "libnativeloader_test",
599 "art_libnativebridge_cts_tests",
600 "art_standalone_libdexfile_external_tests",
601 "art_standalone_libdexfile_support_tests",
602 "libnativebridge-lazy-tests",
603 "libnativebridge-test-case",
604 "libnativebridge2-test-case",
605 "libnativebridge3-test-case",
606 "libnativebridge6-test-case",
607 "libnativebridge6prezygotefork",
608
609 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
610 "AMRWBEncTest",
Jingwen Chenf0616002022-09-01 14:28:55 +0000611 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
612 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
613 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
614 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
Jingwen Chen537242c2022-08-24 11:53:27 +0000615 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
616 "Mpeg4H263DecoderTest", // depends on unconverted modules: libstagefright_foundation
617 "Mpeg4H263EncoderTest",
Jingwen Chen537242c2022-08-24 11:53:27 +0000618 "avcdec",
619 "avcenc",
620 "bionic-benchmarks-tests",
621 "bionic-fortify-runtime-asan-test",
622 "bionic-stress-tests",
623 "bionic-unit-tests",
624 "bionic-unit-tests-glibc",
625 "bionic-unit-tests-static",
626 "boringssl_crypto_test",
627 "boringssl_ssl_test",
628 "cfi_test_helper",
629 "cfi_test_helper2",
630 "cintltst32",
631 "cintltst64",
632 "compare",
633 "cpuid",
634 "debuggerd_test", // depends on unconverted modules: libdebuggerd
635 "elftls_dlopen_ie_error_helper",
636 "exec_linker_helper",
637 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
638 "fdtrack_test",
639 "google-benchmark-test",
640 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
641 "gtest-typed-test_test",
642 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
643 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
644 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
645 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
646 "gtest_tests",
647 "gtest_tests_no_main",
648 "gwp_asan_unittest",
649 "half_test",
650 "hashcombine_test",
651 "hevcdec",
652 "hevcenc",
653 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
654 "i444tonv12_eg",
655 "icu4c_sample_break",
656 "intltest32",
657 "intltest64",
658 "ion-unit-tests",
659 "jemalloc5_integrationtests",
660 "jemalloc5_unittests",
661 "ld_config_test_helper",
662 "ld_preload_test_helper",
663 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
664 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
665 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
666 "libavservices_minijail_unittest",
667 "libcutils_sockets_test",
668 "libexpectedutils_test",
669 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +0000670 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +0000671 "libminijail_test",
672 "libminijail_unittest_gtest",
673 "libpackagelistparser_test",
674 "libprotobuf_vendor_suffix_test",
675 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
676 "libstagefright_amrnbenc_test",
677 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
678 "libstagefright_m4vh263enc_test",
679 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
680 "libstatssocket_test",
681 "libvndksupport-tests",
682 "libyuv_unittest",
683 "linker-unit-tests",
684 "malloc_debug_system_tests",
685 "malloc_debug_unit_tests",
686 "malloc_hooks_system_tests",
687 "mat_test",
688 "mathtest",
689 "memunreachable_binder_test", // depends on unconverted modules: libbinder
690 "memunreachable_test",
691 "metadata_tests",
692 "minijail0_cli_unittest_gtest",
693 "mpeg2dec",
694 "mvcdec",
695 "ns_hidden_child_helper",
696 "pngtest",
697 "preinit_getauxval_test_helper",
698 "preinit_syscall_test_helper",
699 "psnr",
700 "quat_test",
701 "rappor-tests", // depends on unconverted modules: jsr305, guava
702 "scudo_unit_tests",
703 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
704 "syscall_filter_unittest_gtest",
705 "sysprop_test", // depends on unconverted modules: libcom.android.sysprop.tests
706 "thread_exit_cb_helper",
707 "tls_properties_helper",
708 "ulp",
709 "vec_test",
710 "yuvconstants",
711 "yuvconvert",
712 "zipalign_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +0000713
714 // cc_test_library
715 "clang_diagnostic_tests",
716 "exec_linker_helper_lib",
717 "fortify_disabled_for_tidy",
718 "ld_config_test_helper_lib1",
719 "ld_config_test_helper_lib2",
720 "ld_config_test_helper_lib3",
721 "ld_preload_test_helper_lib1",
722 "ld_preload_test_helper_lib2",
723 "libBionicElfTlsLoaderTests",
724 "libBionicElfTlsTests",
725 "libBionicElfTlsTests",
726 "libBionicFramePointerTests",
727 "libBionicFramePointerTests",
728 "libBionicStandardTests",
729 "libBionicStandardTests",
730 "libBionicTests",
731 "libart-broken",
732 "libatest_simple_zip",
733 "libcfi-test",
734 "libcfi-test-bad",
735 "libcrash_test",
736 // "libcrypto_fuzz_unsafe",
737 "libdl_preempt_test_1",
738 "libdl_preempt_test_2",
739 "libdl_test_df_1_global",
740 "libdlext_test",
741 "libdlext_test_different_soname",
742 "libdlext_test_fd",
743 "libdlext_test_norelro",
744 "libdlext_test_recursive",
745 "libdlext_test_zip",
746 "libfortify1-new-tests-clang",
747 "libfortify1-new-tests-clang",
748 "libfortify1-tests-clang",
749 "libfortify1-tests-clang",
750 "libfortify2-new-tests-clang",
751 "libfortify2-new-tests-clang",
752 "libfortify2-tests-clang",
753 "libfortify2-tests-clang",
754 "libgnu-hash-table-library",
755 "libicutest_static",
756 "liblinker_reloc_bench_000",
757 "liblinker_reloc_bench_001",
758 "liblinker_reloc_bench_002",
759 "liblinker_reloc_bench_003",
760 "liblinker_reloc_bench_004",
761 "liblinker_reloc_bench_005",
762 "liblinker_reloc_bench_006",
763 "liblinker_reloc_bench_007",
764 "liblinker_reloc_bench_008",
765 "liblinker_reloc_bench_009",
766 "liblinker_reloc_bench_010",
767 "liblinker_reloc_bench_011",
768 "liblinker_reloc_bench_012",
769 "liblinker_reloc_bench_013",
770 "liblinker_reloc_bench_014",
771 "liblinker_reloc_bench_015",
772 "liblinker_reloc_bench_016",
773 "liblinker_reloc_bench_017",
774 "liblinker_reloc_bench_018",
775 "liblinker_reloc_bench_019",
776 "liblinker_reloc_bench_020",
777 "liblinker_reloc_bench_021",
778 "liblinker_reloc_bench_022",
779 "liblinker_reloc_bench_023",
780 "liblinker_reloc_bench_024",
781 "liblinker_reloc_bench_025",
782 "liblinker_reloc_bench_026",
783 "liblinker_reloc_bench_027",
784 "liblinker_reloc_bench_028",
785 "liblinker_reloc_bench_029",
786 "liblinker_reloc_bench_030",
787 "liblinker_reloc_bench_031",
788 "liblinker_reloc_bench_032",
789 "liblinker_reloc_bench_033",
790 "liblinker_reloc_bench_034",
791 "liblinker_reloc_bench_035",
792 "liblinker_reloc_bench_036",
793 "liblinker_reloc_bench_037",
794 "liblinker_reloc_bench_038",
795 "liblinker_reloc_bench_039",
796 "liblinker_reloc_bench_040",
797 "liblinker_reloc_bench_041",
798 "liblinker_reloc_bench_042",
799 "liblinker_reloc_bench_043",
800 "liblinker_reloc_bench_044",
801 "liblinker_reloc_bench_045",
802 "liblinker_reloc_bench_046",
803 "liblinker_reloc_bench_047",
804 "liblinker_reloc_bench_048",
805 "liblinker_reloc_bench_049",
806 "liblinker_reloc_bench_050",
807 "liblinker_reloc_bench_051",
808 "liblinker_reloc_bench_052",
809 "liblinker_reloc_bench_053",
810 "liblinker_reloc_bench_054",
811 "liblinker_reloc_bench_055",
812 "liblinker_reloc_bench_056",
813 "liblinker_reloc_bench_057",
814 "liblinker_reloc_bench_058",
815 "liblinker_reloc_bench_059",
816 "liblinker_reloc_bench_060",
817 "liblinker_reloc_bench_061",
818 "liblinker_reloc_bench_062",
819 "liblinker_reloc_bench_063",
820 "liblinker_reloc_bench_064",
821 "liblinker_reloc_bench_065",
822 "liblinker_reloc_bench_066",
823 "liblinker_reloc_bench_067",
824 "liblinker_reloc_bench_068",
825 "liblinker_reloc_bench_069",
826 "liblinker_reloc_bench_070",
827 "liblinker_reloc_bench_071",
828 "liblinker_reloc_bench_072",
829 "liblinker_reloc_bench_073",
830 "liblinker_reloc_bench_074",
831 "liblinker_reloc_bench_075",
832 "liblinker_reloc_bench_076",
833 "liblinker_reloc_bench_077",
834 "liblinker_reloc_bench_078",
835 "liblinker_reloc_bench_079",
836 "liblinker_reloc_bench_080",
837 "liblinker_reloc_bench_081",
838 "liblinker_reloc_bench_082",
839 "liblinker_reloc_bench_083",
840 "liblinker_reloc_bench_084",
841 "liblinker_reloc_bench_085",
842 "liblinker_reloc_bench_086",
843 "liblinker_reloc_bench_087",
844 "liblinker_reloc_bench_088",
845 "liblinker_reloc_bench_089",
846 "liblinker_reloc_bench_090",
847 "liblinker_reloc_bench_091",
848 "liblinker_reloc_bench_092",
849 "liblinker_reloc_bench_093",
850 "liblinker_reloc_bench_094",
851 "liblinker_reloc_bench_095",
852 "liblinker_reloc_bench_096",
853 "liblinker_reloc_bench_097",
854 "liblinker_reloc_bench_098",
855 "liblinker_reloc_bench_099",
856 "liblinker_reloc_bench_100",
857 "liblinker_reloc_bench_101",
858 "liblinker_reloc_bench_102",
859 "liblinker_reloc_bench_103",
860 "liblinker_reloc_bench_104",
861 "liblinker_reloc_bench_105",
862 "liblinker_reloc_bench_106",
863 "liblinker_reloc_bench_107",
864 "liblinker_reloc_bench_108",
865 "liblinker_reloc_bench_109",
866 "liblinker_reloc_bench_110",
867 "liblinker_reloc_bench_111",
868 "liblinker_reloc_bench_112",
869 "liblinker_reloc_bench_113",
870 "liblinker_reloc_bench_114",
871 "liblinker_reloc_bench_115",
872 "liblinker_reloc_bench_116",
873 "liblinker_reloc_bench_117",
874 "liblinker_reloc_bench_118",
875 "liblinker_reloc_bench_119",
876 "liblinker_reloc_bench_120",
877 "liblinker_reloc_bench_121",
878 "liblinker_reloc_bench_122",
879 "liblinker_reloc_bench_123",
880 "liblinker_reloc_bench_124",
881 "liblinker_reloc_bench_125",
882 "liblinker_reloc_bench_126",
883 "liblinker_reloc_bench_127",
884 "liblinker_reloc_bench_128",
885 "liblinker_reloc_bench_129",
886 "liblinker_reloc_bench_130",
887 "liblinker_reloc_bench_131",
888 "liblinker_reloc_bench_132",
889 "liblinker_reloc_bench_133",
890 "liblinker_reloc_bench_134",
891 "liblinker_reloc_bench_135",
892 "liblinker_reloc_bench_136",
893 "liblinker_reloc_bench_137",
894 "liblinker_reloc_bench_138",
895 "liblinker_reloc_bench_139",
896 "liblinker_reloc_bench_140",
897 "liblinker_reloc_bench_141",
898 "liblinker_reloc_bench_142",
899 "liblinker_reloc_bench_143",
900 "liblinker_reloc_bench_144",
901 "liblinker_reloc_bench_145",
902 "liblinker_reloc_bench_146",
903 "liblinker_reloc_bench_147",
904 "liblinker_reloc_bench_148",
905 "liblinker_reloc_bench_149",
906 "liblinker_reloc_bench_150",
907 "liblinker_reloc_bench_151",
908 "liblinker_reloc_bench_152",
909 "liblinker_reloc_bench_153",
910 "liblinker_reloc_bench_154",
911 "liblinker_reloc_bench_155",
912 "liblinker_reloc_bench_156",
913 "liblinker_reloc_bench_157",
914 "liblinker_reloc_bench_158",
915 "liblinker_reloc_bench_159",
916 "liblinker_reloc_bench_160",
917 "liblinker_reloc_bench_161",
918 "liblinker_reloc_bench_162",
919 "liblinker_reloc_bench_163",
920 "liblinker_reloc_bench_164",
921 "liblinker_reloc_bench_165",
922 "liblinker_reloc_bench_166",
923 "liblinker_reloc_bench_167",
924 "liblinker_reloc_bench_168",
925 "libns_hidden_child_app",
926 "libns_hidden_child_global",
927 "libns_hidden_child_internal",
928 "libns_hidden_child_public",
929 "libnstest_dlopened",
930 "libnstest_ns_a_public1",
931 "libnstest_ns_a_public1_internal",
932 "libnstest_ns_b_public2",
933 "libnstest_ns_b_public3",
934 "libnstest_private",
935 "libnstest_private_external",
936 "libnstest_public",
937 "libnstest_public_internal",
938 "libnstest_root",
939 "libnstest_root_not_isolated",
940 "librelocations-ANDROID_REL",
941 "librelocations-ANDROID_RELR",
942 "librelocations-RELR",
943 "librelocations-fat",
944 "libsegment_gap_inner",
945 "libsegment_gap_outer",
946 // "libssl_fuzz_unsafe",
947 "libstatssocket_private",
948 "libsysv-hash-table-library",
949 "libtest_atexit",
950 "libtest_check_order_dlsym",
951 "libtest_check_order_dlsym_1_left",
952 "libtest_check_order_dlsym_2_right",
953 "libtest_check_order_dlsym_3_c",
954 "libtest_check_order_dlsym_a",
955 "libtest_check_order_dlsym_b",
956 "libtest_check_order_dlsym_d",
957 "libtest_check_order_reloc_root",
958 "libtest_check_order_reloc_root_1",
959 "libtest_check_order_reloc_root_2",
960 "libtest_check_order_reloc_siblings",
961 "libtest_check_order_reloc_siblings_1",
962 "libtest_check_order_reloc_siblings_2",
963 "libtest_check_order_reloc_siblings_3",
964 "libtest_check_order_reloc_siblings_a",
965 "libtest_check_order_reloc_siblings_b",
966 "libtest_check_order_reloc_siblings_c",
967 "libtest_check_order_reloc_siblings_c_1",
968 "libtest_check_order_reloc_siblings_c_2",
969 "libtest_check_order_reloc_siblings_d",
970 "libtest_check_order_reloc_siblings_e",
971 "libtest_check_order_reloc_siblings_f",
972 "libtest_check_rtld_next_from_library",
973 "libtest_dlopen_df_1_global",
974 "libtest_dlopen_from_ctor",
975 "libtest_dlopen_from_ctor_main",
976 "libtest_dlopen_weak_undefined_func",
977 "libtest_dlsym_df_1_global",
978 "libtest_dlsym_from_this",
979 "libtest_dlsym_from_this_child",
980 "libtest_dlsym_from_this_grandchild",
981 "libtest_dlsym_weak_func",
982 "libtest_dt_runpath_a",
983 "libtest_dt_runpath_b",
984 "libtest_dt_runpath_c",
985 "libtest_dt_runpath_d",
986 "libtest_dt_runpath_d_zip",
987 "libtest_dt_runpath_x",
988 "libtest_dt_runpath_y",
989 "libtest_elftls_dynamic",
990 "libtest_elftls_dynamic_filler_1",
991 "libtest_elftls_dynamic_filler_2",
992 "libtest_elftls_dynamic_filler_3",
993 "libtest_elftls_shared_var",
994 "libtest_elftls_shared_var_ie",
995 "libtest_elftls_tprel",
996 "libtest_empty",
997 "libtest_ifunc",
998 "libtest_ifunc_variable",
999 "libtest_ifunc_variable_impl",
1000 "libtest_indirect_thread_local_dtor",
1001 "libtest_init_fini_order_child",
1002 "libtest_init_fini_order_grand_child",
1003 "libtest_init_fini_order_root",
1004 "libtest_init_fini_order_root2",
1005 "libtest_missing_symbol",
1006 "libtest_missing_symbol_child_private",
1007 "libtest_missing_symbol_child_public",
1008 "libtest_missing_symbol_root",
1009 "libtest_nodelete_1",
1010 "libtest_nodelete_2",
1011 "libtest_nodelete_dt_flags_1",
1012 "libtest_pthread_atfork",
1013 "libtest_relo_check_dt_needed_order",
1014 "libtest_relo_check_dt_needed_order_1",
1015 "libtest_relo_check_dt_needed_order_2",
1016 "libtest_simple",
1017 "libtest_thread_local_dtor",
1018 "libtest_thread_local_dtor2",
1019 "libtest_two_parents_child",
1020 "libtest_two_parents_parent1",
1021 "libtest_two_parents_parent2",
1022 "libtest_versioned_lib",
1023 "libtest_versioned_libv1",
1024 "libtest_versioned_libv2",
1025 "libtest_versioned_otherlib",
1026 "libtest_versioned_otherlib_empty",
1027 "libtest_versioned_uselibv1",
1028 "libtest_versioned_uselibv2",
1029 "libtest_versioned_uselibv2_other",
1030 "libtest_versioned_uselibv3_other",
1031 "libtest_with_dependency",
1032 "libtest_with_dependency_loop",
1033 "libtest_with_dependency_loop_a",
1034 "libtest_with_dependency_loop_b",
1035 "libtest_with_dependency_loop_b_tmp",
1036 "libtest_with_dependency_loop_c",
1037 "libtestshared",
Sam Delmerico24c56032022-03-28 19:53:03 +00001038 }
1039
1040 Bp2buildCcLibraryStaticOnlyList = []string{}
1041
1042 MixedBuildsDisabledList = []string{
Liz Kammer63367e12022-06-13 19:35:12 +00001043 "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
1044
Sam Delmerico24c56032022-03-28 19:53:03 +00001045 "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
1046
1047 "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
1048 "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.
1049
1050 "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
1051 "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
1052 "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
1053
1054 // Depends on libprotobuf-cpp-*
1055 "libadb_pairing_connection",
1056 "libadb_pairing_connection_static",
1057 "libadb_pairing_server", "libadb_pairing_server_static",
1058
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxa56e9702022-02-23 18:39:59 -05001059 // TODO(b/240563612) Needing `stem` selection support for cc_binary
Sam Delmerico24c56032022-03-28 19:53:03 +00001060 "crasher",
Sam Delmerico277795c2022-02-25 17:04:37 +00001061
1062 // java_import[_host] issues
1063 // tradefed prebuilts depend on libprotobuf
1064 "prebuilt_tradefed",
1065 "prebuilt_tradefed-test-framework",
1066 // handcrafted BUILD.bazel files in //prebuilts/...
1067 "prebuilt_r8lib-prebuilt",
1068 "prebuilt_sdk-core-lambda-stubs",
1069 "prebuilt_android-support-collections-nodeps",
1070 "prebuilt_android-arch-core-common-nodeps",
1071 "prebuilt_android-arch-lifecycle-common-java8-nodeps",
1072 "prebuilt_android-arch-lifecycle-common-nodeps",
1073 "prebuilt_android-support-annotations-nodeps",
1074 "prebuilt_android-arch-paging-common-nodeps",
1075 "prebuilt_android-arch-room-common-nodeps",
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001076 // TODO(b/217750501) exclude_dirs property not supported
1077 "prebuilt_kotlin-reflect",
1078 "prebuilt_kotlin-stdlib",
1079 "prebuilt_kotlin-stdlib-jdk7",
1080 "prebuilt_kotlin-stdlib-jdk8",
1081 "prebuilt_kotlin-test",
1082 // TODO(b/217750501) exclude_files property not supported
1083 "prebuilt_platform-robolectric-4.4-prebuilt",
1084 "prebuilt_platform-robolectric-4.5.1-prebuilt",
1085 "prebuilt_currysrc_org.eclipse",
Sam Delmerico24c56032022-03-28 19:53:03 +00001086 }
Chris Parsonsef615e52022-08-18 22:04:11 -04001087
1088 ProdMixedBuildsEnabledList = []string{
Chris Parsons543c8c42022-09-08 11:40:24 -04001089 "com.android.adbd",
Chris Parsonsef615e52022-08-18 22:04:11 -04001090 }
Sam Delmerico24c56032022-03-28 19:53:03 +00001091)