Skip to content

Commit

Permalink
change configs
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahahbenny committed Sep 16, 2024
1 parent 54eae4a commit d6113d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/x/xtd/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package("xtd")

add_versions("v0.1.2", "648f7e5e2252d0db4e9432d493cec0682c059605ae3dfded793884cbbf3d1bd5")

add_configs("graphic_toolkit", {description = "Select xtd graphic toolkit.", default = "fltk", type = "string", values = {"gtk3", "wxwidgets", "fltk", "gtk4", "qt5"}})
add_configs("graphic_toolkit", {description = "Select xtd graphic toolkit.", default = "wxwidgets", type = "string", values = {"gtk3", "wxwidgets", "fltk", "gtk4", "qt5"}})
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
-- when building the xtd shared library, it shows Cyclic dependencies error. I have summit a issue to xtd.
-- https://github.com/gammasoft71/xtd/issues/264#issue-2527671013
Expand All @@ -34,11 +34,11 @@ package("xtd")
end)

on_install("linux", function (package)
-- io.replace("src/","", "" {plain=true})
local configs = {"-DXTD_NATIVE_GRAPHIC_TOOLKIT=" .. package:config("graphic_toolkit"), "-DXTD_BUILD_TOOLS=OFF", "XTD_INSTALL_RESOURCES"}
local configs = {"-DXTD_NATIVE_GRAPHIC_TOOLKIT=" .. package:config("graphic_toolkit"),
"-DXTD_BUILD_TOOLS=OFF",
"XTD_INSTALL_RESOURCES",
"-DXTD_INSTALL_EXAMPLES=OFF"}
table.insert(configs, "-DXTD_BUILD_SHARED_LIBRARIES=" .. (package:config("shared") and "ON" or "OFF"))
-- table.insert(configs, "-DXTD_NATIVE_GRAPHIC_TOOLKIT=" .. (package:config("graphic_toolkit")))
table.insert(configs, "-DXTD_INSTALL_EXAMPLES=OFF")
import("package.tools.cmake").install(package, configs)
end)

Expand Down

0 comments on commit d6113d8

Please sign in to comment.