将自己的模块/库添加到AOSP中,使用单独的Android.bp文件。

huangapple go评论89阅读模式
英文:

Add own module/library to AOSP in separate Android.bp file

问题

我想在AOSP构建过程中构建自己的库,并希望能够使用独立的命令构建该库,即在不构建完整的AOSP的情况下构建该库。

我已经将我的库的源文件放入一个单独的文件夹中,并在其中创建了一个Android.bp文件,但执行

mmm path_to_folder/

会出现错误

FAILED: ninja: unknown target 'MODULES-IN-my-module'
英文:

I would like to build my own library during the AOSP build process and I'd like to be able to build the library with a stand-alone command, i.e., without building complete AOSP.

I've put the source files of my library into a separate folder and created an Android.bp file in there, but executing

mmm path_to_folder/

gives the error

FAILED: ninja: unknown target 'MODULES-IN-my-module'

答案1

得分: 1

你可以在你的模块文件夹内使用mm MODULE_NAME -j$(nproc)mm -j$(nproc)

英文:

You can use mm MODULE_NAME -j$(nproc) or mm -j$(nproc) inside your module folder.

huangapple
  • 本文由 发表于 2023年7月6日 18:16:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76627774.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定