mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-10-09 08:16:41 +00:00
chore: fix build on linux
This commit is contained in:
@@ -39,6 +39,11 @@ function ModMan:project()
|
||||
includedirs {
|
||||
"%{prj.location}"
|
||||
}
|
||||
|
||||
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)
|
||||
webview:include(includes)
|
||||
|
@@ -53,7 +53,9 @@ int main()
|
||||
},
|
||||
nullptr);
|
||||
|
||||
#if defined(WEBVIEW_PLATFORM_WINDOWS) && defined(WEBVIEW_EDGE)
|
||||
edge::InstallCustomProtocolHandler(w);
|
||||
#endif
|
||||
|
||||
w.navigate("http://modman/index.html");
|
||||
w.run();
|
||||
|
31
thirdparty/webview.lua
vendored
31
thirdparty/webview.lua
vendored
@@ -11,18 +11,20 @@ end
|
||||
|
||||
function webview:link(links)
|
||||
|
||||
links:add("WebView2LoaderStatic")
|
||||
|
||||
filter "platforms:x86"
|
||||
libdirs {
|
||||
path.join(self:msWebviewDir(), "build/native/x86")
|
||||
}
|
||||
filter {}
|
||||
filter "platforms:x64"
|
||||
libdirs {
|
||||
path.join(self:msWebviewDir(), "build/native/x64")
|
||||
}
|
||||
filter {}
|
||||
if os.host() == "windows" then
|
||||
links:add("WebView2LoaderStatic")
|
||||
|
||||
filter "platforms:x86"
|
||||
libdirs {
|
||||
path.join(self:msWebviewDir(), "build/native/x86")
|
||||
}
|
||||
filter {}
|
||||
filter "platforms:x64"
|
||||
libdirs {
|
||||
path.join(self:msWebviewDir(), "build/native/x64")
|
||||
}
|
||||
filter {}
|
||||
end
|
||||
|
||||
links:add(self:name())
|
||||
end
|
||||
@@ -58,6 +60,11 @@ function webview:project()
|
||||
if os.host() == "windows" then
|
||||
self:installWebview2()
|
||||
end
|
||||
|
||||
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)
|
||||
|
||||
|
Reference in New Issue
Block a user