且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

创建静态库并使用prefake连接到它

更新时间: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.