parent
1cf5b3050a
commit
2db2831f1d
2 changed files with 38 additions and 0 deletions
@ -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) |
Loading…
Reference in new issue