Auto-update rpmalloc to 1.4.5 (#3910)
* Update rpmalloc to 1.4.5 * disbale wasm * Update xmake.lua --------- Co-authored-by: star9029 <hengxings783@gmail.com>pull/3918/head
parent
97e0c63ed7
commit
34812a68d6
1 changed files with 33 additions and 34 deletions
@ -1,34 +1,33 @@ |
||||
package("rpmalloc") |
||||
set_homepage("https://github.com/mjansson/rpmalloc") |
||||
set_description("Public domain cross platform lock free thread caching 16-byte aligned memory allocator implemented in C") |
||||
|
||||
add_urls("https://github.com/mjansson/rpmalloc/archive/refs/tags/$(version).tar.gz", |
||||
"https://github.com/mjansson/rpmalloc.git") |
||||
add_versions("1.4.4", "3859620c03e6473f0b3f16a4e965e7c049594253f70e8370fb9caa0e4118accb") |
||||
|
||||
if is_plat("windows") then |
||||
add_syslinks("advapi32") |
||||
end |
||||
|
||||
on_install(function (package) |
||||
local configs = {} |
||||
io.writefile("xmake.lua", [[ |
||||
add_rules("mode.release", "mode.debug") |
||||
target("rpmalloc") |
||||
set_kind("$(kind)") |
||||
add_files("rpmalloc/rpmalloc.c") |
||||
add_headerfiles("rpmalloc/(*.h)") |
||||
if is_plat("windows") and is_kind("shared") then |
||||
add_rules("utils.symbols.export_all") |
||||
add_syslinks("advapi32") |
||||
end |
||||
]]) |
||||
if package:config("shared") then |
||||
configs.kind = "shared" |
||||
end |
||||
import("package.tools.xmake").install(package, configs) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:has_cfuncs("rpmalloc", {includes = "rpmalloc.h"})) |
||||
end) |
||||
package("rpmalloc") |
||||
set_homepage("https://github.com/mjansson/rpmalloc") |
||||
set_description("Public domain cross platform lock free thread caching 16-byte aligned memory allocator implemented in C") |
||||
set_license("MIT") |
||||
|
||||
add_urls("https://github.com/mjansson/rpmalloc/archive/refs/tags/$(version).tar.gz", |
||||
"https://github.com/mjansson/rpmalloc.git") |
||||
|
||||
add_versions("1.4.5", "2513626697ef72a60957acc8caed17c39931a55c1a49202707de195742683d69") |
||||
add_versions("1.4.4", "3859620c03e6473f0b3f16a4e965e7c049594253f70e8370fb9caa0e4118accb") |
||||
|
||||
if is_plat("windows") then |
||||
add_syslinks("advapi32") |
||||
end |
||||
|
||||
on_install("!wasm", function (package) |
||||
io.writefile("xmake.lua", [[ |
||||
add_rules("mode.release", "mode.debug") |
||||
target("rpmalloc") |
||||
set_kind("$(kind)") |
||||
add_files("rpmalloc/rpmalloc.c") |
||||
add_headerfiles("rpmalloc/(*.h)") |
||||
if is_plat("windows") and is_kind("shared") then |
||||
add_rules("utils.symbols.export_all") |
||||
add_syslinks("advapi32") |
||||
end |
||||
]]) |
||||
import("package.tools.xmake").install(package) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:has_cfuncs("rpmalloc", {includes = "rpmalloc.h"})) |
||||
end) |
||||
|
Loading…
Reference in new issue