|
|
@ -20,8 +20,7 @@ package("pdfhummus") |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
on_install("linux", "windows", "mingw", "macosx", function (package) |
|
|
|
on_install("linux", "macosx", function (package) |
|
|
|
|
|
|
|
io.writefile("xmake.lua", [[ |
|
|
|
io.writefile("xmake.lua", [[ |
|
|
|
option("libtiff", {description = "Enable libtiff", default = false}) |
|
|
|
option("libtiff", {description = "Enable libtiff", default = false}) |
|
|
|
option("libpng", {description = "Enable libpng", default = false}) |
|
|
|
option("libpng", {description = "Enable libpng", default = false}) |
|
|
@ -56,6 +55,10 @@ package("pdfhummus") |
|
|
|
if not has_package("libjpeg") then |
|
|
|
if not has_package("libjpeg") then |
|
|
|
add_defines("PDFHUMMUS_NO_DCT=1") |
|
|
|
add_defines("PDFHUMMUS_NO_DCT=1") |
|
|
|
end |
|
|
|
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 = {} |
|
|
|
local configs = {} |
|
|
|
if package:config("shared") then |
|
|
|
if package:config("shared") then |
|
|
|