【发布时间】:2019-09-10 05:04:49
【问题描述】:
我有一个构建静态库的 Premake 5 项目(主要通过 gmake2 或 vs2017 操作)。我想为发布材料本身创建一个构建目标:库中包含一些文本和头文件。
如何使用 Premake 做到这一点?我试过类似的东西:
project "thing_export"
kind "Utility"
os.mkdir "Release"
-- etc
...当然,os... 函数在 Premake 运行时执行,它们不会出现在构建文件中。
我也尝试过使用custom build commands:
project "thing_export"
kind "Utility"
buildmessage "Creating release"
buildcommands { "{copy} README.md '%{prj.location}'" }
buildoutputs { "'%{prj.location}/README.md'" }
gmake 或 gmake2 操作生成的 makefile 与空项目相同。不会为其生成任何操作。
如何使用 Premake 创建我的版本?
【问题讨论】:
标签: premake