Skip to content

Commit

Permalink
add gsound deps
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahahbenny committed Oct 28, 2024
1 parent 106a646 commit 51d24c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions packages/x/xtd/patches/v0.1.2/add_wxwidgets_to_tools.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a01d814..1f38b73 100644
index a01d814..595190c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -5,6 +5,15 @@ project(src)
@@ -5,6 +5,14 @@ project(src)
include(../scripts/cmake/xtd_commands.cmake)
include(../scripts/cmake/xtd_version.cmake)

Expand All @@ -12,7 +12,6 @@ index a01d814..1f38b73 100644
+link_directories(${WXWIDGETS_LIBRARY_DIRS})
+set(XTD_EXTRA_LIBS "${XTD_EXTRA_LIBS};${WXWIDGETS_LIBRARIES}")
+
+message(VERBOSE "\n\n\n\nxtd_extra_libs = ${XTD_EXTRA_LIBS}\n\n\n\n")
+add_references(${XTD_EXTRA_LIBS})
+
set(XTD_HEADER_FILE "xtd/include/xtd/xtd.h")
Expand Down
8 changes: 3 additions & 5 deletions packages/x/xtd/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ package("xtd")
-- https://github.com/gammasoft71/xtd/issues/264#issue-2527671013

if is_plat("linux") then
add_extsources("apt::libgsound-dev")
add_patches("v0.1.2", "patches/v0.1.2/add_wxwidgets_to_tools.patch", "f54c33316e7e5acb733a4c3f5ec785bcb36db7ecab868142750f5b3e20069f20")
add_patches("v0.1.2", "patches/v0.1.2/add_wxwidgets_to_tools.patch", "1eef76faf6fef4436c8b8c55bb8ff7dc093e725dcb343bdbec5af4dbb30ea7b3")
end

add_deps("cmake","alsa-lib", "xorgproto", "glib", "wxwidgets", "gtk3")
add_deps("cmake","alsa-lib", "xorgproto", "glib", "wxwidgets", "gtk3", "gsound")
add_links("xtd", "xtd.core", "xtd.forms", "xtd.drawing", "xtd.tunit", "xtd.forms.native.wxwidgets", "xtd.3rdparty.call_stack", "xtd.core.native.unix", "xtd.drawing.native.wxwidgets")

on_load("linux", function (package)
Expand All @@ -38,13 +37,12 @@ package("xtd")
end)

on_install("linux", function (package)
print("\n\n\n\n\nthe toolkit is " .. package:config("graphic_toolkit") .. "\n\n\n\n")
local configs = {" --log-level=VERBOSE", "-DXTD_NATIVE_GRAPHIC_TOOLKIT=" .. package:config("graphic_toolkit"), "-DXTD_INSTALL_RESOURCES=OFF", "-DXTD_BUILD_TOOL_SLEEPFOR_COMMAND_LINE=OFF"}
table.insert(configs, "-DXTD_BUILD_SHARED_LIBRARIES=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DXTD_INSTALL_EXAMPLES=OFF")
table.insert(configs, "-DXTD_BUILD_TOOL_GUIDGEN_GUI=OFF")
table.insert(configs, "-DXTD_BUILD_TOOL_GUIDGEN_COMMAND_LINE=OFF")
import("package.tools.cmake").install(package, configs)
import("package.tools.cmake").install(package, configs, {packagedeps = {"libcanberra"}})
end)

on_test(function (package)
Expand Down

0 comments on commit 51d24c4

Please sign in to comment.