The*_*uto 8 android go android-source
随着新的构建系统,即"Soong",Android的替代Android.mk使用Android.bp。Android Q 以后,无论文件在哪里,Soong都会选择所有Android.bp文件。早些时候,对于 2 级和 3 级模块,除非 .bp 指示,否则不会拾取 Android.bp 文件"optional_dirs"。现在这也已被弃用。引用 android 源代码的platform/build/soong/root.bp:
// Soong finds all Android.bp and Blueprints files in the source tree,
// subdirs= and optional_subdirs= are obsolete and this file no longer
// needs a list of the top level directories that may contain Android.bp
// files.
Run Code Online (Sandbox Code Playgroud)
我查看了Soongapi 并找到了一个叫做"visibility" 的东西,使用它我们可以将包设为私有或公开或隐藏;但无论哪种方式,它都不会停止Soong挑选包裹的Android.bp. 现在似乎没有办法说不Soong选择特定的Android.bp为特定目标或任何目标文件。
只是为了清楚地提出问题,我应该能够根据构建时选择的目标选择和取消选择任何包的 Android.bp。对此的任何帮助都会很棒。
| 归档时间: |
|
| 查看次数: |
1227 次 |
| 最近记录: |