2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-17 14:02:12 +00:00
Files
OpenAssetTools/src/ModMan.lua
T
Jan 8dba13f913 refactor: use new webwindowed api (#831)
* chore: update webview with new api

* chore: update modman to use new webview api

* chore: use title handler plugin from webview lib

* chore: use favicon plugin from webview lib

* chore: use vite-plugin-cpp-header from webview repo

* chore: use asset handler from webview lib

* chore: make webview utility

* chore: rename webview to webwindowed

* chore: Rename code usages to webwindowed
2026-06-16 09:50:34 +02:00

69 lines
1.3 KiB
Lua

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")
}
filter { "system:windows" }
files {
path.join(folder, "ModMan/**.rc")
}
filter {}
includedirs {
"%{wks.location}/src/ModMan"
}
filter { "system:linux", "action:gmake" }
buildoptions { "`pkg-config --cflags gtk4 webkitgtk-6.0`" }
linkoptions { "`pkg-config --libs gtk4 webkitgtk-6.0`" }
filter {}
self:include(includes)
Utils:include(includes)
ZoneLoading:include(includes)
ObjLoading:include(includes)
ObjWriting:include(includes)
json:include(includes)
webwindowed:include(includes)
links:linkto(Utils)
links:linkto(ZoneLoading)
links:linkto(ObjLoading)
links:linkto(ObjWriting)
links:linkto(webwindowed)
links:linkall()
end