mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05:00
Add Tests for ZCG cpp
This commit is contained in:
43
src/ZoneCodeGeneratorLib.lua
Normal file
43
src/ZoneCodeGeneratorLib.lua
Normal file
@ -0,0 +1,43 @@
|
||||
ZoneCodeGeneratorLib = {}
|
||||
|
||||
function ZoneCodeGeneratorLib:include()
|
||||
if References:include(self:name()) then
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "ZoneCodeGeneratorLib")
|
||||
}
|
||||
end
|
||||
Utils:include()
|
||||
end
|
||||
|
||||
function ZoneCodeGeneratorLib:link()
|
||||
if References:link(self:name()) then
|
||||
links(self:name())
|
||||
Utils:link()
|
||||
end
|
||||
end
|
||||
|
||||
function ZoneCodeGeneratorLib:use()
|
||||
dependson(self:name())
|
||||
end
|
||||
|
||||
function ZoneCodeGeneratorLib:name()
|
||||
return "ZoneCodeGeneratorLib"
|
||||
end
|
||||
|
||||
function ZoneCodeGeneratorLib:project()
|
||||
References:reset()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project(self:name())
|
||||
targetdir(TargetDirectoryLib)
|
||||
location "%{wks.location}/src/%{prj.name}"
|
||||
kind "StaticLib"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "ZoneCodeGeneratorLib/**.h"),
|
||||
path.join(folder, "ZoneCodeGeneratorLib/**.cpp")
|
||||
}
|
||||
|
||||
self:include()
|
||||
end
|
Reference in New Issue
Block a user