Skip to content

Commit 20149ac

Browse files
angelscript: add 2.37.0 version (#5029)
* angelscript: add 2.37.0 version * add unofficial mirror * add check
1 parent 063862d commit 20149ac

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

packages/a/angelscript/xmake.lua

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ package("angelscript")
33
set_description("Extremely flexible cross-platform scripting library designed to allow applications to extend their functionality through external scripts")
44
set_license("zlib")
55

6+
add_urls("https://github.com/codecat/angelscript-mirror.git")
67
add_urls("http://angelcode.com/angelscript/sdk/files/angelscript_$(version).zip")
8+
9+
add_versions("2.37.0", "0c52d1688016a0b2484e9ca549471c4e295df060770c57840144c64815f54f10")
710
add_versions("2.36.0", "33f95f7597bc0d88b097d35e7b1320d15419ffc5779851d9d2a6cccec57811b3")
811
add_versions("2.35.1", "5c1096b6d6cf50c7e77ae93c736d35b69b07b1e5047161c7816bca25b413a18b")
912
add_versions("2.35.0", "010dd45e23e734d46f5891d70e268607a12cb9ab12503dda42f842d9db7e8857")
@@ -17,16 +20,28 @@ package("angelscript")
1720
add_syslinks("pthread")
1821
end
1922

23+
if on_check then
24+
on_check("mingw", function (package)
25+
if is_host("macosx") and package:is_arch("i386") and package:version():eq("2.37.0") then
26+
assert(false, "package(angelscript 2.37.0): Unsupported version on mingw|i386")
27+
end
28+
end)
29+
end
30+
2031
on_load("windows|x86", "windows|x64", "linux", "android", "msys", "mingw", function (package)
2132
package:add("deps", "cmake")
2233
end)
2334

2435
on_install("windows|x86", "windows|x64", "linux", "android", "msys", "mingw", function (package)
25-
os.cd("angelscript/projects/cmake")
2636
local configs = {}
2737
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
2838
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
2939
table.insert(configs, "-DAS_NO_EXCEPTIONS=" .. (package:config("exceptions") and "OFF" or "ON"))
40+
41+
if package:gitref() then
42+
os.cd("sdk")
43+
end
44+
os.cd("angelscript/projects/cmake")
3045
if package:is_plat("android") then
3146
io.gsub("CMakeLists.txt", "set_property", "#set_property")
3247
end

0 commit comments

Comments
 (0)