简体   繁体   English

如何在* .lua文件上使用预制

[英]How to use premake on *.lua files

How do I use premake4 ? 如何使用premake4 I have a .lua file that I want to compile. 我有一个要编译的.lua文件。

I downloaded the executable premake4 but when I run ./premake4 myfile it gives me an error. 我下载了可执行文件premake4但是当我运行./premake4 myfile它给了我一个错误。

Normally, Premake4 expects to execute a script called premake4.lua . 通常,Premake4希望执行一个名为premake4.lua的脚本。 You are strongly advised to hold to this convention. 强烈建议您遵守此约定。

However, if you absolutely must use a different file, you can call premake4 --file=<insert file here> . 但是,如果绝对必须使用其他文件,则可以调用premake4 --file=<insert file here> But again, you are advised to just use standard Premake conventions. 但同样,建议您仅使用标准的Premake约定。

Note that this is all spelled out in Premake's documentation. 请注意,这在Premake的文档中都有详细说明。 Even the command-line help will tell you how to use the --file switch. 甚至命令行帮助都将告诉您如何使用--file开关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM