package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1014 B
28 lines
1014 B
2 years ago
|
package("elfio")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("http://serge1.github.io/ELFIO")
|
||
|
set_description("ELFIO - ELF (Executable and Linkable Format) reader and producer implemented as a header only C++ library")
|
||
|
set_license("MIT")
|
||
|
|
||
|
add_urls("https://github.com/serge1/ELFIO/archive/refs/tags/Release_$(version).tar.gz")
|
||
|
add_versions("3.11", "c896b1c41ac19348b040e4adbd1bd14950c4c216da97f900dff726eb0adf20b2")
|
||
|
|
||
|
add_deps("cmake")
|
||
|
|
||
|
on_install(function (package)
|
||
|
local configs = {"-DELFIO_BUILD_TESTS=OFF", "-DELFIO_BUILD_EXAMPLES=OFF"}
|
||
|
import("package.tools.cmake").install(package, configs)
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:check_cxxsnippets({test = [[
|
||
|
#include <iostream>
|
||
|
#include <elfio/elfio.hpp>
|
||
|
using namespace ELFIO;
|
||
|
void test() {
|
||
|
elfio reader;
|
||
|
reader.load("");
|
||
|
}
|
||
|
]]}, {configs = {languages = "c++17"}}))
|
||
|
end)
|