improve libtiff

pull/239/head
ruki 4 years ago
parent fb42b02ae8
commit 8383b53e2c
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 5
      packages/l/libtiff/xmake.lua

@ -15,6 +15,11 @@ package("libtiff")
on_install("windows", "mingw", function (package)
local configs = {"-Dzstd=OFF", "-Dlzma=OFF", "-Dwebp=OFF", "-Djpeg12=OFF", "-Djbig=OFF", "-Dpixarlog=OFF"}
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
io.replace("CMakeLists.txt", "add_subdirectory(contrib)", "", {plain = true})
io.replace("CMakeLists.txt", "add_subdirectory(man)", "", {plain = true})
io.replace("CMakeLists.txt", "add_subdirectory(html)", "", {plain = true})
io.replace("CMakeLists.txt", "add_subdirectory(test)", "", {plain = true})
io.replace("CMakeLists.txt", "add_subdirectory(tools)", "", {plain = true})
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save