Skip to content

Commit afc7612

Browse files
Auto-update anari to v0.15.0 (#8586)
* Update anari to v0.15.0 * fix links * fix mingw defines --------- Co-authored-by: star9029 <hengxings783@gmail.com>
1 parent a121804 commit afc7612

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/a/anari/xmake.lua

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@ package("anari")
66
add_urls("https://github.com/KhronosGroup/ANARI-SDK/archive/refs/tags/$(version).tar.gz",
77
"https://github.com/KhronosGroup/ANARI-SDK.git")
88

9+
add_versions("v0.15.0", "8fe0fa1a7eea6768fe69a46313ba405b62b2667b1bae5e843bc751a90a53fad3")
910
add_versions("v0.14.1", "a1df9e917bdb0b6edb0ad4b8e59e1171468a446f850559c74ad5731317201e16")
1011
add_versions("v0.13.1", "b8979ab0dea22cf71c2eacf9421b0cf3fe5807224147c63686d6ed07e65873f4")
1112
add_versions("v0.12.1", "1fc5cf360b260cc2e652bff4a41dcf3507c84d25701dc6c6630f6f6f83656b6c")
1213

1314
add_deps("cmake", "python 3.x", {kind = "binary"})
1415

1516
on_install(function (package)
16-
if not package:config("shared") and package:is_plat("windows") then
17+
if not package:config("shared") and package:is_plat("windows", "mingw") then
1718
package:add("defines", "ANARI_STATIC_DEFINE")
1819
end
1920

21+
if package:config("shared") then
22+
package:add("links", "anari_test_scenes", "anari_library_debug", "anari_library_sink", "helium", "anari", "anari_backend")
23+
else
24+
package:add("links", "anari_test_scenes", "anari_library_debug", "anari_library_sink", "helium", "anari_static", "anari_backend")
25+
end
26+
2027
local configs = {
2128
"-DBUILD_TESTING=OFF",
2229
"-DBUILD_EXAMPLES=OFF",
@@ -27,6 +34,15 @@ package("anari")
2734
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
2835
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (not package:config("shared") and "ON" or "OFF"))
2936
import("package.tools.cmake").install(package, configs)
37+
38+
if package:config("shared") then
39+
os.tryrm(path.join(package:installdir("lib"), "*anari_static*"))
40+
else
41+
os.tryrm(path.join(package:installdir("lib"), "libanari.so*"))
42+
os.tryrm(path.join(package:installdir("lib"), "libanari.dylib*"))
43+
os.tryrm(path.join(package:installdir("lib"), "anari.lib"))
44+
os.tryrm(path.join(package:installdir("bin"), "anari.dll"))
45+
end
3046
end)
3147

3248
on_test(function (package)

0 commit comments

Comments
 (0)