Skip to content

Commit b87760f

Browse files
committed
update
1 parent 3f32488 commit b87760f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/f/fltk/xmake.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ package("fltk")
2525
add_configs("fluid", {description = "Build fluid", default = false, type = "boolean"})
2626
add_configs("forms", {description = "Build forms", default = false, type = "boolean"})
2727

28-
if is_plat("windows", "mingw") then
29-
add_syslinks("ws2_32", "comctl32", "gdi32", "oleaut32", "ole32", "uuid", "shell32", "advapi32", "comdlg32", "winspool", "user32", "kernel32", "odbc32")
28+
if is_plat("windows", "mingw", "cygwin", "msys") then
29+
add_syslinks("ws2_32", "comctl32", "gdi32", "oleaut32", "ole32", "uuid", "shell32", "advapi32", "comdlg32", "winspool", "user32", "kernel32", "odbc32", "gdiplus")
3030
elseif is_plat("macosx") then
3131
add_frameworks("Cocoa")
3232
elseif is_plat("android") then
@@ -66,10 +66,12 @@ package("fltk")
6666
end
6767
end)
6868

69-
on_install("windows|x86", "windows|x64", "linux", "macosx", "mingw", "msys", function (package)
69+
on_install("windows|x86", "windows|x64", "linux", "macosx", "mingw", "cygwin", "msys", function (package)
7070
for _, file in ipairs(os.files("**.cxx")) do
7171
io.replace(file, "<libpng/png.h>", "<png.h>", {plain = true})
7272
end
73+
io.replace("CMake/options.cmake", "list(APPEND FLTK_IMAGE_LIBRARIES ${JPEG_LIBRARIES})",
74+
"list(APPEND FLTK_IMAGE_LIBRARIES ${JPEG_LIBRARIES})\ninclude_directories(${JPEG_INCLUDE_DIRS})", {plain = true})
7375

7476
local configs = {
7577
"-DFLTK_BUILD_TEST=OFF",

packages/l/libdecor/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package("libdecor")
1111
add_configs("gtk", {description = "Build GTK plugin", default = false, type = "boolean"})
1212

1313
add_deps("meson", "ninja")
14-
add_deps("wayland", "wayland-protocols", "cairo")
14+
add_deps("wayland", "wayland-protocols", "pango")
1515

1616
on_load(function (package)
1717
if package:config("dbus") then

packages/p/pango/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ package("pango")
2929

3030
on_install("windows|x64", "windows|x86", "macosx", "linux", function (package)
3131
import("package.tools.meson")
32-
local configs = {"-Dintrospection=disabled", "-Dgtk_doc=false", "-Dfontconfig=enabled"}
32+
local configs = {"-Dintrospection=disabled", "-Dgtk_doc=false", "-Dfontconfig=enabled", "-Dcairo=enabled"}
3333

3434
table.insert(configs, "-Ddefault_library=" .. (package:config("shared") and "shared" or "static"))
3535
io.gsub("meson.build", "subdir%('tests'%)", "")

0 commit comments

Comments
 (0)