mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-08-02 23:30:40 +08:00
fix: stabilize third-party dependency builds
This commit is contained in:
+1
-1
Submodule submodules/minirtc updated: 821553b638...0481f90226
Vendored
+11
-1
@@ -9,10 +9,13 @@ package("slint")
|
|||||||
|
|
||||||
add_configs("shared", {description = "Build the Slint runtime as a shared library", default = true, type = "boolean", readonly = true})
|
add_configs("shared", {description = "Build the Slint runtime as a shared library", default = true, type = "boolean", readonly = true})
|
||||||
|
|
||||||
add_deps("cmake >=3.21 <4.0")
|
add_deps("cmake~slint >=3.21 <4.0", {host = true, private = true, system = false})
|
||||||
add_deps("rust 1.92.0", {host = true, private = true, system = false})
|
add_deps("rust 1.92.0", {host = true, private = true, system = false})
|
||||||
|
|
||||||
on_load(function(package)
|
on_load(function(package)
|
||||||
|
if package:is_plat("linux") then
|
||||||
|
package:add("deps", "fontconfig", {private = true, system = false})
|
||||||
|
end
|
||||||
package:add("includedirs", "include/slint")
|
package:add("includedirs", "include/slint")
|
||||||
if package:is_plat("windows") then
|
if package:is_plat("windows") then
|
||||||
package:add("links", "slint_cpp.dll")
|
package:add("links", "slint_cpp.dll")
|
||||||
@@ -22,6 +25,13 @@ package("slint")
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
on_install("windows", "linux", "macosx", function(package)
|
on_install("windows", "linux", "macosx", function(package)
|
||||||
|
for _, dep in ipairs(package:orderdeps()) do
|
||||||
|
if dep:name() == "cmake" and dep:label() == "slint" then
|
||||||
|
os.addenv("PATH", dep:installdir("bin"))
|
||||||
|
import("core.cache.detectcache"):set2("find_program", "cmake", nil)
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
local configs = {
|
local configs = {
|
||||||
"-DSLINT_BUILD_TESTING=OFF",
|
"-DSLINT_BUILD_TESTING=OFF",
|
||||||
"-DSLINT_BUILD_EXAMPLES=OFF",
|
"-DSLINT_BUILD_EXAMPLES=OFF",
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ function setup_options_and_dependencies()
|
|||||||
add_defines("CROSSDESK_DEBUG")
|
add_defines("CROSSDESK_DEBUG")
|
||||||
end
|
end
|
||||||
|
|
||||||
add_requireconfs("*.python", {version = "3.12", override = true, configs = {pgo = false}})
|
add_requireconfs("**.python", {version = "3.12", override = true, configs = {pgo = false}})
|
||||||
add_requires("spdlog 1.14.1", {system = false})
|
add_requires("spdlog 1.14.1", {system = false})
|
||||||
add_requires("slint 1.17.1", {configs = {shared = true}})
|
add_requires("slint 1.17.1", {configs = {shared = true}})
|
||||||
add_requires("libsdl3 3.2.26", {configs = {shared = false}})
|
add_requires("libsdl3 3.2.26", {configs = {shared = false}})
|
||||||
|
|||||||
Reference in New Issue
Block a user