Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update xmake.lua
  • Loading branch information
star-hengxing authored Oct 28, 2025
commit 1dbffc4116ed4cd02dada33fe85f69c95f52535f
9 changes: 9 additions & 0 deletions packages/p/pangolin/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ package("pangolin")
io.replace("CMakeLists.txt", "-Werror=maybe-uninitialized", "", {plain = true})
io.replace("CMakeLists.txt", "-Werror=vla", "", {plain = true})
io.replace("CMakeLists.txt", "-Werror", "", {plain = true})
if package:config("libraw") then
io.replace("cmake/FindLibraw.cmake", "NAMES raw_r", "NAMES raw", {plain = true})
io.replace("components/pango_image/CMakeLists.txt", "libraw_INCLUDE_DIR", "libraw_INCLUDE_DIRS", {plain = true})
if not package:dep("libraw"):config("shared") then
io.replace("components/pango_image/CMakeLists.txt", "HAVE_LIBRAW", "HAVE_LIBRAW LIBRAW_NODLL", {plain = true})
end
end
-- fix gcc15
io.replace("components/pango_core/include/pangolin/factory/factory.h", "#include <map>", "#include <map>\n#include <cstdint>", {plain = true})

local configs = {"-DBUILD_EXAMPLES=OFF", "-DBUILD_PANGOLIN_PYTHON=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
Expand Down
Loading