2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-17 18:52:06 +00:00

Rename ZoneCodeGeneratorNew to ZoneCodeGenerator.

Cleaning build folder might be required to prevent errors due to previous c# project
This commit is contained in:
Jan
2021-03-01 14:39:29 +01:00
parent f85c82f487
commit 1a09ad4396
4 changed files with 16 additions and 16 deletions

51
src/ZoneCodeGenerator.lua Normal file
View File

@@ -0,0 +1,51 @@
ZoneCodeGenerator = {}
function ZoneCodeGenerator:include()
if References:include(self:name()) then
includedirs {
path.join(ProjectFolder(), "ZoneCodeGenerator")
}
end
Utils:include()
end
function ZoneCodeGenerator:link()
if References:link(self:name()) then
links(self:name())
end
end
function ZoneCodeGenerator:use()
dependson(self:name())
end
function ZoneCodeGenerator:name()
return "ZoneCodeGenerator"
end
function ZoneCodeGenerator:project()
References:reset()
local folder = ProjectFolder();
project(self:name())
targetdir(TargetDirectoryBin)
location "%{wks.location}/src/%{prj.name}"
kind "ConsoleApp"
language "C++"
files {
path.join(folder, "ZoneCodeGenerator/**.h"),
path.join(folder, "ZoneCodeGenerator/**.cpp")
}
vpaths {
["*"] = {
path.join(folder, "ZoneCodeGenerator"),
}
}
self:include()
ZoneCodeGeneratorLib:include()
Utils:link()
ZoneCodeGeneratorLib:link()
end