在android源代码树上找不到相关的Android.mk模板

问题描述 投票:0回答:1

我正在从https://android.googlesource.com/platform/build/+/master/core/build-system.html中使用gnu makefile(Android.mk)阅读android平台构建文档。

现在遇到一个我找不到相关模板示例的问题?

<h3><a name="templates"/>How to add another component to the build - Android.mk templates</h3>
<p>You have a new library, a new app, or a new executable.  For each of the
common types of modules, there is a corresponding file in the templates
directory.  It will usually be enough to copy one of these, and fill in your
own values.  Some of the more esoteric values are not included in the
templates, but are instead just documented here, as is the documentation
on using custom tools to generate files.</p>
<p>Mostly, you can just look for the TODO comments in the templates and do
what it says.  Please remember to delete the TODO comments when you're done
to keep the files clean.  The templates have minimal documentation in them,
because they're going to be copied, and when that gets stale, the copies just
won't get updated.  So read on...</p>
<h4>Apps</h4>
<p>Use the <code>templates/apps</code> file.</p>
<p>This template is pretty self-explanitory.  See the variables below for more
details.</p>

如上所述,我假设有一个名为'templates'的目录,库,应用程序...但是我在android源代码树中找不到。

有人可以启发我吗?

android-source
1个回答
0
投票

这些示例不在templates子文件夹中,而是与build-system.html在同一目录中:

[binary.mkshared_library.mkjava_library.mk等。

Note:Android正在从基于Makefile的构建系统切换到Soong。您可能还需要考虑切换。

© www.soinside.com 2019 - 2024. All rights reserved.