Improve libjpeg-turbo (#327)

* Improve libjpeg-turbo

* Update xmake.lua
pull/331/head
Jérôme Leclercq 4 years ago committed by GitHub
parent 0283e5d651
commit 7dc9ed8b33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/l/libjpeg-turbo/xmake.lua

@ -30,6 +30,12 @@ package("libjpeg-turbo")
table.insert(configs, "-DENABLE_SHARED=OFF")
table.insert(configs, "-DENABLE_STATIC=ON")
end
if package:config("vs_runtime"):startswith("MD") then
table.insert(configs, "-DWITH_CRT_DLL=ON")
end
if package:config("pic") ~= false then
table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
end
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save