Add code generation on compiling to premake scripts using custom build commands

This commit is contained in:
Jan
2019-10-25 02:13:37 +02:00
parent d93b4f5fac
commit 034de70bbc
27 changed files with 345 additions and 325 deletions

View File

@ -17,6 +17,10 @@ function ZoneLoading:link()
}
end
function ZoneLoading:use()
end
function ZoneLoading:project()
local folder = ProjectFolder();
@ -28,11 +32,22 @@ function ZoneLoading:project()
files {
path.join(folder, "ZoneLoading/**.h"),
path.join(folder, "ZoneLoading/**.cpp")
path.join(folder, "ZoneLoading/**.cpp"),
ZoneCode:allLoadFiles()
}
vpaths {
["*"] = {
path.join(folder, "ZoneLoading"),
path.join(BuildFolder(), "src/ZoneCode")
}
}
self:include()
Crypto:include()
Utils:include()
zlib:include()
ZoneCode:include()
ZoneCode:use()
end