blob: a9c766b5711e0fa23596c490725748bcae1c7a50 [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{
Sasha Smundak8bea2672022-08-04 13:31:14 -070040 "art": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040041 "art/libartbase": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +000042 "art/libartpalette": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040043 "art/libdexfile": Bp2BuildDefaultTrueRecursively,
44 "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
45 "art/runtime": Bp2BuildDefaultTrueRecursively,
46 "art/tools": Bp2BuildDefaultTrue,
47 "bionic": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +000048 "bootable/recovery/minadbd": Bp2BuildDefaultTrue,
49 "bootable/recovery/minui": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -070050 "bootable/recovery/applypatch": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +000051 "bootable/recovery/recovery_utils": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040052 "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
53
Cole Faust324a92e2022-08-23 15:29:05 -070054 "build/bazel": Bp2BuildDefaultTrueRecursively,
55 "build/make/target/product/security": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -070056 "build/make/tools/releasetools": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070057 "build/make/tools/signapk": Bp2BuildDefaultTrue,
58 "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
59 "build/soong": Bp2BuildDefaultTrue,
60 "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
61 "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
62 "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -070063 "build/soong/licenses": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070064 "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
65 "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040066
67 "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
68 "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
69 "development/apps/Fallback": Bp2BuildDefaultTrue,
70 "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
71 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
72 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
73 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
74 "development/samples/Compass": Bp2BuildDefaultTrue,
75 "development/samples/ContactManager": Bp2BuildDefaultTrue,
76 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
77 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
78 "development/samples/Home": Bp2BuildDefaultTrue,
79 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
80 "development/samples/JetBoy": Bp2BuildDefaultTrue,
81 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
82 "development/samples/LceDemo": Bp2BuildDefaultTrue,
83 "development/samples/LunarLander": Bp2BuildDefaultTrue,
84 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
85 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
86 "development/samples/NotePad": Bp2BuildDefaultTrue,
87 "development/samples/Obb": Bp2BuildDefaultTrue,
88 "development/samples/RSSReader": Bp2BuildDefaultTrue,
89 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
90 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
91 "development/samples/SipDemo": Bp2BuildDefaultTrue,
92 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
93 "development/samples/Snake": Bp2BuildDefaultTrue,
94 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
95 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
96 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
97 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
98 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
99 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
100 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
101 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
102 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
103 "development/sdk": Bp2BuildDefaultTrueRecursively,
104
105 "external/aac": Bp2BuildDefaultTrueRecursively,
106 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
107 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700108 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400109 "external/auto/common": Bp2BuildDefaultTrueRecursively,
110 "external/auto/service": Bp2BuildDefaultTrueRecursively,
111 "external/boringssl": Bp2BuildDefaultTrueRecursively,
112 "external/bouncycastle": Bp2BuildDefaultTrue,
113 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700114 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
115 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400116 "external/conscrypt": Bp2BuildDefaultTrue,
117 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
118 "external/eigen": Bp2BuildDefaultTrueRecursively,
119 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
120 "external/error_prone": Bp2BuildDefaultTrueRecursively,
121 "external/expat": Bp2BuildDefaultTrueRecursively,
122 "external/f2fs-tools": Bp2BuildDefaultTrue,
123 "external/flac": Bp2BuildDefaultTrueRecursively,
124 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
125 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
126 "external/googletest": Bp2BuildDefaultTrueRecursively,
127 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
128 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
129 "external/icu": Bp2BuildDefaultTrueRecursively,
130 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
131 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400132 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400133 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400134 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400135 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000136 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400137 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
138 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
139 "external/junit": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400140 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400141 "external/libavc": Bp2BuildDefaultTrueRecursively,
142 "external/libcap": Bp2BuildDefaultTrueRecursively,
143 "external/libcxx": Bp2BuildDefaultTrueRecursively,
144 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700145 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000146 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400147 "external/libevent": Bp2BuildDefaultTrueRecursively,
148 "external/libgav1": Bp2BuildDefaultTrueRecursively,
149 "external/libhevc": Bp2BuildDefaultTrueRecursively,
150 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
151 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
152 "external/libpng": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700153 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700154 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400155 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700156 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400157 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
158 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
159 "external/minijail": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000160 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000161 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400162 "external/pcre": Bp2BuildDefaultTrueRecursively,
163 "external/protobuf": Bp2BuildDefaultTrueRecursively,
164 "external/python/six": Bp2BuildDefaultTrueRecursively,
165 "external/rappor": Bp2BuildDefaultTrueRecursively,
166 "external/scudo": Bp2BuildDefaultTrueRecursively,
167 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
168 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700169 "external/speex": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400170 "external/toybox": Bp2BuildDefaultTrueRecursively,
171 "external/zlib": Bp2BuildDefaultTrueRecursively,
172 "external/zopfli": Bp2BuildDefaultTrueRecursively,
173 "external/zstd": Bp2BuildDefaultTrueRecursively,
174
Vinh Tranb01eb602022-08-25 19:14:28 -0400175 "frameworks/av": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400176 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400177 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000178 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400179 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
Jingwen Chen8ebc6202022-09-14 11:48:21 +0000180 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400181 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400182 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Sam Delmerico97bd1272022-08-25 14:45:31 -0400183 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400184 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
185 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400186 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400187 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
188 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400189 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400190 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
191 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400192 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400193 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
194 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
195 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
196 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
197 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000198 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000199 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400200
Liz Kammer1c921162022-08-17 16:58:32 -0400201 "hardware/interfaces": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000202 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400203 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
204 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
205 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
Vinh Tran99fd6502022-09-09 18:36:24 -0400206 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400207 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
208 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
209 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
210 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
211 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
212 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
213 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
214 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000215 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400216 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
217 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
218 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
219 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000220 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
221 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
222 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
223 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
224 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
225 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
226 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
227 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400228 "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
229 "hardware/interfaces/media/bufferpool/2.0": Bp2BuildDefaultTrue,
230 "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
231 "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
232 "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
233 "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
234 "hardware/interfaces/neuralnetworks/1.0": Bp2BuildDefaultTrue,
235 "hardware/interfaces/neuralnetworks/1.1": Bp2BuildDefaultTrue,
236 "hardware/interfaces/neuralnetworks/1.2": Bp2BuildDefaultTrue,
237 "hardware/interfaces/neuralnetworks/1.3": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000238 "hardware/interfaces/neuralnetworks/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400239
240 "libnativehelper": Bp2BuildDefaultTrueRecursively,
241
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400242 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
243 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
244 "packages/apps/Protips": Bp2BuildDefaultTrue,
Sasha Smundak31327e92022-09-18 17:10:54 -0700245 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400246 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
247 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
248 "packages/modules/adb": Bp2BuildDefaultTrue,
249 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
250 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
251 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
252 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
253 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
254 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
255 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000256 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
Jingwen Chen6bffe552022-09-14 11:34:34 +0000257 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400258 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000259 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400260
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000261 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
262
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400263 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
264 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
265 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
266 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700267 "prebuilts/tools": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400268 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
269
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000270 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
271 "system/apex/apexer": Bp2BuildDefaultTrue,
272 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
273 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
274 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
275 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
276 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000277 "system/core/healthd": Bp2BuildDefaultTrue,
278 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000279 "system/core/libasyncio": Bp2BuildDefaultTrue,
280 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
281 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
282 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
283 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
284 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
285 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000286 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000287 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000288 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000289 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
290 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700291 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000292 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
293 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700294 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Liz Kammer09d831e2022-09-16 09:02:26 -0400295 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000296 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
297 "system/libbase": Bp2BuildDefaultTrueRecursively,
298 "system/libfmq": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400299 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
300 "system/libhidl/transport": Bp2BuildDefaultTrue,
301 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700302 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
303 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
304 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
305 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400306 "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
307 "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
308 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
309 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
310 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000311 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
312 "system/libprocinfo": Bp2BuildDefaultTrue,
313 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000314 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700315 "system/media": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000316 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700317 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000318 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
319 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
320 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000321 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000322 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
323 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400324 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700325 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400326 "system/tools/sysprop": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000327 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400328
329 "tools/apksig": Bp2BuildDefaultTrue,
330 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
331 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000332 }
333
334 Bp2buildKeepExistingBuildFile = map[string]bool{
335 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
336 ".":/*recursive = */ false,
337
Cole Faust324a92e2022-08-23 15:29:05 -0700338 "build/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000339 "build/bazel_common_rules":/* recursive = */ true,
340 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
341 "build/make/tools":/* recursive = */ false,
342 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000343 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000344
345 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
346 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
347 "external/bazelbuild-rules_android":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700348 "external/bazelbuild-rules_license":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400349 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000350 "external/bazel-skylib":/* recursive = */ true,
351 "external/guava":/* recursive = */ true,
352 "external/jsr305":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700353 "external/protobuf":/* recursive = */ false,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000354
355 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
356 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
357
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400358 "frameworks/base/tools/codegen":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000359 "frameworks/ex/common":/* recursive = */ true,
360
361 "packages/apps/Music":/* recursive = */ true,
362 "packages/apps/QuickSearchBox":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000363
Romain Jobredeaux29197972022-05-30 22:02:31 -0400364 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000365 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700366 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000367 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000368 "prebuilts/build-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000369 "prebuilts/jdk/jdk11":/* recursive = */ false,
Cole Faust7071a052022-07-29 15:58:33 -0700370 "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 +0000371 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000372 "prebuilts/sdk/tools":/* recursive = */ false,
373 "prebuilts/r8":/* recursive = */ false,
374 }
375
376 Bp2buildModuleAlwaysConvertList = []string{
Liz Kammer09d831e2022-09-16 09:02:26 -0400377 "libidmap2_policies",
378 "libSurfaceFlingerProp",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400379 // cc mainline modules
Liz Kammerbe1315e2022-05-10 09:15:31 -0400380 "code_coverage.policy",
381 "code_coverage.policy.other",
382 "codec2_soft_exports",
Vinh Tran99fd6502022-09-09 18:36:24 -0400383 "codecs_g711dec",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400384 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400385 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400386 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400387 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400388 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400389 "com.android.media.swcodec.certificate",
390 "com.android.media.swcodec.key",
Vinh Tranfd446d62022-09-21 17:30:20 -0400391 "com.android.neuralnetworks",
Liz Kammer5068eae2022-05-11 17:24:29 -0400392 "com.android.neuralnetworks-androidManifest",
393 "com.android.neuralnetworks.certificate",
394 "com.android.neuralnetworks.key",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400395 "flatbuffer_headers",
396 "gemmlowp_headers",
397 "gl_headers",
Vinh Tran99fd6502022-09-09 18:36:24 -0400398 "libaidlcommonsupport",
Liz Kammer63367e12022-06-13 19:35:12 +0000399 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400400 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400401 "libaudioclient_aidl_conversion_util",
Vinh Tran9f6796a2022-08-16 13:10:31 -0400402 "libbinder",
403 "libbinder_device_interface_sources",
Vinh Tran444154d2022-08-16 13:10:31 -0400404 "libbinder_aidl",
Liz Kammer63367e12022-06-13 19:35:12 +0000405 "libbinder_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400406 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400407 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400408 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000409 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400410 "libcodec2_headers",
411 "libcodec2_internal",
412 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400413 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400414 "libgrallocusage",
415 "libgralloctypes",
416 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400417 "libneuralnetworks",
Vinh Tran99fd6502022-09-09 18:36:24 -0400418 "libgraphicsenv",
Liz Kammer63367e12022-06-13 19:35:12 +0000419 "libhardware",
Liz Kammer5068eae2022-05-11 17:24:29 -0400420 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400421 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400422 "libnativewindow_headers",
423 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400424 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400425 "libopus",
426 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000427 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700428 "libandroidio",
429 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400430 "libserviceutils",
Vinh Tran99fd6502022-09-09 18:36:24 -0400431 "libstagefright_amrnbenc",
432 "libstagefright_amrnbdec",
433 "libstagefright_amrwbdec",
434 "libstagefright_amrwbenc",
435 "libstagefright_amrnb_common",
Liz Kammer5068eae2022-05-11 17:24:29 -0400436 "libstagefright_enc_common",
Vinh Tran99fd6502022-09-09 18:36:24 -0400437 "libstagefright_flacdec",
438 "libstagefright_foundation",
Liz Kammer5068eae2022-05-11 17:24:29 -0400439 "libstagefright_foundation_headers",
440 "libstagefright_headers",
Vinh Tran99fd6502022-09-09 18:36:24 -0400441 "libstagefright_m4vh263dec",
442 "libstagefright_m4vh263enc",
443 "libstagefright_mp3dec",
444 "libstagefright_mp3dec_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000445 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400446 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400447 "libtextclassifier_hash_headers",
448 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000449 "libtflite_kernel_utils",
450 "libtinyxml2",
Vinh Tran99fd6502022-09-09 18:36:24 -0400451 "libui",
Liz Kammer5068eae2022-05-11 17:24:29 -0400452 "libui-types",
Liz Kammer63367e12022-06-13 19:35:12 +0000453 "libui_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400454 "libvorbisidec",
455 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000456 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400457 "mediaswcodec.policy",
458 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400459 "neuralnetworks_types",
Vinh Tran38534232022-09-13 18:50:31 -0400460 "neuralnetworks_utils_hal_aidl",
Vinh Tran99fd6502022-09-09 18:36:24 -0400461 "neuralnetworks_utils_hal_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400462 "neuralnetworks_utils_hal_service",
Vinh Tran99fd6502022-09-09 18:36:24 -0400463 "neuralnetworks_utils_hal_1_0",
464 "neuralnetworks_utils_hal_1_1",
465 "neuralnetworks_utils_hal_1_2",
466 "neuralnetworks_utils_hal_1_3",
467 "libneuralnetworks_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400468 // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
469 "packagemanager_aidl_interface",
Liz Kammer63367e12022-06-13 19:35:12 +0000470 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400471 "philox_random_headers",
472 "server_configurable_flags",
Vinh Tranf19b6582022-09-21 17:01:49 -0400473 "statslog_neuralnetworks.cpp",
474 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400475 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400476
Vinh Tran99fd6502022-09-09 18:36:24 -0400477 "libstagefright_bufferpool@2.0",
478 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400479 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400480
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000481 // prebuilts
482 "prebuilt_stats-log-api-gen",
483
Jingwen Chen9009dc22022-08-04 15:26:46 +0000484 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000485 "fastboot",
486 "libfastboot",
487 "liblp",
488 "libstorage_literals_headers",
489
Sam Delmerico24c56032022-03-28 19:53:03 +0000490 //external/avb
491 "avbtool",
492 "libavb",
493 "avb_headers",
494
Alix5918d642022-06-27 20:57:44 +0000495 //external/libxml2
496 "xmllint",
497 "libxml2",
498
Sam Delmerico24c56032022-03-28 19:53:03 +0000499 //external/fec
500 "libfec_rs",
501
502 //system/core/libsparse
503 "libsparse",
504
505 //system/extras/ext4_utils
506 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700507 "mke2fs_conf",
Sam Delmerico24c56032022-03-28 19:53:03 +0000508
509 //system/extras/libfec
510 "libfec",
511
512 //system/extras/squashfs_utils
513 "libsquashfs_utils",
514
515 //system/extras/verity/fec
516 "fec",
Wei Li7d8f6182022-10-11 14:38:16 -0700517 "boot_signer",
Sam Delmerico24c56032022-03-28 19:53:03 +0000518
519 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
520 // genrule dependencies for java_imports
521 "car-ui-androidx-annotation-nodeps",
522 "car-ui-androidx-collection-nodeps",
523 "car-ui-androidx-core-common-nodeps",
524 "car-ui-androidx-lifecycle-common-nodeps",
525 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700526
527 //system/libhidl
528 // needed by cc_hidl_library
529 "libhidlbase",
Vinh Tran444154d2022-08-16 13:10:31 -0400530
531 //frameworks/native
532 "framework_native_aidl_binder",
533 "framework_native_aidl_gui",
534
535 //frameworks/native/libs/input
536 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400537
538 // needed for aidl_interface's ndk backend
539 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000540
541 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000542
543 // needed by liblogd
544 "ILogcatManagerService_aidl",
545 "libincremental_aidl-cpp",
546 "incremental_aidl",
Jingwen Chen2247aca2022-09-09 10:47:43 +0000547
548 //frameworks/native/cmds/cmd
549 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000550
551 //system/core/fs_mgr/libdm
552 "libdm",
553
554 //system/core/fs_mgr/libfiemap
555 "libfiemap_headers",
556 "libfiemap_passthrough_srcs",
557 "libfiemap_srcs",
558
559 //system/gsid
560 "libgsi",
561 "libgsi_headers",
562
563 //system/core/libkeyutils
564 "libkeyutils",
565
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000566 //bootable/recovery/otautil
567 "libotautil",
568
569 //system/vold
570 "libvold_headers",
571
572 //system/extras/libfscrypt
573 "libfscrypt",
574
575 //system/core/fs_mgr
576 "libfstab",
577
578 //bootable/recovery/fuse_sideload
579 "libfusesideload",
580
581 //system/core/fs_mgr/libfs_avb
582 "libfs_avb",
583
584 //system/core/fs_mgr
585 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700586
587 "libcodec2_hidl@1.0",
588 "libcodec2_hidl@1.1",
589 "libcodec2_hidl@1.2",
590 "libcodec2_hidl_plugin_stub",
591 "libcodec2_hidl_plugin",
592 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700593 "libGLESv2",
594 "libEGL",
595 "libcodec2_vndk",
596 "libnativeloader_lazy",
597 "libnativeloader",
598 "libEGL_getProcAddress",
599 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400600
601 "protoc-gen-cppstream",
Yu Liu8c981532022-09-27 12:47:26 -0700602
603 "mediaswcodec",
604 "libmedia_headers",
605 "libmedia_codecserviceregistrant",
606 "libsfplugin_ccodec_utils",
607 "libcodec2_soft_aacenc",
608 "libcodec2_soft_amrnbdec",
609 "libcodec2_soft_amrnbenc",
610 "libcodec2_soft_amrwbdec",
611 "libcodec2_soft_amrwbenc",
612 "libcodec2_soft_hevcdec",
613 "libcodec2_soft_hevcenc",
614 "libcodec2_soft_g711alawdec",
615 "libcodec2_soft_g711mlawdec",
616 "libcodec2_soft_mpeg2dec",
617 "libcodec2_soft_h263dec",
618 "libcodec2_soft_h263enc",
619 "libcodec2_soft_mpeg4dec",
620 "libcodec2_soft_mpeg4enc",
621 "libcodec2_soft_mp3dec",
622 "libcodec2_soft_vorbisdec",
623 "libcodec2_soft_opusdec",
624 "libcodec2_soft_opusenc",
625 "libcodec2_soft_vp8dec",
626 "libcodec2_soft_vp9dec",
627 "libcodec2_soft_av1dec_gav1",
628 "libcodec2_soft_vp8enc",
629 "libcodec2_soft_vp9enc",
630 "libcodec2_soft_rawdec",
631 "libcodec2_soft_flacdec",
632 "libcodec2_soft_flacenc",
633 "libcodec2_soft_gsmdec",
634 "libcodec2_soft_avcdec",
635 "libcodec2_soft_avcenc",
636 "libcodec2_soft_aacdec",
637 "libcodec2_soft_common",
Sam Delmerico24c56032022-03-28 19:53:03 +0000638 }
639
640 Bp2buildModuleTypeAlwaysConvertList = []string{
Spandan Dasd58630f2022-09-08 01:04:22 +0000641 "aidl_interface_headers",
Sasha Smundak8bea2672022-08-04 13:31:14 -0700642 "license",
Liz Kammer45faf8f2022-06-02 16:00:54 -0400643 "linker_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000644 "java_import",
645 "java_import_host",
Trevor Radcliffead3d1232022-09-01 16:25:10 +0000646 "sysprop_library",
Zi Wangb3cb38c2022-09-23 16:36:11 -0700647 "bpf",
Sam Delmerico24c56032022-03-28 19:53:03 +0000648 }
649
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000650 // Add the names of modules that bp2build should never convert, if it is
651 // in the package allowlist. An error will be thrown if a module must
652 // not be here and in the alwaysConvert lists.
653 //
654 // For prebuilt modules (e.g. android_library_import), remember to add
655 // the "prebuilt_" prefix to the name, so that it's differentiable from
656 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +0000657 Bp2buildModuleDoNotConvertList = []string{
Vinh Tran220fb8b2022-10-04 12:04:17 -0400658 // TODO(b/250876486): Created cc_aidl_library doesn't have static libs from parent cc module
659 "libgui_window_info_static",
660 "libgui", // Depends on unconverted libgui_window_info_static
661 "libdisplay", // Depends on uncovnerted libgui
662 // Depends on unconverted libdisplay
663 "libdvr_static.google",
664 "libdvr.google",
665 "libvrsensor",
666 "dvr_api-test",
667 // Depends on unconverted libandroid, libgui
668 "dvr_buffer_queue-test",
669 "dvr_display-test",
670 // Depends on unconverted libchrome
671 "pdx_benchmarks",
672 "buffer_hub_queue-test",
673 "buffer_hub_queue_producer-test",
674
Sam Delmerico24c56032022-03-28 19:53:03 +0000675 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +0000676 "libactivitymanager_aidl", // TODO(b/207426160): Unsupported use of aidl sources (via Dactivity_manager_procstate_aidl) in a cc_library
677
678 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +0000679 "logtagd.rc",
680
Sam Delmerico24c56032022-03-28 19:53:03 +0000681 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +0000682
683 // TODO(b/202876379): has arch-variant static_executable
684 "linkerconfig",
685 "mdnsd",
686 "libcutils_test_static",
687 "KernelLibcutilsTest",
688
Cole Faust7071a052022-07-29 15:58:33 -0700689 "linker", // TODO(b/228316882): cc_binary uses link_crt
Cole Faust7071a052022-07-29 15:58:33 -0700690 "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 +0000691 "art_libartbase_headers", // TODO(b/236268577): Header libraries do not support export_shared_libs_headers
692 "apexer_test", // Requires aapt2
Cole Faust91a2e102022-05-31 14:56:48 -0700693 "apexer_test_host_tools",
694 "host_apex_verifier",
Cole Faust7071a052022-07-29 15:58:33 -0700695 "tjbench", // TODO(b/240563612): Stem property
Sam Delmerico24c56032022-03-28 19:53:03 +0000696
697 // java bugs
698 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
699
700 // python protos
Cole Faust53b62092022-05-12 15:37:02 -0700701 "libprotobuf-python", // Has a handcrafted alternative
Sam Delmerico24c56032022-03-28 19:53:03 +0000702
703 // genrule incompatibilities
704 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
705 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
706
707 // aar support
708 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
709 "prebuilt_platform-robolectric-4.4-prebuilt", // aosp/1999250, needs .aar support in Jars
710 "prebuilt_platform-robolectric-4.5.1-prebuilt", // aosp/1999250, needs .aar support in Jars
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000711 // ERROR: The dependencies for the following 1 jar(s) are not complete.
712 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
713 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +0000714
715 // path property for filegroups
716 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
717 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
718 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000719 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
720 "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
721 "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico79985812022-03-23 20:20:42 +0000722 "auto_value_plugin_resources", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000723
724 // go deps:
Jingwen Chenf50817d2022-09-21 06:46:08 +0000725 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
726 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
727 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000728
729 // 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
730 "robolectric_tzdata",
Sam Delmerico24c56032022-03-28 19:53:03 +0000731
732 // rust support
733 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
734
735 // unconverted deps
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000736 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000737 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
738 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
739 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
740 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
741 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
742 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
Sam Delmerico24c56032022-03-28 19:53:03 +0000743 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
Sam Delmerico24c56032022-03-28 19:53:03 +0000744 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
745 "dex2oat-script", // depends on unconverted modules: dex2oat
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000746 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
747 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
Sam Delmerico24c56032022-03-28 19:53:03 +0000748 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400749 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -0400750 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +0000751 "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
752 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
753 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -0400754 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
755 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Sam Delmerico24c56032022-03-28 19:53:03 +0000756 "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
757 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +0000758 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +0000759 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
760 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +0000761 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
762 "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
763 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
764 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
765 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
766 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
767 "libprotobuf-java-nano", // b/220869005, depends on non-public_current SDK
Vinh Tranc3873e82022-08-23 20:33:25 -0400768 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +0000769 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
770 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
771 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
Vinh Tranf19b6582022-09-21 17:01:49 -0400772 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
773 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
774 "test_fips", // depends on unconverted modules: adb
775 "timezone-host", // depends on unconverted modules: art.module.api.annotations
776 "truth-host-prebuilt", // depends on unconverted modules: truth-prebuilt
777 "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 +0000778
Jingwen Chen5012e072022-08-04 15:04:43 +0000779 // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
780 "toybox-static",
Wei Li81852ca2022-07-27 00:22:06 -0700781
Liz Kammer09d831e2022-09-16 09:02:26 -0400782 // aidl files not created
783 "overlayable_policy_aidl_interface",
784
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000785 //prebuilts/tools/common/m2
786 // depends on //external/okio:okio-lib, which uses kotlin
787 "wire-runtime",
788
Jingwen Chena0519422022-09-28 08:01:57 +0000789 // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
790 "minadbd",
791
792 // depends on android.hardware.health-V2.0-java
793 "android.hardware.health-translate-java",
794
Jingwen Chen537242c2022-08-24 11:53:27 +0000795 // cc_test related.
796 // Failing host cc_tests
797 "memunreachable_unit_test",
798 "libprocinfo_test",
799 "ziparchive-tests",
800 "gtest_isolated_tests",
801 "libunwindstack_unit_test",
802 "task_profiles_test",
803 "power_tests", // failing test on server, but not on host
804
805 // reflect: call of reflect.Value.NumField on interface Value
806 // affects all cc_tests that depend on art_defaults
807 "libnativebridge-tests",
808 "libnativeloader_test",
809 "art_libnativebridge_cts_tests",
810 "art_standalone_libdexfile_external_tests",
811 "art_standalone_libdexfile_support_tests",
812 "libnativebridge-lazy-tests",
813 "libnativebridge-test-case",
814 "libnativebridge2-test-case",
815 "libnativebridge3-test-case",
816 "libnativebridge6-test-case",
817 "libnativebridge6prezygotefork",
818
Liz Kammer09d831e2022-09-16 09:02:26 -0400819 "libandroidfw_tests", "aapt2_tests", // failing due to data path issues
820
Jingwen Chen537242c2022-08-24 11:53:27 +0000821 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
822 "AMRWBEncTest",
Jingwen Chenf0616002022-09-01 14:28:55 +0000823 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
824 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
825 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
826 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
Jingwen Chen537242c2022-08-24 11:53:27 +0000827 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
828 "Mpeg4H263DecoderTest", // depends on unconverted modules: libstagefright_foundation
829 "Mpeg4H263EncoderTest",
Jingwen Chen537242c2022-08-24 11:53:27 +0000830 "avcdec",
831 "avcenc",
832 "bionic-benchmarks-tests",
833 "bionic-fortify-runtime-asan-test",
834 "bionic-stress-tests",
835 "bionic-unit-tests",
836 "bionic-unit-tests-glibc",
837 "bionic-unit-tests-static",
838 "boringssl_crypto_test",
839 "boringssl_ssl_test",
840 "cfi_test_helper",
841 "cfi_test_helper2",
842 "cintltst32",
843 "cintltst64",
844 "compare",
845 "cpuid",
846 "debuggerd_test", // depends on unconverted modules: libdebuggerd
847 "elftls_dlopen_ie_error_helper",
848 "exec_linker_helper",
849 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
850 "fdtrack_test",
851 "google-benchmark-test",
852 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
853 "gtest-typed-test_test",
854 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
855 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
856 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
857 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
858 "gtest_tests",
859 "gtest_tests_no_main",
860 "gwp_asan_unittest",
861 "half_test",
862 "hashcombine_test",
863 "hevcdec",
864 "hevcenc",
865 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
866 "i444tonv12_eg",
867 "icu4c_sample_break",
868 "intltest32",
869 "intltest64",
870 "ion-unit-tests",
871 "jemalloc5_integrationtests",
872 "jemalloc5_unittests",
873 "ld_config_test_helper",
874 "ld_preload_test_helper",
875 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
876 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
877 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
Jingwen Chen537242c2022-08-24 11:53:27 +0000878 "libcutils_sockets_test",
879 "libexpectedutils_test",
880 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +0000881 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +0000882 "libminijail_test",
883 "libminijail_unittest_gtest",
884 "libpackagelistparser_test",
885 "libprotobuf_vendor_suffix_test",
886 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
887 "libstagefright_amrnbenc_test",
888 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
889 "libstagefright_m4vh263enc_test",
890 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
891 "libstatssocket_test",
892 "libvndksupport-tests",
893 "libyuv_unittest",
894 "linker-unit-tests",
895 "malloc_debug_system_tests",
896 "malloc_debug_unit_tests",
897 "malloc_hooks_system_tests",
898 "mat_test",
899 "mathtest",
900 "memunreachable_binder_test", // depends on unconverted modules: libbinder
901 "memunreachable_test",
902 "metadata_tests",
903 "minijail0_cli_unittest_gtest",
904 "mpeg2dec",
905 "mvcdec",
906 "ns_hidden_child_helper",
907 "pngtest",
908 "preinit_getauxval_test_helper",
909 "preinit_syscall_test_helper",
910 "psnr",
911 "quat_test",
912 "rappor-tests", // depends on unconverted modules: jsr305, guava
913 "scudo_unit_tests",
914 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
915 "syscall_filter_unittest_gtest",
916 "sysprop_test", // depends on unconverted modules: libcom.android.sysprop.tests
917 "thread_exit_cb_helper",
918 "tls_properties_helper",
919 "ulp",
920 "vec_test",
921 "yuvconstants",
922 "yuvconvert",
923 "zipalign_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +0000924
925 // cc_test_library
926 "clang_diagnostic_tests",
927 "exec_linker_helper_lib",
928 "fortify_disabled_for_tidy",
929 "ld_config_test_helper_lib1",
930 "ld_config_test_helper_lib2",
931 "ld_config_test_helper_lib3",
932 "ld_preload_test_helper_lib1",
933 "ld_preload_test_helper_lib2",
934 "libBionicElfTlsLoaderTests",
935 "libBionicElfTlsTests",
936 "libBionicElfTlsTests",
937 "libBionicFramePointerTests",
938 "libBionicFramePointerTests",
939 "libBionicStandardTests",
940 "libBionicStandardTests",
941 "libBionicTests",
942 "libart-broken",
943 "libatest_simple_zip",
944 "libcfi-test",
945 "libcfi-test-bad",
946 "libcrash_test",
947 // "libcrypto_fuzz_unsafe",
948 "libdl_preempt_test_1",
949 "libdl_preempt_test_2",
950 "libdl_test_df_1_global",
951 "libdlext_test",
952 "libdlext_test_different_soname",
953 "libdlext_test_fd",
954 "libdlext_test_norelro",
955 "libdlext_test_recursive",
956 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -0400957 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +0000958 "libfortify1-new-tests-clang",
959 "libfortify1-new-tests-clang",
960 "libfortify1-tests-clang",
961 "libfortify1-tests-clang",
962 "libfortify2-new-tests-clang",
963 "libfortify2-new-tests-clang",
964 "libfortify2-tests-clang",
965 "libfortify2-tests-clang",
966 "libgnu-hash-table-library",
967 "libicutest_static",
968 "liblinker_reloc_bench_000",
969 "liblinker_reloc_bench_001",
970 "liblinker_reloc_bench_002",
971 "liblinker_reloc_bench_003",
972 "liblinker_reloc_bench_004",
973 "liblinker_reloc_bench_005",
974 "liblinker_reloc_bench_006",
975 "liblinker_reloc_bench_007",
976 "liblinker_reloc_bench_008",
977 "liblinker_reloc_bench_009",
978 "liblinker_reloc_bench_010",
979 "liblinker_reloc_bench_011",
980 "liblinker_reloc_bench_012",
981 "liblinker_reloc_bench_013",
982 "liblinker_reloc_bench_014",
983 "liblinker_reloc_bench_015",
984 "liblinker_reloc_bench_016",
985 "liblinker_reloc_bench_017",
986 "liblinker_reloc_bench_018",
987 "liblinker_reloc_bench_019",
988 "liblinker_reloc_bench_020",
989 "liblinker_reloc_bench_021",
990 "liblinker_reloc_bench_022",
991 "liblinker_reloc_bench_023",
992 "liblinker_reloc_bench_024",
993 "liblinker_reloc_bench_025",
994 "liblinker_reloc_bench_026",
995 "liblinker_reloc_bench_027",
996 "liblinker_reloc_bench_028",
997 "liblinker_reloc_bench_029",
998 "liblinker_reloc_bench_030",
999 "liblinker_reloc_bench_031",
1000 "liblinker_reloc_bench_032",
1001 "liblinker_reloc_bench_033",
1002 "liblinker_reloc_bench_034",
1003 "liblinker_reloc_bench_035",
1004 "liblinker_reloc_bench_036",
1005 "liblinker_reloc_bench_037",
1006 "liblinker_reloc_bench_038",
1007 "liblinker_reloc_bench_039",
1008 "liblinker_reloc_bench_040",
1009 "liblinker_reloc_bench_041",
1010 "liblinker_reloc_bench_042",
1011 "liblinker_reloc_bench_043",
1012 "liblinker_reloc_bench_044",
1013 "liblinker_reloc_bench_045",
1014 "liblinker_reloc_bench_046",
1015 "liblinker_reloc_bench_047",
1016 "liblinker_reloc_bench_048",
1017 "liblinker_reloc_bench_049",
1018 "liblinker_reloc_bench_050",
1019 "liblinker_reloc_bench_051",
1020 "liblinker_reloc_bench_052",
1021 "liblinker_reloc_bench_053",
1022 "liblinker_reloc_bench_054",
1023 "liblinker_reloc_bench_055",
1024 "liblinker_reloc_bench_056",
1025 "liblinker_reloc_bench_057",
1026 "liblinker_reloc_bench_058",
1027 "liblinker_reloc_bench_059",
1028 "liblinker_reloc_bench_060",
1029 "liblinker_reloc_bench_061",
1030 "liblinker_reloc_bench_062",
1031 "liblinker_reloc_bench_063",
1032 "liblinker_reloc_bench_064",
1033 "liblinker_reloc_bench_065",
1034 "liblinker_reloc_bench_066",
1035 "liblinker_reloc_bench_067",
1036 "liblinker_reloc_bench_068",
1037 "liblinker_reloc_bench_069",
1038 "liblinker_reloc_bench_070",
1039 "liblinker_reloc_bench_071",
1040 "liblinker_reloc_bench_072",
1041 "liblinker_reloc_bench_073",
1042 "liblinker_reloc_bench_074",
1043 "liblinker_reloc_bench_075",
1044 "liblinker_reloc_bench_076",
1045 "liblinker_reloc_bench_077",
1046 "liblinker_reloc_bench_078",
1047 "liblinker_reloc_bench_079",
1048 "liblinker_reloc_bench_080",
1049 "liblinker_reloc_bench_081",
1050 "liblinker_reloc_bench_082",
1051 "liblinker_reloc_bench_083",
1052 "liblinker_reloc_bench_084",
1053 "liblinker_reloc_bench_085",
1054 "liblinker_reloc_bench_086",
1055 "liblinker_reloc_bench_087",
1056 "liblinker_reloc_bench_088",
1057 "liblinker_reloc_bench_089",
1058 "liblinker_reloc_bench_090",
1059 "liblinker_reloc_bench_091",
1060 "liblinker_reloc_bench_092",
1061 "liblinker_reloc_bench_093",
1062 "liblinker_reloc_bench_094",
1063 "liblinker_reloc_bench_095",
1064 "liblinker_reloc_bench_096",
1065 "liblinker_reloc_bench_097",
1066 "liblinker_reloc_bench_098",
1067 "liblinker_reloc_bench_099",
1068 "liblinker_reloc_bench_100",
1069 "liblinker_reloc_bench_101",
1070 "liblinker_reloc_bench_102",
1071 "liblinker_reloc_bench_103",
1072 "liblinker_reloc_bench_104",
1073 "liblinker_reloc_bench_105",
1074 "liblinker_reloc_bench_106",
1075 "liblinker_reloc_bench_107",
1076 "liblinker_reloc_bench_108",
1077 "liblinker_reloc_bench_109",
1078 "liblinker_reloc_bench_110",
1079 "liblinker_reloc_bench_111",
1080 "liblinker_reloc_bench_112",
1081 "liblinker_reloc_bench_113",
1082 "liblinker_reloc_bench_114",
1083 "liblinker_reloc_bench_115",
1084 "liblinker_reloc_bench_116",
1085 "liblinker_reloc_bench_117",
1086 "liblinker_reloc_bench_118",
1087 "liblinker_reloc_bench_119",
1088 "liblinker_reloc_bench_120",
1089 "liblinker_reloc_bench_121",
1090 "liblinker_reloc_bench_122",
1091 "liblinker_reloc_bench_123",
1092 "liblinker_reloc_bench_124",
1093 "liblinker_reloc_bench_125",
1094 "liblinker_reloc_bench_126",
1095 "liblinker_reloc_bench_127",
1096 "liblinker_reloc_bench_128",
1097 "liblinker_reloc_bench_129",
1098 "liblinker_reloc_bench_130",
1099 "liblinker_reloc_bench_131",
1100 "liblinker_reloc_bench_132",
1101 "liblinker_reloc_bench_133",
1102 "liblinker_reloc_bench_134",
1103 "liblinker_reloc_bench_135",
1104 "liblinker_reloc_bench_136",
1105 "liblinker_reloc_bench_137",
1106 "liblinker_reloc_bench_138",
1107 "liblinker_reloc_bench_139",
1108 "liblinker_reloc_bench_140",
1109 "liblinker_reloc_bench_141",
1110 "liblinker_reloc_bench_142",
1111 "liblinker_reloc_bench_143",
1112 "liblinker_reloc_bench_144",
1113 "liblinker_reloc_bench_145",
1114 "liblinker_reloc_bench_146",
1115 "liblinker_reloc_bench_147",
1116 "liblinker_reloc_bench_148",
1117 "liblinker_reloc_bench_149",
1118 "liblinker_reloc_bench_150",
1119 "liblinker_reloc_bench_151",
1120 "liblinker_reloc_bench_152",
1121 "liblinker_reloc_bench_153",
1122 "liblinker_reloc_bench_154",
1123 "liblinker_reloc_bench_155",
1124 "liblinker_reloc_bench_156",
1125 "liblinker_reloc_bench_157",
1126 "liblinker_reloc_bench_158",
1127 "liblinker_reloc_bench_159",
1128 "liblinker_reloc_bench_160",
1129 "liblinker_reloc_bench_161",
1130 "liblinker_reloc_bench_162",
1131 "liblinker_reloc_bench_163",
1132 "liblinker_reloc_bench_164",
1133 "liblinker_reloc_bench_165",
1134 "liblinker_reloc_bench_166",
1135 "liblinker_reloc_bench_167",
1136 "liblinker_reloc_bench_168",
1137 "libns_hidden_child_app",
1138 "libns_hidden_child_global",
1139 "libns_hidden_child_internal",
1140 "libns_hidden_child_public",
1141 "libnstest_dlopened",
1142 "libnstest_ns_a_public1",
1143 "libnstest_ns_a_public1_internal",
1144 "libnstest_ns_b_public2",
1145 "libnstest_ns_b_public3",
1146 "libnstest_private",
1147 "libnstest_private_external",
1148 "libnstest_public",
1149 "libnstest_public_internal",
1150 "libnstest_root",
1151 "libnstest_root_not_isolated",
1152 "librelocations-ANDROID_REL",
1153 "librelocations-ANDROID_RELR",
1154 "librelocations-RELR",
1155 "librelocations-fat",
1156 "libsegment_gap_inner",
1157 "libsegment_gap_outer",
1158 // "libssl_fuzz_unsafe",
1159 "libstatssocket_private",
1160 "libsysv-hash-table-library",
1161 "libtest_atexit",
1162 "libtest_check_order_dlsym",
1163 "libtest_check_order_dlsym_1_left",
1164 "libtest_check_order_dlsym_2_right",
1165 "libtest_check_order_dlsym_3_c",
1166 "libtest_check_order_dlsym_a",
1167 "libtest_check_order_dlsym_b",
1168 "libtest_check_order_dlsym_d",
1169 "libtest_check_order_reloc_root",
1170 "libtest_check_order_reloc_root_1",
1171 "libtest_check_order_reloc_root_2",
1172 "libtest_check_order_reloc_siblings",
1173 "libtest_check_order_reloc_siblings_1",
1174 "libtest_check_order_reloc_siblings_2",
1175 "libtest_check_order_reloc_siblings_3",
1176 "libtest_check_order_reloc_siblings_a",
1177 "libtest_check_order_reloc_siblings_b",
1178 "libtest_check_order_reloc_siblings_c",
1179 "libtest_check_order_reloc_siblings_c_1",
1180 "libtest_check_order_reloc_siblings_c_2",
1181 "libtest_check_order_reloc_siblings_d",
1182 "libtest_check_order_reloc_siblings_e",
1183 "libtest_check_order_reloc_siblings_f",
1184 "libtest_check_rtld_next_from_library",
1185 "libtest_dlopen_df_1_global",
1186 "libtest_dlopen_from_ctor",
1187 "libtest_dlopen_from_ctor_main",
1188 "libtest_dlopen_weak_undefined_func",
1189 "libtest_dlsym_df_1_global",
1190 "libtest_dlsym_from_this",
1191 "libtest_dlsym_from_this_child",
1192 "libtest_dlsym_from_this_grandchild",
1193 "libtest_dlsym_weak_func",
1194 "libtest_dt_runpath_a",
1195 "libtest_dt_runpath_b",
1196 "libtest_dt_runpath_c",
1197 "libtest_dt_runpath_d",
1198 "libtest_dt_runpath_d_zip",
1199 "libtest_dt_runpath_x",
1200 "libtest_dt_runpath_y",
1201 "libtest_elftls_dynamic",
1202 "libtest_elftls_dynamic_filler_1",
1203 "libtest_elftls_dynamic_filler_2",
1204 "libtest_elftls_dynamic_filler_3",
1205 "libtest_elftls_shared_var",
1206 "libtest_elftls_shared_var_ie",
1207 "libtest_elftls_tprel",
1208 "libtest_empty",
1209 "libtest_ifunc",
1210 "libtest_ifunc_variable",
1211 "libtest_ifunc_variable_impl",
1212 "libtest_indirect_thread_local_dtor",
1213 "libtest_init_fini_order_child",
1214 "libtest_init_fini_order_grand_child",
1215 "libtest_init_fini_order_root",
1216 "libtest_init_fini_order_root2",
1217 "libtest_missing_symbol",
1218 "libtest_missing_symbol_child_private",
1219 "libtest_missing_symbol_child_public",
1220 "libtest_missing_symbol_root",
1221 "libtest_nodelete_1",
1222 "libtest_nodelete_2",
1223 "libtest_nodelete_dt_flags_1",
1224 "libtest_pthread_atfork",
1225 "libtest_relo_check_dt_needed_order",
1226 "libtest_relo_check_dt_needed_order_1",
1227 "libtest_relo_check_dt_needed_order_2",
1228 "libtest_simple",
1229 "libtest_thread_local_dtor",
1230 "libtest_thread_local_dtor2",
1231 "libtest_two_parents_child",
1232 "libtest_two_parents_parent1",
1233 "libtest_two_parents_parent2",
1234 "libtest_versioned_lib",
1235 "libtest_versioned_libv1",
1236 "libtest_versioned_libv2",
1237 "libtest_versioned_otherlib",
1238 "libtest_versioned_otherlib_empty",
1239 "libtest_versioned_uselibv1",
1240 "libtest_versioned_uselibv2",
1241 "libtest_versioned_uselibv2_other",
1242 "libtest_versioned_uselibv3_other",
1243 "libtest_with_dependency",
1244 "libtest_with_dependency_loop",
1245 "libtest_with_dependency_loop_a",
1246 "libtest_with_dependency_loop_b",
1247 "libtest_with_dependency_loop_b_tmp",
1248 "libtest_with_dependency_loop_c",
1249 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001250
1251 // depends on unconverted libprotobuf-java-nano
1252 "dnsresolverprotosnano",
1253 "launcherprotosnano",
1254 "datastallprotosnano",
1255 "devicepolicyprotosnano",
Wei Li7d8f6182022-10-11 14:38:16 -07001256 "ota_metadata_proto_java",
1257 "merge_ota",
1258
1259 // releasetools
1260 "releasetools_fsverity_metadata_generator",
1261 "verity_utils",
1262 "check_ota_package_signature",
1263 "check_target_files_vintf",
1264 "releasetools_check_target_files_vintf",
1265 "releasetools_verity_utils",
1266 "build_image",
1267 "ota_from_target_files",
1268 "releasetools_ota_from_target_files",
1269 "releasetools_build_image",
1270 "add_img_to_target_files",
1271 "releasetools_add_img_to_target_files",
1272 "fsverity_metadata_generator",
1273 "sign_target_files_apks",
1274
1275 // depends on the support of yacc file
1276 "libapplypatch",
1277 "libapplypatch_modes",
1278 "applypatch",
Sam Delmerico24c56032022-03-28 19:53:03 +00001279 }
1280
1281 Bp2buildCcLibraryStaticOnlyList = []string{}
1282
1283 MixedBuildsDisabledList = []string{
Liz Kammer63367e12022-06-13 19:35:12 +00001284 "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
1285
Sam Delmerico24c56032022-03-28 19:53:03 +00001286 "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
1287
1288 "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
1289 "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.
1290
1291 "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
1292 "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
1293 "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
1294
1295 // Depends on libprotobuf-cpp-*
1296 "libadb_pairing_connection",
1297 "libadb_pairing_connection_static",
1298 "libadb_pairing_server", "libadb_pairing_server_static",
1299
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxa56e9702022-02-23 18:39:59 -05001300 // TODO(b/240563612) Needing `stem` selection support for cc_binary
Sam Delmerico24c56032022-03-28 19:53:03 +00001301 "crasher",
Sam Delmerico277795c2022-02-25 17:04:37 +00001302
1303 // java_import[_host] issues
1304 // tradefed prebuilts depend on libprotobuf
1305 "prebuilt_tradefed",
1306 "prebuilt_tradefed-test-framework",
1307 // handcrafted BUILD.bazel files in //prebuilts/...
1308 "prebuilt_r8lib-prebuilt",
1309 "prebuilt_sdk-core-lambda-stubs",
1310 "prebuilt_android-support-collections-nodeps",
1311 "prebuilt_android-arch-core-common-nodeps",
1312 "prebuilt_android-arch-lifecycle-common-java8-nodeps",
1313 "prebuilt_android-arch-lifecycle-common-nodeps",
1314 "prebuilt_android-support-annotations-nodeps",
1315 "prebuilt_android-arch-paging-common-nodeps",
1316 "prebuilt_android-arch-room-common-nodeps",
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001317 // TODO(b/217750501) exclude_dirs property not supported
1318 "prebuilt_kotlin-reflect",
1319 "prebuilt_kotlin-stdlib",
1320 "prebuilt_kotlin-stdlib-jdk7",
1321 "prebuilt_kotlin-stdlib-jdk8",
1322 "prebuilt_kotlin-test",
1323 // TODO(b/217750501) exclude_files property not supported
1324 "prebuilt_platform-robolectric-4.4-prebuilt",
1325 "prebuilt_platform-robolectric-4.5.1-prebuilt",
1326 "prebuilt_currysrc_org.eclipse",
Vinh Tran583a07d2022-09-20 17:25:34 -04001327
1328 // TODO(b/247782695 and/or b/242847534) Fix mixed build between unconverted gensrcs and converted filegroup
1329 "libstats_atom_enum_protos",
1330 "data_stall_event_proto",
1331 "device_policy_proto",
1332 "dns_resolver_proto",
1333 "launcher_proto",
1334 "network_stack_proto",
1335 "srcs_bluetooth_protos",
1336 "srcs_bluetooth_leaudio_protos",
1337 "style_proto",
1338 "tethering_proto",
1339 "text_classifier_proto",
1340 "libstats_atom_message_protos",
Sam Delmerico24c56032022-03-28 19:53:03 +00001341 }
Chris Parsonsef615e52022-08-18 22:04:11 -04001342
1343 ProdMixedBuildsEnabledList = []string{
Chris Parsons543c8c42022-09-08 11:40:24 -04001344 "com.android.adbd",
Chris Parsonsef615e52022-08-18 22:04:11 -04001345 }
Sam Delmerico24c56032022-03-28 19:53:03 +00001346)