Jelajahi Sumber

port pdfhummus to windows (#1723)

* port pdfhummus to windows

* port libaesgm to windows

* fix windows linker issue

* cleanup unnecessary change
jingkaimori 2 tahun lalu
induk
melakukan
9eca8b24f6
2 mengubah file dengan 6 tambahan dan 3 penghapusan
  1. 1 1
      packages/l/libaesgm/xmake.lua
  2. 5 2
      packages/p/pdfhummus/xmake.lua

+ 1 - 1
packages/l/libaesgm/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")

+ 5 - 2
packages/p/pdfhummus/xmake.lua

@@ -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