android_sdk_repo_host
android_sdk_repo_host defines an Android SDK repo containing host tools.
This implementation is trying to be a faithful reproduction of how these sdk-repos were produced
in the Make system, which may explain some of the oddities (like `strip_files` not being
automatic)
name
,
srcs
,
arch
,
arch.arm
,
arch.arm64
,
arch.riscv64
,
arch.x86
,
arch.x86_64
,
base_dir
,
compile_multilib
,
debug_ramdisk
,
deps
,
deps_remap
,
device_specific
,
dist
,
dists
,
enabled
,
high_priority_deps
,
host_cross_supported
,
host_required
,
init_rc
,
licenses
,
merge_zips
,
multilib
,
multilib.both
,
multilib.common
,
multilib.first
,
multilib.lib32
,
multilib.lib64
,
multilib.native_bridge
,
multilib.prefer32
,
native_bridge_supported
,
no_full_install
,
odm_dlkm_specific
,
overrides
,
owner
,
product_specific
,
product_variables.arc
,
product_variables.debuggable
,
product_variables.malloc_low_memory
,
product_variables.native_coverage
,
product_variables.platform_version_name
,
product_variables.release_aidl_use_unfrozen
,
product_variables.selinuxignoreneverallows
,
product_variables.unbundled_build
,
proprietary
,
ramdisk
,
recovery
,
required
,
soc_specific
,
strip_files
,
system_dlkm_specific
,
system_ext_specific
,
target
,
target.android
,
target.host
,
target_required
,
team
,
use_generic_config
,
vendor
,
vendor_dlkm_specific
,
vendor_ramdisk
,
vintf_fragment_modules
,
vintf_fragments
,
visibility
name
string, The name of the module. Must be unique across all modules.
srcs
list of string, List of sources to include into the SDK repo. These are usually raw files, filegroups,
or genrules, as most built modules should be referenced via `deps`.
arch
interface
⊕arch.arm
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕arch.arm64
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕arch.riscv64
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕arch.x86
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕arch.x86_64
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
base_dir
string, The top level directory to use for the SDK repo.
compile_multilib
string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values
are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both
architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit
platform).
debug_ramdisk
bool, Whether this module is installed to debug ramdisk
deps
configurable list of string, Modules to include in this package
deps_remap
list of remapProperties, List of src:dst mappings to rename files from `deps`.
device_specific
bool, whether this module is specific to a device, not only for SoC, but also for off-chip
peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition
does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist).
This implies `soc_specific:true`.
⊕dist
Dist
configuration to distribute output files from this module to the distribution
directory (default: $OUT/dist, configurable with $DIST_DIR)
targets
list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the
command line and any of these targets are also on the command line, or otherwise
built
dest
string, The name of the output artifact. This defaults to the basename of the output of
the module.
dir
string, The directory within the dist directory to store the artifact. Defaults to the
top level directory ("").
suffix
string, A suffix to add to the artifact file name (before any extension).
append_artifact_with_product
bool, If true, then the artifact file will be appended with _<product name>. For
example, if the product is coral and the module is an android_app module
of name foo, then the artifact would be foo_coral.apk. If false, there is
no change to the artifact file name.
prepend_artifact_with_product
bool, If true, then the artifact file will be prepended with <product name>-. For
example, if the product is coral and the module is an android_app module
of name foo, then the artifact would be coral-foo.apk. If false, there is
no change to the artifact file name.
tag
string, A string tag to select the OutputFiles associated with the tag.
If no tag is specified then it will select the default dist paths provided
by the module type. If a tag of "" is specified then it will return the
default output files provided by the modules, i.e. the result of calling
OutputFiles("").
dists
list of Dist, a list of configurations to distribute output files from this module to the
distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
enabled
configurable bool, emit build rules for this module
Disabling a module should only be done for those modules that cannot be built
in the current environment. Modules that can build in the current environment
but are not usually required (e.g. superceded by a prebuilt) should not be
disabled as that will prevent them from being built by the checkbuild target
and so prevent early detection of changes that have broken those modules.
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
host_cross_supported
bool, If set to true, build a variant of the module for the host cross. Defaults to true.
host_required
list of string, names of other modules to install on host if this module is installed
init_rc
configurable list of string, init.rc files to be installed if this module is installed
licenses
list of string, Describes the licenses applicable to this module. Must reference license modules.
merge_zips
list of string, List of zip files to merge into the SDK repo.
multilib
interface
⊕multilib.both
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕multilib.common
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕multilib.first
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕multilib.lib32
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕multilib.lib64
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕multilib.native_bridge
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
⊕multilib.prefer32
DepsProperty
high_priority_deps
list of string, Deps that have higher priority in packaging when there is a packaging conflict.
For example, if multiple files are being installed to same filepath, the install file
of the module listed in this property will have a higher priority over those in other
deps properties.
deps
configurable list of string, Modules to include in this package
native_bridge_supported
bool, Whether this module is built for non-native architectures (also known as native bridge binary)
no_full_install
bool, When set to true, this module is not installed to the full install path (ex: under
out/target/product/<name>/<partition>). It can be installed only to the packaging
modules like android_filesystem.
odm_dlkm_specific
bool, Install to partition odm_dlkm when set to true.
overrides
list of string, List of module names that are prevented from being installed when this module gets
installed.
owner
string, vendor who owns this module
product_specific
bool, whether this module is specific to a software configuration of a product (e.g. country,
network operator, etc). When set to true, it is installed into /product (or
/system/product if product partition does not exist).
⊕product_variables.arc
⊕product_variables.debuggable
⊕init_rc
⊕required
⊕host_required
⊕target_required
⊕srcs
⊕deps
⊕product_variables.malloc_low_memory
⊕product_variables.native_coverage
⊕product_variables.platform_version_name
⊕product_variables.release_aidl_use_unfrozen
⊕required
⊕vintf_fragment_modules
⊕product_variables.selinuxignoreneverallows
⊕product_variables.unbundled_build
⊕enabled
Configurable[bool]
Configurable[bool]
proptools.Configurable[bool]
proprietary
bool, whether this is a proprietary vendor module, and should be installed into /vendor
ramdisk
bool, Whether this module is installed to ramdisk
recovery
bool, Whether this module is installed to recovery partition
required
configurable list of string, names of other modules to install if this module is installed
soc_specific
bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true,
it is installed into /vendor (or /system/vendor if vendor partition does not exist).
strip_files
list of string, List of files to strip. This should be a list of files, not modules. This happens after
`deps_remap` and `merge_zips` are applied, but before the `base_dir` is added.
system_dlkm_specific
bool, Install to partition system_dlkm when set to true.
system_ext_specific
bool, whether this module extends system. When set to true, it is installed into /system_ext
(or /system/system_ext if system_ext partition does not exist).
target
interface
⊕target.android
compile_multilib
string
enabled
bool
⊕target.host
target_required
list of string, names of other modules to install on target if this module is installed
team
string, The team (defined by the owner/vendor) who owns the property.
use_generic_config
bool, Set to true if this module must be generic and does not require product-specific information.
To be included in the system image, this property must be set to true.
vendor
bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true,
it is installed into /vendor (or /system/vendor if vendor partition does not exist).
Use `soc_specific` instead for better meaning.
vendor_dlkm_specific
bool, Install to partition vendor_dlkm when set to true.
vendor_ramdisk
bool, Whether this module is installed to vendor ramdisk
vintf_fragment_modules
configurable list of string, vintf_fragment Modules required from this module.
vintf_fragments
configurable list of string, VINTF manifest fragments to be installed if this module is installed
visibility
list of string, Controls the visibility of this module to other modules. Allowable values are one or more of
these formats:
["//visibility:public"]: Anyone can use this module.
["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
this module.
["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
Can only be used at the beginning of a list of visibility rules.
["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
other/package (defined in some/package/*.bp and other/package/*.bp) have access to
this module. Note that sub-packages do not have access to the rule; for example,
//some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
is a special module and must be used verbatim. It represents all of the modules in the
package.
["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
or other or in one of their sub-packages have access to this module. For example,
//project:rule, //project/library:lib or //other/testing/internal:munge are allowed
to depend on this rule (but not //independent:evil)
["//project"]: This is shorthand for ["//project:__pkg__"]
[":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
//project is the module's package. e.g. using [":__subpackages__"] in
packages/apps/Settings/Android.bp is equivalent to
//packages/apps/Settings:__subpackages__.
["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
for now. It is an error if it is used in a module.
If a module does not specify the `visibility` property then it uses the
`default_visibility` property of the `package` module in the module's package.
If the `default_visibility` property is not set for the module's package then
it will use the `default_visibility` of its closest ancestor package for which
a `default_visibility` property is specified.
If no `default_visibility` property can be found then the module uses the
global default of `//visibility:legacy_public`.
The `visibility` property has no effect on a defaults module although it does
apply to any non-defaults module that uses it. To set the visibility of a
defaults module, use the `defaults_visibility` property on the defaults module;
not to be confused with the `default_visibility` property on the package module.
See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for
more details.