fix blosc old version and openvdb

pull/103/head
xq114 4 years ago
parent 5588a948e9
commit 47c659ec8a
  1. 11
      packages/b/blosc/xmake.lua
  2. 2
      packages/o/openvdb/xmake.lua

@ -24,7 +24,16 @@ package("blosc")
table.insert(configs, "-DBUILD_SHARED=OFF")
table.insert(configs, "-DBUILD_STATIC=ON")
end
import("package.tools.cmake").install(package, configs)
import("package.tools.cmake").install(package, configs, {buildir = "build"})
if is_host("windows") then
local version = package:version()
if version:le("1.10") and not package:config("shared") then
os.rm(package:installdir(lib) .. "/blosc.lib")
elseif package:config("shared") then
os.cp("build/install/bin", package:installdir())
package:addenv("PATH", "bin")
end
end
end)
on_test(function (package)

@ -17,7 +17,7 @@ package("openvdb")
add_configs("print", {description = "Command line binary for displaying information about OpenVDB files.", default = true, type = "boolean"})
add_configs("lod", {description = "Command line binary for generating volume mipmaps from an OpenVDB grid.", default = false, type = "boolean"})
add_configs("render", {description = "Command line binary for ray-tracing OpenVDB grids.", default = false, type = "boolean"})
add_configs("view", {description = "Command line binary for displaying OpenVDB grids in a GL viewport", default = true, type = "boolean"})
add_configs("view", {description = "Command line binary for displaying OpenVDB grids in a GL viewport.", default = false, type = "boolean"})
on_load(function (package)
if package:config("with_houdini") == "" then

Loading…
Cancel
Save