LOCAL_MODULE_TAGS含义

本文介绍了在Android源代码中如何通过设置LOCAL_MODULE_TAGS来指定模块的安装条件。当模块被标记为optional时,只有在PRODUCT_PACKAGES配置中明确列出该模块时,它才会在构建过程中被编译并包含在最终的系统映像中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Google官网解释:https://source.android.com/setup/add-device


When building for a particular product, it's often useful to have minor variations on what is ultimately the final release build. In a module definition, the module can specify tags with LOCAL_MODULE_TAGS, which can be one or more values of optional (default), debugeng.

If a module doesn't specify a tag (by LOCAL_MODULE_TAGS), its tag defaults to optional. An optional module is installed only if it is required by product configuration with PRODUCT_PACKAGES.


个人理解大体含义应该是如果你的模块使用LOCAL_MODULE_TAGS=optional,则只有将你的模块添加进PRODUCT_PACKAGES时它才会自动编译当你执行整个AOSP make的时候

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值