gpt4 book ai didi

android - -include 在 Android.mk 文件中是什么意思?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:35:57 27 4
gpt4 key购买 nike

我是 Android makefile 的新手。在阅读这篇文章时 file我看到一个“-include”语句。

这对构建系统意味着什么?

最佳答案

include 只是意味着应该包含另一个 makefile。 - 意味着如果要包含的文件不存在,它将被忽略:

We can also put a minus sign - in front of include (with no space in-between) to ignore filenames that do not exist. For example:

-include makefile1 makefile2 makefile3

If makefile2 does not exist, then make will skip it, and no error will occur. In general, inserting a minus sign in front of any command tells make to ignore errors that might occur during the execution of that command.

( source )

关于android - -include 在 Android.mk 文件中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34394355/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com