更新时间:2022-11-28 11:43:30
links {"Test"}
Lua不是Python。空格与Lua无关,就像空格对C ++无关紧要。因此,您的链接
语句仅适用于发布
配置。如果你想把它应用到项目作为一个整体,它需要在配置
语句之前,就像你的 kind
, files
和其他命令。
Lua is not Python. Whitespace is irrelevant to Lua, just like whitespace doesn't matter to C++. So your links
statement only applies to the "Release"
configuration. If you want it to apply to the project as a whole, it needs to go before the configuration
statement, just like your kind
, files
, and other commands.
Premake4以这种方式工作,只用于Release
构建(或Debug或其他)。实际上,您可以在配置
下放置几乎任何 项目
因此,您可以具有仅在调试版本中使用的特定文件,或任何其他文件。
Premake4 works this way so that you could have certain libraries that are only used in a "Release"
build (or Debug or whatever). Indeed, you can put almost any project
command under a configuration
. So you can have specific files that are used only in a debug build, or whatever.