Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Jan 16, 2024
1 parent 26b2781 commit e2e5b1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xmake/packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ function add_requires_of_mogan()
if is_plat("linux") and using_apt() then
add_requires("apt::libpng-dev", {alias="libpng"})
add_requireconfs("pdfhummus.libpng", {system = true, override=true})
elseif is_plat("linux") and using_pacman () then
add_requires("pacman::libpng", {alias="libpng"})
add_requireconfs("pdfhummus.libpng", {system = true, override=true})
else
add_requireconfs("pdfhummus.libpng", {version = LIBPNG_VERSION, system = false, override=true})
end
Expand All @@ -148,6 +151,8 @@ function add_requires_of_mogan()
else
add_requires("apt::libfreetype-dev", {alias="freetype"})
end
elseif is_plat("linux") and using_pacman () then
add_requires("pacman::freetype2", {alias="freetype"})
else
-- Let xrepo manage the dependencies for macOS and other GNU/Linux distros
if not is_plat ("macosx") then
Expand Down

0 comments on commit e2e5b1c

Please sign in to comment.