diff --git a/packages/l/libaesgm/xmake.lua b/packages/l/libaesgm/xmake.lua index dd4c30fba..da8f3e369 100644 --- a/packages/l/libaesgm/xmake.lua +++ b/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") diff --git a/packages/p/pdfhummus/xmake.lua b/packages/p/pdfhummus/xmake.lua index 12a2451ec..7cfeffd30 100644 --- a/packages/p/pdfhummus/xmake.lua +++ b/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