port pdfhummus to windows (#1723)

* port pdfhummus to windows

* port libaesgm to windows

* fix windows linker issue

* cleanup unnecessary change
pull/1734/head
jingkaimori 2 years ago committed by GitHub
parent 208a04158c
commit 9eca8b24f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/l/libaesgm/xmake.lua
  2. 7
      packages/p/pdfhummus/xmake.lua

@ -6,7 +6,7 @@ package("libaesgm")
"https://github.com/xmake-mirror/libaesgm.git")
add_versions("2013.1.1", "102353a486126c91ccab791c3e718d056d8fbb1be488da81b26561bc7ef4f363")
on_install("linux", "macosx", function (package)
on_install("linux", "macosx", "windows", "mingw", function (package)
local configs = {}
io.writefile("xmake.lua", [[
add_rules("mode.release", "mode.debug")

@ -20,8 +20,7 @@ package("pdfhummus")
end
end
end)
on_install("linux", "macosx", function (package)
on_install("linux", "windows", "mingw", "macosx", function (package)
io.writefile("xmake.lua", [[
option("libtiff", {description = "Enable libtiff", default = false})
option("libpng", {description = "Enable libpng", default = false})
@ -56,6 +55,10 @@ package("pdfhummus")
if not has_package("libjpeg") then
add_defines("PDFHUMMUS_NO_DCT=1")
end
-- port symbols for linker
if is_plat("windows") and is_kind("shared") then
add_rules("utils.symbols.export_all", {export_classes = true})
end
]])
local configs = {}
if package:config("shared") then

Loading…
Cancel
Save