add alembic (#2627)

* update imath

* add alembic

* remove mingw support
pull/2631/head
Hoildkv 2 years ago committed by GitHub
parent 1cf5b3050a
commit 2db2831f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 36
      packages/a/alembic/xmake.lua
  2. 2
      packages/i/imath/xmake.lua

@ -0,0 +1,36 @@
package("alembic")
set_homepage("https://alembic.io/")
set_description("Open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications.")
set_license("BSD-3-Clause")
add_urls("https://github.com/alembic/alembic/archive/refs/tags/$(version).tar.gz",
"https://github.com/alembic/alembic.git")
add_versions("1.8.5", "180a12f08d391cd89f021f279dbe3b5423b1db751a9898540c8059a45825c2e9")
add_deps("cmake", "imath")
if is_plat("linux") then
add_syslinks("m")
end
on_load("windows", function (package)
if package:config("shared") then
package:add("defines", "ALEMBIC_DLL")
end
end)
on_install("windows", "macosx", "linux", function (package)
local configs = {"-DBUILD_TESTING=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DALEMBIC_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <Alembic/Abc/All.h>
void test() {
Alembic::Abc::OArchive archive;
Alembic::Abc::OObject object = archive.getTop();
}
]]}, {configs = {languages = "c++14"}}))
end)

@ -12,7 +12,9 @@ package("imath")
add_versions("v3.1.3", "0bf7ec51162c4d17a4c5b850fb3f6f7a195cff9fa71f4da7735f74d7b5124320")
add_versions("v3.1.4", "fcca5fbb37d375a252bacd8a29935569bdc28b888f01ef1d9299ca0c9e87c17a")
add_versions("v3.1.5", "1e9c7c94797cf7b7e61908aed1f80a331088cc7d8873318f70376e4aed5f25fb")
add_versions("v3.1.9", "f1d8aacd46afed958babfced3190d2d3c8209b66da451f556abd6da94c165cf3")
add_includedirs("include", "include/Imath")
on_load(function (package)
if not package.is_built or package:is_built() then
package:add("deps", "cmake")

Loading…
Cancel
Save