diff options
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/xmake.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zencore/xmake.lua b/zencore/xmake.lua index 63e874ac5..3f78be99c 100644 --- a/zencore/xmake.lua +++ b/zencore/xmake.lua @@ -4,6 +4,10 @@ target('zencore') set_kind("static") add_headerfiles("**.h") add_configfiles("include/zencore/config.h.in") + on_load(function (target) + local version = io.readfile("VERSION.txt") + target:set("version", version:trim(), {build = "%Y%m%d%H%M"}) + end) set_configdir("include/zencore") add_files("**.cpp") add_includedirs("include", {public=true}) |