2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-08 12:17:48 +00:00

chore: modman inital setup

This commit is contained in:
Jan Laupetin
2025-10-01 23:35:37 +01:00
parent ec7475c6e1
commit cf2bb15ce9
27 changed files with 7856 additions and 4 deletions

48
src/ModMan.lua Normal file
View File

@@ -0,0 +1,48 @@
ModMan = {}
function ModMan:include(includes)
if includes:handle(self:name()) then
includedirs {
path.join(ProjectFolder(), "ModMan")
}
end
end
function ModMan:link(links)
end
function ModMan:use()
dependson(self:name())
end
function ModMan:name()
return "ModMan"
end
function ModMan:project()
local folder = ProjectFolder()
local includes = Includes:create()
local links = Links:create()
project(self:name())
targetdir(TargetDirectoryBin)
location "%{wks.location}/src/%{prj.name}"
kind "WindowedApp"
language "C++"
files {
path.join(folder, "ModMan/**.h"),
path.join(folder, "ModMan/**.cpp")
}
includedirs {
"%{prj.location}"
}
self:include(includes)
webview:include(includes)
links:linkto(webview)
links:linkall()
end