Fix build for libtiff&openimageio (#1208)

* Fix build for libtiff&openimageio

Signed-off-by: neverfelly <neverfelly@gmail.com>

* Add bsd support for libdeflate

Signed-off-by: neverfelly <neverfelly@gmail.com>
pull/1212/head
Shokuhou Misaki 3 years ago committed by GitHub
parent 7a7d9ecb2c
commit 4023b478ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/l/libdeflate/xmake.lua
  2. 3
      packages/l/libtiff/xmake.lua

@ -15,7 +15,7 @@ package("libdeflate")
end
end)
on_install("windows", "macosx", "linux", "android", "mingw", function (package)
on_install("windows", "macosx", "linux", "android", "mingw", "bsd", function (package)
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
target("deflate")

@ -11,9 +11,10 @@ package("libtiff")
add_deps("zlib")
add_deps("cmake")
add_deps("libdeflate")
on_install("windows", "mingw", "macosx", "linux", "bsd", function (package)
local configs = {"-Dzstd=OFF", "-Dlzma=OFF", "-Dwebp=OFF", "-Djpeg=OFF", "-Djbig=OFF", "-Dpixarlog=OFF"}
local configs = {"-Dzstd=OFF", "-Dlzma=OFF", "-Dwebp=OFF", "-Djpeg=OFF", "-Djbig=OFF", "-Dpixarlog=OFF", "-Dlerc=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
if package:config("pic") ~= false then

Loading…
Cancel
Save