allowlists.go 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  1. // 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. package allowlists
  15. // Configuration to decide if modules in a directory should default to true/false for bp2build_available
  16. type Bp2BuildConfig map[string]BazelConversionConfigEntry
  17. type BazelConversionConfigEntry int
  18. const (
  19. // iota + 1 ensures that the int value is not 0 when used in the Bp2buildAllowlist map,
  20. // which can also mean that the key doesn't exist in a lookup.
  21. // all modules in this package and subpackages default to bp2build_available: true.
  22. // allows modules to opt-out.
  23. Bp2BuildDefaultTrueRecursively BazelConversionConfigEntry = iota + 1
  24. // all modules in this package (not recursively) default to bp2build_available: true.
  25. // allows modules to opt-out.
  26. Bp2BuildDefaultTrue
  27. // all modules in this package (not recursively) default to bp2build_available: false.
  28. // allows modules to opt-in.
  29. Bp2BuildDefaultFalse
  30. )
  31. var (
  32. Bp2buildDefaultConfig = Bp2BuildConfig{
  33. "art/libartbase": Bp2BuildDefaultTrueRecursively,
  34. "art/libartpalette": Bp2BuildDefaultTrueRecursively,
  35. "art/libdexfile": Bp2BuildDefaultTrueRecursively,
  36. "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
  37. "art/runtime": Bp2BuildDefaultTrueRecursively,
  38. "art/tools": Bp2BuildDefaultTrue,
  39. "bionic": Bp2BuildDefaultTrueRecursively,
  40. "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
  41. "build/bazel": Bp2BuildDefaultTrueRecursively,
  42. "build/make/target/product/security": Bp2BuildDefaultTrue,
  43. "build/make/tools/signapk": Bp2BuildDefaultTrue,
  44. "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
  45. "build/soong": Bp2BuildDefaultTrue,
  46. "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
  47. "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
  48. "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
  49. "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
  50. "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
  51. "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
  52. "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
  53. "development/apps/Fallback": Bp2BuildDefaultTrue,
  54. "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
  55. "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
  56. "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
  57. "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
  58. "development/samples/Compass": Bp2BuildDefaultTrue,
  59. "development/samples/ContactManager": Bp2BuildDefaultTrue,
  60. "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
  61. "development/samples/HelloEffects": Bp2BuildDefaultTrue,
  62. "development/samples/Home": Bp2BuildDefaultTrue,
  63. "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
  64. "development/samples/JetBoy": Bp2BuildDefaultTrue,
  65. "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
  66. "development/samples/LceDemo": Bp2BuildDefaultTrue,
  67. "development/samples/LunarLander": Bp2BuildDefaultTrue,
  68. "development/samples/MultiResolution": Bp2BuildDefaultTrue,
  69. "development/samples/MultiWindow": Bp2BuildDefaultTrue,
  70. "development/samples/NotePad": Bp2BuildDefaultTrue,
  71. "development/samples/Obb": Bp2BuildDefaultTrue,
  72. "development/samples/RSSReader": Bp2BuildDefaultTrue,
  73. "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
  74. "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
  75. "development/samples/SipDemo": Bp2BuildDefaultTrue,
  76. "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
  77. "development/samples/Snake": Bp2BuildDefaultTrue,
  78. "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
  79. "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
  80. "development/samples/ToyVpn": Bp2BuildDefaultTrue,
  81. "development/samples/TtsEngine": Bp2BuildDefaultTrue,
  82. "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
  83. "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
  84. "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
  85. "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
  86. "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
  87. "development/sdk": Bp2BuildDefaultTrueRecursively,
  88. "external/aac": Bp2BuildDefaultTrueRecursively,
  89. "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
  90. "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
  91. "external/auto/common": Bp2BuildDefaultTrueRecursively,
  92. "external/auto/service": Bp2BuildDefaultTrueRecursively,
  93. "external/boringssl": Bp2BuildDefaultTrueRecursively,
  94. "external/bouncycastle": Bp2BuildDefaultTrue,
  95. "external/brotli": Bp2BuildDefaultTrue,
  96. "external/conscrypt": Bp2BuildDefaultTrue,
  97. "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
  98. "external/eigen": Bp2BuildDefaultTrueRecursively,
  99. "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
  100. "external/error_prone": Bp2BuildDefaultTrueRecursively,
  101. "external/expat": Bp2BuildDefaultTrueRecursively,
  102. "external/f2fs-tools": Bp2BuildDefaultTrue,
  103. "external/flac": Bp2BuildDefaultTrueRecursively,
  104. "external/fmtlib": Bp2BuildDefaultTrueRecursively,
  105. "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
  106. "external/googletest": Bp2BuildDefaultTrueRecursively,
  107. "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
  108. "external/hamcrest": Bp2BuildDefaultTrueRecursively,
  109. "external/icu": Bp2BuildDefaultTrueRecursively,
  110. "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
  111. "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
  112. "external/jacoco": Bp2BuildDefaultTrueRecursively,
  113. "external/jarjar": Bp2BuildDefaultTrueRecursively,
  114. "external/javassist": Bp2BuildDefaultTrueRecursively,
  115. "external/javaparser": Bp2BuildDefaultTrueRecursively,
  116. "external/javapoet": Bp2BuildDefaultTrueRecursively,
  117. "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
  118. "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
  119. "external/junit": Bp2BuildDefaultTrueRecursively,
  120. "external/libavc": Bp2BuildDefaultTrueRecursively,
  121. "external/libcap": Bp2BuildDefaultTrueRecursively,
  122. "external/libcxx": Bp2BuildDefaultTrueRecursively,
  123. "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
  124. "external/libevent": Bp2BuildDefaultTrueRecursively,
  125. "external/libgav1": Bp2BuildDefaultTrueRecursively,
  126. "external/libhevc": Bp2BuildDefaultTrueRecursively,
  127. "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
  128. "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
  129. "external/libpng": Bp2BuildDefaultTrueRecursively,
  130. "external/libvpx": Bp2BuildDefaultTrueRecursively,
  131. "external/libyuv": Bp2BuildDefaultTrueRecursively,
  132. "external/lz4/lib": Bp2BuildDefaultTrue,
  133. "external/lzma/C": Bp2BuildDefaultTrueRecursively,
  134. "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
  135. "external/minijail": Bp2BuildDefaultTrueRecursively,
  136. "external/openscreen": Bp2BuildDefaultTrueRecursively,
  137. "external/pcre": Bp2BuildDefaultTrueRecursively,
  138. "external/protobuf": Bp2BuildDefaultTrueRecursively,
  139. "external/python/six": Bp2BuildDefaultTrueRecursively,
  140. "external/rappor": Bp2BuildDefaultTrueRecursively,
  141. "external/scudo": Bp2BuildDefaultTrueRecursively,
  142. "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
  143. "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
  144. "external/speex": Bp2BuildDefaultTrueRecursively,
  145. "external/toybox": Bp2BuildDefaultTrueRecursively,
  146. "external/zlib": Bp2BuildDefaultTrueRecursively,
  147. "external/zopfli": Bp2BuildDefaultTrueRecursively,
  148. "external/zstd": Bp2BuildDefaultTrueRecursively,
  149. "frameworks/av": Bp2BuildDefaultTrue,
  150. "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
  151. "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
  152. "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
  153. "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
  154. "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
  155. "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
  156. "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
  157. "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
  158. "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
  159. "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
  160. "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
  161. "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
  162. "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
  163. "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
  164. "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
  165. "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
  166. "frameworks/proto_logging/stats/stats_log_api_gen": Bp2BuildDefaultTrueRecursively,
  167. "hardware/interfaces": Bp2BuildDefaultTrue,
  168. "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
  169. "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
  170. "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
  171. "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
  172. "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
  173. "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
  174. "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
  175. "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
  176. "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
  177. "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
  178. "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
  179. "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
  180. "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
  181. "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
  182. "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
  183. "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
  184. "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
  185. "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
  186. "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
  187. "hardware/interfaces/media/bufferpool/2.0": Bp2BuildDefaultTrue,
  188. "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
  189. "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
  190. "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
  191. "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
  192. "hardware/interfaces/neuralnetworks/1.0": Bp2BuildDefaultTrue,
  193. "hardware/interfaces/neuralnetworks/1.1": Bp2BuildDefaultTrue,
  194. "hardware/interfaces/neuralnetworks/1.2": Bp2BuildDefaultTrue,
  195. "hardware/interfaces/neuralnetworks/1.3": Bp2BuildDefaultTrue,
  196. "hardware/interfaces/neuralnetworks/aidl": Bp2BuildDefaultTrue,
  197. "libnativehelper": Bp2BuildDefaultTrueRecursively,
  198. "packages/apps/DevCamera": Bp2BuildDefaultTrue,
  199. "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
  200. "packages/apps/Protips": Bp2BuildDefaultTrue,
  201. "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
  202. "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
  203. "packages/modules/adb": Bp2BuildDefaultTrue,
  204. "packages/modules/adb/apex": Bp2BuildDefaultTrue,
  205. "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
  206. "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
  207. "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
  208. "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
  209. "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
  210. "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
  211. "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
  212. "packages/screensavers/Basic": Bp2BuildDefaultTrue,
  213. "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
  214. "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
  215. "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
  216. "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
  217. "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
  218. "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
  219. "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
  220. "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
  221. "system/apex/apexer": Bp2BuildDefaultTrue,
  222. "system/apex/libs": Bp2BuildDefaultTrueRecursively,
  223. "system/apex/proto": Bp2BuildDefaultTrueRecursively,
  224. "system/apex/tools": Bp2BuildDefaultTrueRecursively,
  225. "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
  226. "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
  227. "system/core/libasyncio": Bp2BuildDefaultTrue,
  228. "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
  229. "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
  230. "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
  231. "system/core/libprocessgroup": Bp2BuildDefaultTrue,
  232. "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
  233. "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
  234. "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
  235. "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
  236. "system/core/libutils": Bp2BuildDefaultTrueRecursively,
  237. "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
  238. "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
  239. "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
  240. "system/libartpalette": Bp2BuildDefaultTrueRecursively,
  241. "system/libbase": Bp2BuildDefaultTrueRecursively,
  242. "system/libfmq": Bp2BuildDefaultTrue,
  243. "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
  244. "system/libhidl/transport": Bp2BuildDefaultTrue,
  245. "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
  246. "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
  247. "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
  248. "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
  249. "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
  250. "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
  251. "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
  252. "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
  253. "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
  254. "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
  255. "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
  256. "system/libprocinfo": Bp2BuildDefaultTrue,
  257. "system/libziparchive": Bp2BuildDefaultTrueRecursively,
  258. "system/logging": Bp2BuildDefaultTrueRecursively,
  259. "system/media/audio": Bp2BuildDefaultTrueRecursively,
  260. "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
  261. "system/memory/libion": Bp2BuildDefaultTrueRecursively,
  262. "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
  263. "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
  264. "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
  265. "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
  266. "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
  267. "system/tools/sysprop": Bp2BuildDefaultTrue,
  268. "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
  269. "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
  270. "tools/apksig": Bp2BuildDefaultTrue,
  271. "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
  272. "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
  273. }
  274. Bp2buildKeepExistingBuildFile = map[string]bool{
  275. // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
  276. ".":/*recursive = */ false,
  277. "build/bazel":/* recursive = */ true,
  278. "build/bazel_common_rules":/* recursive = */ true,
  279. // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
  280. "build/make/tools":/* recursive = */ false,
  281. "build/pesto":/* recursive = */ true,
  282. "build/soong/ui/metrics/bp2build_progress_metrics_proto":/* recursive = */ true,
  283. // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
  284. // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
  285. "external/bazelbuild-rules_android":/* recursive = */ true,
  286. "external/bazelbuild-rules_license":/* recursive = */ true,
  287. "external/bazelbuild-kotlin-rules":/* recursive = */ true,
  288. "external/bazel-skylib":/* recursive = */ true,
  289. "external/guava":/* recursive = */ true,
  290. "external/jsr305":/* recursive = */ true,
  291. "external/protobuf":/* recursive = */ false,
  292. "frameworks/base/tools/codegen":/* recursive = */ true,
  293. "frameworks/ex/common":/* recursive = */ true,
  294. "packages/apps/Music":/* recursive = */ true,
  295. "packages/apps/QuickSearchBox":/* recursive = */ true,
  296. "prebuilts/bazel":/* recursive = */ true,
  297. "prebuilts/bundletool":/* recursive = */ true,
  298. "prebuilts/clang/host/linux-x86":/* recursive = */ false,
  299. "prebuilts/gcc":/* recursive = */ true,
  300. "prebuilts/build-tools":/* recursive = */ true,
  301. "prebuilts/jdk/jdk11":/* recursive = */ false,
  302. "prebuilts/misc":/* recursive = */ false, // not recursive because we need bp2build converted build files in prebuilts/misc/common/asm
  303. "prebuilts/sdk":/* recursive = */ false,
  304. "prebuilts/sdk/tools":/* recursive = */ false,
  305. "prebuilts/r8":/* recursive = */ false,
  306. }
  307. Bp2buildModuleAlwaysConvertList = []string{
  308. // cc mainline modules
  309. "code_coverage.policy",
  310. "code_coverage.policy.other",
  311. "codec2_soft_exports",
  312. "codecs_g711dec",
  313. "com.android.media.swcodec-androidManifest",
  314. "com.android.media.swcodec-ld.config.txt",
  315. "com.android.media.swcodec-mediaswcodec.rc",
  316. "com.android.media.swcodec.certificate",
  317. "com.android.media.swcodec.key",
  318. "com.android.neuralnetworks-androidManifest",
  319. "com.android.neuralnetworks.certificate",
  320. "com.android.neuralnetworks.key",
  321. "flatbuffer_headers",
  322. "gemmlowp_headers",
  323. "gl_headers",
  324. "libaidlcommonsupport",
  325. "libandroid_runtime_lazy",
  326. "libandroid_runtime_vm_headers",
  327. "libaudioclient_aidl_conversion_util",
  328. "libbinder",
  329. "libbinder_device_interface_sources",
  330. "libbinder_aidl",
  331. "libbinder_headers",
  332. "libbinder_headers_platform_shared",
  333. "libbinderthreadstateutils",
  334. "libbluetooth-types-header",
  335. "libbufferhub_headers",
  336. "libcodec2",
  337. "libcodec2_headers",
  338. "libcodec2_internal",
  339. "libdmabufheap",
  340. "libdvr_headers",
  341. "libgsm",
  342. "libgui_bufferqueue_sources",
  343. "libgrallocusage",
  344. "libgralloctypes",
  345. "libnativewindow",
  346. "libgraphicsenv",
  347. "libhardware",
  348. "libhardware_headers",
  349. "libincfs_headers",
  350. "libnativeloader-headers",
  351. "libnativewindow_headers",
  352. "libneuralnetworks_headers",
  353. "libopus",
  354. "libpdx_headers",
  355. "libprocpartition",
  356. "libruy_static",
  357. "libandroidio",
  358. "libandroidio_srcs",
  359. "libserviceutils",
  360. "libstagefright_amrnbenc",
  361. "libstagefright_amrnbdec",
  362. "libstagefright_amrwbdec",
  363. "libstagefright_amrwbenc",
  364. "libstagefright_amrnb_common",
  365. "libstagefright_enc_common",
  366. "libstagefright_flacdec",
  367. "libstagefright_foundation",
  368. "libstagefright_foundation_headers",
  369. "libstagefright_headers",
  370. "libstagefright_m4vh263dec",
  371. "libstagefright_m4vh263enc",
  372. "libstagefright_mp3dec",
  373. "libstagefright_mp3dec_headers",
  374. "libsurfaceflinger_headers",
  375. "libsync",
  376. "libtextclassifier_hash_headers",
  377. "libtextclassifier_hash_static",
  378. "libtflite_kernel_utils",
  379. "libtinyxml2",
  380. "libgui_aidl",
  381. "libui",
  382. "libui-types",
  383. "libui_headers",
  384. "libvorbisidec",
  385. "media_ndk_headers",
  386. "media_plugin_headers",
  387. "mediaswcodec.policy",
  388. "mediaswcodec.xml",
  389. "neuralnetworks_types",
  390. "neuralnetworks_utils_hal_aidl",
  391. "neuralnetworks_utils_hal_common",
  392. "neuralnetworks_utils_hal_1_0",
  393. "neuralnetworks_utils_hal_1_1",
  394. "neuralnetworks_utils_hal_1_2",
  395. "neuralnetworks_utils_hal_1_3",
  396. "libneuralnetworks_common",
  397. "philox_random",
  398. "philox_random_headers",
  399. "server_configurable_flags",
  400. "tensorflow_headers",
  401. "libgui_headers",
  402. "libstagefright_bufferpool@2.0",
  403. "libstagefright_bufferpool@2.0.1",
  404. // fastboot
  405. "bootimg_headers",
  406. "fastboot",
  407. "libfastboot",
  408. "liblp",
  409. "libstorage_literals_headers",
  410. //external/avb
  411. "avbtool",
  412. "libavb",
  413. "avb_headers",
  414. //external/fec
  415. "libfec_rs",
  416. //system/core/libsparse
  417. "libsparse",
  418. //system/extras/ext4_utils
  419. "libext4_utils",
  420. "mke2fs_conf",
  421. //system/extras/libfec
  422. "libfec",
  423. //system/extras/squashfs_utils
  424. "libsquashfs_utils",
  425. //system/extras/verity/fec
  426. "fec",
  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",
  434. //system/libhidl
  435. // needed by cc_hidl_library
  436. "libhidlbase",
  437. //frameworks/native
  438. "framework_native_aidl_binder",
  439. "framework_native_aidl_gui",
  440. //frameworks/native/libs/input
  441. "inputconstants_aidl",
  442. // needed for aidl_interface's ndk backend
  443. "libbinder_ndk",
  444. "libusb",
  445. // needed by liblogd
  446. "ILogcatManagerService_aidl",
  447. "libincremental_aidl-cpp",
  448. "incremental_aidl",
  449. //frameworks/native/cmds/cmd
  450. "libcmd",
  451. }
  452. Bp2buildModuleTypeAlwaysConvertList = []string{
  453. "linker_config",
  454. "java_import",
  455. "java_import_host",
  456. "sysprop_library",
  457. "aidl_interface_headers",
  458. }
  459. Bp2buildModuleDoNotConvertList = []string{
  460. // cc bugs
  461. "libactivitymanager_aidl", // TODO(b/207426160): Unsupported use of aidl sources (via Dactivity_manager_procstate_aidl) in a cc_library
  462. // TODO(b/198619163) module has same name as source
  463. "logtagd.rc",
  464. "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
  465. // TODO(b/202876379): has arch-variant static_executable
  466. "linkerconfig",
  467. "mdnsd",
  468. "libcutils_test_static",
  469. "KernelLibcutilsTest",
  470. "linker", // TODO(b/228316882): cc_binary uses link_crt
  471. "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
  472. "art_libartbase_headers", // TODO(b/236268577): Header libraries do not support export_shared_libs_headers
  473. "apexer_test", // Requires aapt2
  474. "apexer_test_host_tools",
  475. "host_apex_verifier",
  476. "tjbench", // TODO(b/240563612): Stem property
  477. // java bugs
  478. "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
  479. // python protos
  480. "libprotobuf-python", // Has a handcrafted alternative
  481. // genrule incompatibilities
  482. "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
  483. "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
  484. // aar support
  485. "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
  486. "prebuilt_platform-robolectric-4.4-prebuilt", // aosp/1999250, needs .aar support in Jars
  487. "prebuilt_platform-robolectric-4.5.1-prebuilt", // aosp/1999250, needs .aar support in Jars
  488. // proto support
  489. "libstats_proto_host", // TODO(b/236055697): handle protos from other packages
  490. // path property for filegroups
  491. "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
  492. "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
  493. "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
  494. "libprotobuf-internal-protos", // TODO(b/210751803), we don't handle path property for filegroups
  495. "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
  496. "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
  497. "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
  498. "auto_value_plugin_resources", // TODO(b/210751803), we don't handle path property for filegroups
  499. // go deps:
  500. "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
  501. "apex-protos", // depends on soong_zip, a go binary
  502. "generated_android_icu4j_src_files", "generated_android_icu4j_test_files", "icu4c_test_data", // depends on unconverted modules: soong_zip
  503. "host_bionic_linker_asm", // depends on extract_linker, a go binary.
  504. "host_bionic_linker_script", // depends on extract_linker, a go binary.
  505. "libc_musl_sysroot_bionic_arch_headers", // depends on soong_zip
  506. "libc_musl_sysroot_zlib_headers", // depends on soong_zip and zip2zip
  507. "libc_musl_sysroot_bionic_headers", // 218405924, depends on soong_zip and generates duplicate srcs
  508. "libc_musl_sysroot_libc++_headers", "libc_musl_sysroot_libc++abi_headers", // depends on soong_zip, zip2zip
  509. "robolectric-sqlite4java-native", // depends on soong_zip, a go binary
  510. "robolectric_tzdata", // depends on soong_zip, a go binary
  511. // rust support
  512. "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
  513. // unconverted deps
  514. "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
  515. "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
  516. "android_icu4j_srcgen", // depends on unconverted modules: currysrc
  517. "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
  518. "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
  519. "art-script", // depends on unconverted modules: dalvikvm, dex2oat
  520. "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
  521. "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
  522. "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
  523. "dex2oat-script", // depends on unconverted modules: dex2oat
  524. "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary, soong_zip
  525. "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary, soong_zip
  526. "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
  527. "jacoco-stubs", // b/245767077, depends on droidstubs
  528. "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
  529. "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
  530. "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
  531. "libart_headers", // depends on unconverted modules: art_libartbase_headers
  532. "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
  533. "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
  534. "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
  535. "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
  536. "libdebuggerd", // depends on unconverted module: libdexfile
  537. "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
  538. "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
  539. "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
  540. "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
  541. "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
  542. "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
  543. "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
  544. "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
  545. "libprotobuf-java-nano", // b/220869005, depends on non-public_current SDK
  546. "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
  547. "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
  548. "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
  549. "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
  550. "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
  551. "static_crasher", // depends on unconverted modules: libdebuggerd_handler
  552. "stats-log-api-gen", // depends on unconverted modules: libstats_proto_host
  553. "statslog.cpp", "statslog.h", "statslog.rs", // depends on unconverted modules: stats-log-api-gen
  554. "statslog_art.cpp", "statslog_art.h", "statslog_header.rs", // depends on unconverted modules: stats-log-api-gen
  555. "test_fips", // depends on unconverted modules: adb
  556. "timezone-host", // depends on unconverted modules: art.module.api.annotations
  557. "truth-host-prebuilt", // depends on unconverted modules: truth-prebuilt
  558. "truth-prebuilt", // depends on unconverted modules: asm-7.0, guava
  559. // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
  560. "toybox-static",
  561. // cc_test related.
  562. // Failing host cc_tests
  563. "memunreachable_unit_test",
  564. "libprocinfo_test",
  565. "ziparchive-tests",
  566. "gtest_isolated_tests",
  567. "libunwindstack_unit_test",
  568. "task_profiles_test",
  569. "power_tests", // failing test on server, but not on host
  570. // reflect: call of reflect.Value.NumField on interface Value
  571. // affects all cc_tests that depend on art_defaults
  572. "libnativebridge-tests",
  573. "libnativeloader_test",
  574. "art_libnativebridge_cts_tests",
  575. "art_standalone_libdexfile_external_tests",
  576. "art_standalone_libdexfile_support_tests",
  577. "libnativebridge-lazy-tests",
  578. "libnativebridge-test-case",
  579. "libnativebridge2-test-case",
  580. "libnativebridge3-test-case",
  581. "libnativebridge6-test-case",
  582. "libnativebridge6prezygotefork",
  583. // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
  584. "AMRWBEncTest",
  585. "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  586. "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  587. "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
  588. "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  589. "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
  590. "Mpeg4H263DecoderTest", // depends on unconverted modules: libstagefright_foundation
  591. "Mpeg4H263EncoderTest",
  592. "avcdec",
  593. "avcenc",
  594. "bionic-benchmarks-tests",
  595. "bionic-fortify-runtime-asan-test",
  596. "bionic-stress-tests",
  597. "bionic-unit-tests",
  598. "bionic-unit-tests-glibc",
  599. "bionic-unit-tests-static",
  600. "boringssl_crypto_test",
  601. "boringssl_ssl_test",
  602. "cfi_test_helper",
  603. "cfi_test_helper2",
  604. "cintltst32",
  605. "cintltst64",
  606. "compare",
  607. "cpuid",
  608. "debuggerd_test", // depends on unconverted modules: libdebuggerd
  609. "elftls_dlopen_ie_error_helper",
  610. "exec_linker_helper",
  611. "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
  612. "fdtrack_test",
  613. "google-benchmark-test",
  614. "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
  615. "gtest-typed-test_test",
  616. "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  617. "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  618. "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
  619. "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  620. "gtest_tests",
  621. "gtest_tests_no_main",
  622. "gwp_asan_unittest",
  623. "half_test",
  624. "hashcombine_test",
  625. "hevcdec",
  626. "hevcenc",
  627. "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
  628. "i444tonv12_eg",
  629. "icu4c_sample_break",
  630. "intltest32",
  631. "intltest64",
  632. "ion-unit-tests",
  633. "jemalloc5_integrationtests",
  634. "jemalloc5_unittests",
  635. "ld_config_test_helper",
  636. "ld_preload_test_helper",
  637. "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
  638. "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
  639. "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
  640. "libavservices_minijail_unittest",
  641. "libcutils_sockets_test",
  642. "libexpectedutils_test",
  643. "libhwbinder_latency",
  644. "liblog-host-test", // failing tests
  645. "libminijail_test",
  646. "libminijail_unittest_gtest",
  647. "libpackagelistparser_test",
  648. "libprotobuf_vendor_suffix_test",
  649. "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
  650. "libstagefright_amrnbenc_test",
  651. "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
  652. "libstagefright_m4vh263enc_test",
  653. "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
  654. "libstatssocket_test",
  655. "libvndksupport-tests",
  656. "libyuv_unittest",
  657. "linker-unit-tests",
  658. "malloc_debug_system_tests",
  659. "malloc_debug_unit_tests",
  660. "malloc_hooks_system_tests",
  661. "mat_test",
  662. "mathtest",
  663. "memunreachable_binder_test", // depends on unconverted modules: libbinder
  664. "memunreachable_test",
  665. "metadata_tests",
  666. "minijail0_cli_unittest_gtest",
  667. "mpeg2dec",
  668. "mvcdec",
  669. "ns_hidden_child_helper",
  670. "pngtest",
  671. "preinit_getauxval_test_helper",
  672. "preinit_syscall_test_helper",
  673. "psnr",
  674. "quat_test",
  675. "rappor-tests", // depends on unconverted modules: jsr305, guava
  676. "scudo_unit_tests",
  677. "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
  678. "syscall_filter_unittest_gtest",
  679. "sysprop_test", // depends on unconverted modules: libcom.android.sysprop.tests
  680. "thread_exit_cb_helper",
  681. "tls_properties_helper",
  682. "ulp",
  683. "vec_test",
  684. "yuvconstants",
  685. "yuvconvert",
  686. "zipalign_tests",
  687. // cc_test_library
  688. "clang_diagnostic_tests",
  689. "exec_linker_helper_lib",
  690. "fortify_disabled_for_tidy",
  691. "ld_config_test_helper_lib1",
  692. "ld_config_test_helper_lib2",
  693. "ld_config_test_helper_lib3",
  694. "ld_preload_test_helper_lib1",
  695. "ld_preload_test_helper_lib2",
  696. "libBionicElfTlsLoaderTests",
  697. "libBionicElfTlsTests",
  698. "libBionicElfTlsTests",
  699. "libBionicFramePointerTests",
  700. "libBionicFramePointerTests",
  701. "libBionicStandardTests",
  702. "libBionicStandardTests",
  703. "libBionicTests",
  704. "libart-broken",
  705. "libatest_simple_zip",
  706. "libcfi-test",
  707. "libcfi-test-bad",
  708. "libcrash_test",
  709. // "libcrypto_fuzz_unsafe",
  710. "libdl_preempt_test_1",
  711. "libdl_preempt_test_2",
  712. "libdl_test_df_1_global",
  713. "libdlext_test",
  714. "libdlext_test_different_soname",
  715. "libdlext_test_fd",
  716. "libdlext_test_norelro",
  717. "libdlext_test_recursive",
  718. "libdlext_test_zip",
  719. "libfortify1-new-tests-clang",
  720. "libfortify1-new-tests-clang",
  721. "libfortify1-tests-clang",
  722. "libfortify1-tests-clang",
  723. "libfortify2-new-tests-clang",
  724. "libfortify2-new-tests-clang",
  725. "libfortify2-tests-clang",
  726. "libfortify2-tests-clang",
  727. "libgnu-hash-table-library",
  728. "libicutest_static",
  729. "liblinker_reloc_bench_000",
  730. "liblinker_reloc_bench_001",
  731. "liblinker_reloc_bench_002",
  732. "liblinker_reloc_bench_003",
  733. "liblinker_reloc_bench_004",
  734. "liblinker_reloc_bench_005",
  735. "liblinker_reloc_bench_006",
  736. "liblinker_reloc_bench_007",
  737. "liblinker_reloc_bench_008",
  738. "liblinker_reloc_bench_009",
  739. "liblinker_reloc_bench_010",
  740. "liblinker_reloc_bench_011",
  741. "liblinker_reloc_bench_012",
  742. "liblinker_reloc_bench_013",
  743. "liblinker_reloc_bench_014",
  744. "liblinker_reloc_bench_015",
  745. "liblinker_reloc_bench_016",
  746. "liblinker_reloc_bench_017",
  747. "liblinker_reloc_bench_018",
  748. "liblinker_reloc_bench_019",
  749. "liblinker_reloc_bench_020",
  750. "liblinker_reloc_bench_021",
  751. "liblinker_reloc_bench_022",
  752. "liblinker_reloc_bench_023",
  753. "liblinker_reloc_bench_024",
  754. "liblinker_reloc_bench_025",
  755. "liblinker_reloc_bench_026",
  756. "liblinker_reloc_bench_027",
  757. "liblinker_reloc_bench_028",
  758. "liblinker_reloc_bench_029",
  759. "liblinker_reloc_bench_030",
  760. "liblinker_reloc_bench_031",
  761. "liblinker_reloc_bench_032",
  762. "liblinker_reloc_bench_033",
  763. "liblinker_reloc_bench_034",
  764. "liblinker_reloc_bench_035",
  765. "liblinker_reloc_bench_036",
  766. "liblinker_reloc_bench_037",
  767. "liblinker_reloc_bench_038",
  768. "liblinker_reloc_bench_039",
  769. "liblinker_reloc_bench_040",
  770. "liblinker_reloc_bench_041",
  771. "liblinker_reloc_bench_042",
  772. "liblinker_reloc_bench_043",
  773. "liblinker_reloc_bench_044",
  774. "liblinker_reloc_bench_045",
  775. "liblinker_reloc_bench_046",
  776. "liblinker_reloc_bench_047",
  777. "liblinker_reloc_bench_048",
  778. "liblinker_reloc_bench_049",
  779. "liblinker_reloc_bench_050",
  780. "liblinker_reloc_bench_051",
  781. "liblinker_reloc_bench_052",
  782. "liblinker_reloc_bench_053",
  783. "liblinker_reloc_bench_054",
  784. "liblinker_reloc_bench_055",
  785. "liblinker_reloc_bench_056",
  786. "liblinker_reloc_bench_057",
  787. "liblinker_reloc_bench_058",
  788. "liblinker_reloc_bench_059",
  789. "liblinker_reloc_bench_060",
  790. "liblinker_reloc_bench_061",
  791. "liblinker_reloc_bench_062",
  792. "liblinker_reloc_bench_063",
  793. "liblinker_reloc_bench_064",
  794. "liblinker_reloc_bench_065",
  795. "liblinker_reloc_bench_066",
  796. "liblinker_reloc_bench_067",
  797. "liblinker_reloc_bench_068",
  798. "liblinker_reloc_bench_069",
  799. "liblinker_reloc_bench_070",
  800. "liblinker_reloc_bench_071",
  801. "liblinker_reloc_bench_072",
  802. "liblinker_reloc_bench_073",
  803. "liblinker_reloc_bench_074",
  804. "liblinker_reloc_bench_075",
  805. "liblinker_reloc_bench_076",
  806. "liblinker_reloc_bench_077",
  807. "liblinker_reloc_bench_078",
  808. "liblinker_reloc_bench_079",
  809. "liblinker_reloc_bench_080",
  810. "liblinker_reloc_bench_081",
  811. "liblinker_reloc_bench_082",
  812. "liblinker_reloc_bench_083",
  813. "liblinker_reloc_bench_084",
  814. "liblinker_reloc_bench_085",
  815. "liblinker_reloc_bench_086",
  816. "liblinker_reloc_bench_087",
  817. "liblinker_reloc_bench_088",
  818. "liblinker_reloc_bench_089",
  819. "liblinker_reloc_bench_090",
  820. "liblinker_reloc_bench_091",
  821. "liblinker_reloc_bench_092",
  822. "liblinker_reloc_bench_093",
  823. "liblinker_reloc_bench_094",
  824. "liblinker_reloc_bench_095",
  825. "liblinker_reloc_bench_096",
  826. "liblinker_reloc_bench_097",
  827. "liblinker_reloc_bench_098",
  828. "liblinker_reloc_bench_099",
  829. "liblinker_reloc_bench_100",
  830. "liblinker_reloc_bench_101",
  831. "liblinker_reloc_bench_102",
  832. "liblinker_reloc_bench_103",
  833. "liblinker_reloc_bench_104",
  834. "liblinker_reloc_bench_105",
  835. "liblinker_reloc_bench_106",
  836. "liblinker_reloc_bench_107",
  837. "liblinker_reloc_bench_108",
  838. "liblinker_reloc_bench_109",
  839. "liblinker_reloc_bench_110",
  840. "liblinker_reloc_bench_111",
  841. "liblinker_reloc_bench_112",
  842. "liblinker_reloc_bench_113",
  843. "liblinker_reloc_bench_114",
  844. "liblinker_reloc_bench_115",
  845. "liblinker_reloc_bench_116",
  846. "liblinker_reloc_bench_117",
  847. "liblinker_reloc_bench_118",
  848. "liblinker_reloc_bench_119",
  849. "liblinker_reloc_bench_120",
  850. "liblinker_reloc_bench_121",
  851. "liblinker_reloc_bench_122",
  852. "liblinker_reloc_bench_123",
  853. "liblinker_reloc_bench_124",
  854. "liblinker_reloc_bench_125",
  855. "liblinker_reloc_bench_126",
  856. "liblinker_reloc_bench_127",
  857. "liblinker_reloc_bench_128",
  858. "liblinker_reloc_bench_129",
  859. "liblinker_reloc_bench_130",
  860. "liblinker_reloc_bench_131",
  861. "liblinker_reloc_bench_132",
  862. "liblinker_reloc_bench_133",
  863. "liblinker_reloc_bench_134",
  864. "liblinker_reloc_bench_135",
  865. "liblinker_reloc_bench_136",
  866. "liblinker_reloc_bench_137",
  867. "liblinker_reloc_bench_138",
  868. "liblinker_reloc_bench_139",
  869. "liblinker_reloc_bench_140",
  870. "liblinker_reloc_bench_141",
  871. "liblinker_reloc_bench_142",
  872. "liblinker_reloc_bench_143",
  873. "liblinker_reloc_bench_144",
  874. "liblinker_reloc_bench_145",
  875. "liblinker_reloc_bench_146",
  876. "liblinker_reloc_bench_147",
  877. "liblinker_reloc_bench_148",
  878. "liblinker_reloc_bench_149",
  879. "liblinker_reloc_bench_150",
  880. "liblinker_reloc_bench_151",
  881. "liblinker_reloc_bench_152",
  882. "liblinker_reloc_bench_153",
  883. "liblinker_reloc_bench_154",
  884. "liblinker_reloc_bench_155",
  885. "liblinker_reloc_bench_156",
  886. "liblinker_reloc_bench_157",
  887. "liblinker_reloc_bench_158",
  888. "liblinker_reloc_bench_159",
  889. "liblinker_reloc_bench_160",
  890. "liblinker_reloc_bench_161",
  891. "liblinker_reloc_bench_162",
  892. "liblinker_reloc_bench_163",
  893. "liblinker_reloc_bench_164",
  894. "liblinker_reloc_bench_165",
  895. "liblinker_reloc_bench_166",
  896. "liblinker_reloc_bench_167",
  897. "liblinker_reloc_bench_168",
  898. "libns_hidden_child_app",
  899. "libns_hidden_child_global",
  900. "libns_hidden_child_internal",
  901. "libns_hidden_child_public",
  902. "libnstest_dlopened",
  903. "libnstest_ns_a_public1",
  904. "libnstest_ns_a_public1_internal",
  905. "libnstest_ns_b_public2",
  906. "libnstest_ns_b_public3",
  907. "libnstest_private",
  908. "libnstest_private_external",
  909. "libnstest_public",
  910. "libnstest_public_internal",
  911. "libnstest_root",
  912. "libnstest_root_not_isolated",
  913. "librelocations-ANDROID_REL",
  914. "librelocations-ANDROID_RELR",
  915. "librelocations-RELR",
  916. "librelocations-fat",
  917. "libsegment_gap_inner",
  918. "libsegment_gap_outer",
  919. // "libssl_fuzz_unsafe",
  920. "libstatssocket_private",
  921. "libsysv-hash-table-library",
  922. "libtest_atexit",
  923. "libtest_check_order_dlsym",
  924. "libtest_check_order_dlsym_1_left",
  925. "libtest_check_order_dlsym_2_right",
  926. "libtest_check_order_dlsym_3_c",
  927. "libtest_check_order_dlsym_a",
  928. "libtest_check_order_dlsym_b",
  929. "libtest_check_order_dlsym_d",
  930. "libtest_check_order_reloc_root",
  931. "libtest_check_order_reloc_root_1",
  932. "libtest_check_order_reloc_root_2",
  933. "libtest_check_order_reloc_siblings",
  934. "libtest_check_order_reloc_siblings_1",
  935. "libtest_check_order_reloc_siblings_2",
  936. "libtest_check_order_reloc_siblings_3",
  937. "libtest_check_order_reloc_siblings_a",
  938. "libtest_check_order_reloc_siblings_b",
  939. "libtest_check_order_reloc_siblings_c",
  940. "libtest_check_order_reloc_siblings_c_1",
  941. "libtest_check_order_reloc_siblings_c_2",
  942. "libtest_check_order_reloc_siblings_d",
  943. "libtest_check_order_reloc_siblings_e",
  944. "libtest_check_order_reloc_siblings_f",
  945. "libtest_check_rtld_next_from_library",
  946. "libtest_dlopen_df_1_global",
  947. "libtest_dlopen_from_ctor",
  948. "libtest_dlopen_from_ctor_main",
  949. "libtest_dlopen_weak_undefined_func",
  950. "libtest_dlsym_df_1_global",
  951. "libtest_dlsym_from_this",
  952. "libtest_dlsym_from_this_child",
  953. "libtest_dlsym_from_this_grandchild",
  954. "libtest_dlsym_weak_func",
  955. "libtest_dt_runpath_a",
  956. "libtest_dt_runpath_b",
  957. "libtest_dt_runpath_c",
  958. "libtest_dt_runpath_d",
  959. "libtest_dt_runpath_d_zip",
  960. "libtest_dt_runpath_x",
  961. "libtest_dt_runpath_y",
  962. "libtest_elftls_dynamic",
  963. "libtest_elftls_dynamic_filler_1",
  964. "libtest_elftls_dynamic_filler_2",
  965. "libtest_elftls_dynamic_filler_3",
  966. "libtest_elftls_shared_var",
  967. "libtest_elftls_shared_var_ie",
  968. "libtest_elftls_tprel",
  969. "libtest_empty",
  970. "libtest_ifunc",
  971. "libtest_ifunc_variable",
  972. "libtest_ifunc_variable_impl",
  973. "libtest_indirect_thread_local_dtor",
  974. "libtest_init_fini_order_child",
  975. "libtest_init_fini_order_grand_child",
  976. "libtest_init_fini_order_root",
  977. "libtest_init_fini_order_root2",
  978. "libtest_missing_symbol",
  979. "libtest_missing_symbol_child_private",
  980. "libtest_missing_symbol_child_public",
  981. "libtest_missing_symbol_root",
  982. "libtest_nodelete_1",
  983. "libtest_nodelete_2",
  984. "libtest_nodelete_dt_flags_1",
  985. "libtest_pthread_atfork",
  986. "libtest_relo_check_dt_needed_order",
  987. "libtest_relo_check_dt_needed_order_1",
  988. "libtest_relo_check_dt_needed_order_2",
  989. "libtest_simple",
  990. "libtest_thread_local_dtor",
  991. "libtest_thread_local_dtor2",
  992. "libtest_two_parents_child",
  993. "libtest_two_parents_parent1",
  994. "libtest_two_parents_parent2",
  995. "libtest_versioned_lib",
  996. "libtest_versioned_libv1",
  997. "libtest_versioned_libv2",
  998. "libtest_versioned_otherlib",
  999. "libtest_versioned_otherlib_empty",
  1000. "libtest_versioned_uselibv1",
  1001. "libtest_versioned_uselibv2",
  1002. "libtest_versioned_uselibv2_other",
  1003. "libtest_versioned_uselibv3_other",
  1004. "libtest_with_dependency",
  1005. "libtest_with_dependency_loop",
  1006. "libtest_with_dependency_loop_a",
  1007. "libtest_with_dependency_loop_b",
  1008. "libtest_with_dependency_loop_b_tmp",
  1009. "libtest_with_dependency_loop_c",
  1010. "libtestshared",
  1011. }
  1012. Bp2buildCcLibraryStaticOnlyList = []string{}
  1013. MixedBuildsDisabledList = []string{
  1014. "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
  1015. "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
  1016. "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
  1017. "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.
  1018. "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
  1019. "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
  1020. "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
  1021. // Depends on libprotobuf-cpp-*
  1022. "libadb_pairing_connection",
  1023. "libadb_pairing_connection_static",
  1024. "libadb_pairing_server", "libadb_pairing_server_static",
  1025. // TODO(b/240563612) Needing `stem` selection support for cc_binary
  1026. "crasher",
  1027. // java_import[_host] issues
  1028. // tradefed prebuilts depend on libprotobuf
  1029. "prebuilt_tradefed",
  1030. "prebuilt_tradefed-test-framework",
  1031. // handcrafted BUILD.bazel files in //prebuilts/...
  1032. "prebuilt_r8lib-prebuilt",
  1033. "prebuilt_sdk-core-lambda-stubs",
  1034. "prebuilt_android-support-collections-nodeps",
  1035. "prebuilt_android-arch-core-common-nodeps",
  1036. "prebuilt_android-arch-lifecycle-common-java8-nodeps",
  1037. "prebuilt_android-arch-lifecycle-common-nodeps",
  1038. "prebuilt_android-support-annotations-nodeps",
  1039. "prebuilt_android-arch-paging-common-nodeps",
  1040. "prebuilt_android-arch-room-common-nodeps",
  1041. // TODO(b/217750501) exclude_dirs property not supported
  1042. "prebuilt_kotlin-reflect",
  1043. "prebuilt_kotlin-stdlib",
  1044. "prebuilt_kotlin-stdlib-jdk7",
  1045. "prebuilt_kotlin-stdlib-jdk8",
  1046. "prebuilt_kotlin-test",
  1047. // TODO(b/217750501) exclude_files property not supported
  1048. "prebuilt_platform-robolectric-4.4-prebuilt",
  1049. "prebuilt_platform-robolectric-4.5.1-prebuilt",
  1050. "prebuilt_currysrc_org.eclipse",
  1051. }
  1052. ProdMixedBuildsEnabledList = []string{
  1053. "com.android.adbd",
  1054. }
  1055. )