Android LOCAL_MODULE_TAGS 已过时

最近要修改Android平台的一个模块,要求debug、eng版本上编译进去,user版本不编译进去。

网上查的资料大多是使用LOCAL_MODULE_TAGS 来控制。

但很奇怪的是 这个的值貌似只有 user eng test optional 这四种。

在Android 源码钟搜索时也没发现其针对userdebug版本的配置。

最后在 android change 中找到了解决方法:

LOCAL_MODULE_TAGS := eng debug are obsolete {#LOCAL_MODULE_TAGS}

LOCAL_MODULE_TAGS value eng and debug are now obsolete. They allowed modules to specify that they should always be installed on -eng, or -eng and -userdebug builds. This conflicted with the ability for products to specify which modules should be installed, effectively making it impossible to build a stripped down product configuration that did not include those modules.

For the equivalent functionality, specify the modules in PRODUCT_PACKAGES_ENG or PRODUCT_PACKAGES_DEBUG in the appropriate product makefiles.

Core android packages like su got added to the list in build/make/target/product/base_system.mk, but for device-specific modules there are often better base product makefiles to use instead.

大致意思就是说LOCAL_MODULE_TAGS 已经过时了,要用PRODUCT_PACKAGES_ENG or PRODUCT_PACKAGES_DEBUG替代,然后su 等特殊模块在 build/make/target/product/base_system.mk 中配置。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值