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") |
package("rpmalloc") |
||||||
set_homepage("https://github.com/mjansson/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_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_urls("https://github.com/mjansson/rpmalloc/archive/refs/tags/$(version).tar.gz", |
||||||
add_versions("1.4.4", "3859620c03e6473f0b3f16a4e965e7c049594253f70e8370fb9caa0e4118accb") |
"https://github.com/mjansson/rpmalloc.git") |
||||||
|
|
||||||
if is_plat("windows") then |
add_versions("1.4.5", "2513626697ef72a60957acc8caed17c39931a55c1a49202707de195742683d69") |
||||||
add_syslinks("advapi32") |
add_versions("1.4.4", "3859620c03e6473f0b3f16a4e965e7c049594253f70e8370fb9caa0e4118accb") |
||||||
end |
|
||||||
|
if is_plat("windows") then |
||||||
on_install(function (package) |
add_syslinks("advapi32") |
||||||
local configs = {} |
end |
||||||
io.writefile("xmake.lua", [[ |
|
||||||
add_rules("mode.release", "mode.debug") |
on_install("!wasm", function (package) |
||||||
target("rpmalloc") |
io.writefile("xmake.lua", [[ |
||||||
set_kind("$(kind)") |
add_rules("mode.release", "mode.debug") |
||||||
add_files("rpmalloc/rpmalloc.c") |
target("rpmalloc") |
||||||
add_headerfiles("rpmalloc/(*.h)") |
set_kind("$(kind)") |
||||||
if is_plat("windows") and is_kind("shared") then |
add_files("rpmalloc/rpmalloc.c") |
||||||
add_rules("utils.symbols.export_all") |
add_headerfiles("rpmalloc/(*.h)") |
||||||
add_syslinks("advapi32") |
if is_plat("windows") and is_kind("shared") then |
||||||
end |
add_rules("utils.symbols.export_all") |
||||||
]]) |
add_syslinks("advapi32") |
||||||
if package:config("shared") then |
end |
||||||
configs.kind = "shared" |
]]) |
||||||
end |
import("package.tools.xmake").install(package) |
||||||
import("package.tools.xmake").install(package, configs) |
end) |
||||||
end) |
|
||||||
|
on_test(function (package) |
||||||
on_test(function (package) |
assert(package:has_cfuncs("rpmalloc", {includes = "rpmalloc.h"})) |
||||||
assert(package:has_cfuncs("rpmalloc", {includes = "rpmalloc.h"})) |
end) |
||||||
end) |
|
||||||
|
Loading…
Reference in new issue