|
@@ -16,8 +16,6 @@ package("xlsxio")
|
|
|
add_syslinks("pthread")
|
|
|
end
|
|
|
|
|
|
- add_deps("expat")
|
|
|
-
|
|
|
on_load(function (package)
|
|
|
if package:config("libzip") then
|
|
|
package:add("deps", "libzip")
|
|
@@ -26,6 +24,12 @@ package("xlsxio")
|
|
|
else
|
|
|
package:add("deps", "minizip")
|
|
|
end
|
|
|
+
|
|
|
+ if package:config("wide") then
|
|
|
+ package:add("deps", "expat", {configs = {char_type = "wchar_t"}})
|
|
|
+ else
|
|
|
+ package:add("deps", "expat")
|
|
|
+ end
|
|
|
end)
|
|
|
|
|
|
on_install("windows", "linux", "macosx", "mingw", "cross", function (package)
|
|
@@ -41,8 +45,6 @@ package("xlsxio")
|
|
|
end
|
|
|
package:add("defines", "BUILD_XLSXIO_" .. (package:config("shared") and "SHARED" or "STATIC"))
|
|
|
|
|
|
- io.replace("lib/xlsxio_read.c", "minizip/", "", {plain = true})
|
|
|
- io.replace("lib/xlsxio_write.c", "minizip/", "", {plain = true})
|
|
|
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
|
|
|
import("package.tools.xmake").install(package, configs)
|
|
|
end)
|