mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-09 22:38:06 -05:00
chore: parse includes and assetlists while parsing zone definition
This commit is contained in:
53
test/ObjCommonTestUtils.lua
Normal file
53
test/ObjCommonTestUtils.lua
Normal file
@ -0,0 +1,53 @@
|
||||
ObjCommonTestUtils = {}
|
||||
|
||||
function ObjCommonTestUtils:include(includes)
|
||||
if includes:handle(self:name()) then
|
||||
includedirs {
|
||||
path.join(TestFolder(), "ObjCommonTestUtils")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function ObjCommonTestUtils:link(links)
|
||||
links:add(self:name())
|
||||
links:linkto(ObjCommon)
|
||||
end
|
||||
|
||||
function ObjCommonTestUtils:use()
|
||||
|
||||
end
|
||||
|
||||
function ObjCommonTestUtils:name()
|
||||
return "ObjCommonTestUtils"
|
||||
end
|
||||
|
||||
function ObjCommonTestUtils:project()
|
||||
local folder = TestFolder()
|
||||
local includes = Includes:create()
|
||||
local links = Links:create()
|
||||
|
||||
project(self:name())
|
||||
targetdir(TargetDirectoryTest)
|
||||
location "%{wks.location}/test/%{prj.name}"
|
||||
kind "StaticLib"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "ObjCommonTestUtils/**.h"),
|
||||
path.join(folder, "ObjCommonTestUtils/**.cpp")
|
||||
}
|
||||
|
||||
vpaths {
|
||||
["*"] = {
|
||||
path.join(folder, "ObjCommonTestUtils")
|
||||
}
|
||||
}
|
||||
|
||||
self:include(includes)
|
||||
ObjCommon:include(includes)
|
||||
catch2:include(includes)
|
||||
|
||||
links:linkto(ObjCommon)
|
||||
links:linkto(catch2)
|
||||
links:linkall()
|
||||
end
|
Reference in New Issue
Block a user