lief: add versions from 0.14.0 (#3389)

* lief: add versions from 0.14.0

* lief: remove empty test
pull/3392/head
Chi Huu Huynh 12 months ago committed by GitHub
parent 23bcdabb1f
commit a8300040e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      packages/l/lief/xmake.lua

@ -8,6 +8,8 @@ package("lief")
"https://github.com/lief-project/LIEF.git")
add_versions("0.10.1", "6f30c98a559f137e08b25bcbb376c0259914b33c307b8b901e01ca952241d00a")
add_versions("0.11.5", "6d6d57304a56850958e4ce54f3da2ea2b9eb856ccbab61c6cde9cba15d7c9da5")
add_versions("0.14.0", "400804e38cb5ce8d15fb52a4db6345f02da7b2e5cb773665712283001482b808")
add_versions("0.14.1", "92916dcb3178353d863aef4f409186889983c56e025b774741d5316a72ec3a7d")
add_deps("cmake")
@ -20,6 +22,10 @@ package("lief")
add_configs("oat", {description = "Enable Oat module.", default = false, type = "boolean"})
add_configs("art", {description = "Enable Art module.", default = false, type = "boolean"})
if is_plat("windows") then
add_syslinks("advapi32")
end
on_install("macosx", "linux", "windows", function (package)
local configs = {"-DLIEF_PYTHON_API=OFF", "-DLIEF_DOC=OFF", "-DLIEF_TESTS=OFF", "-DLIEF_EXAMPLES=OFF", "-DLIEF_INSTALL_PYTHON=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
@ -42,6 +48,11 @@ package("lief")
parse_entry = "macho_parse"
end
if parse_entry then
assert(package:has_cfuncs(parse_entry, {includes = "LIEF/LIEF.h"}))
assert(package:check_cxxsnippets({test = [[
#include <LIEF/LIEF.h>
void test() {
]] .. parse_entry .. [[("");
}
]]}, {configs = {languages = "c"}}))
end
end)

Loading…
Cancel
Save