libplist: add 2.6.0 version (#5513)
* libplist: add 2.6.0 version * autotools: add package * autotools: fix install * fix symbol macro * remove main files * improve xmake.luapull/5516/head
parent
355ff95f6a
commit
e5da705830
3 changed files with 86 additions and 15 deletions
@ -0,0 +1,11 @@ |
|||||||
|
package("autotools") |
||||||
|
set_kind("binary") |
||||||
|
|
||||||
|
if is_subhost("msys") then |
||||||
|
add_deps("pacman::autotools") |
||||||
|
else |
||||||
|
add_deps("autoconf", "automake", "libtool") |
||||||
|
end |
||||||
|
|
||||||
|
on_install("@linux", "@macosx", "@bsd", "@msys", function (package) |
||||||
|
end) |
@ -0,0 +1,23 @@ |
|||||||
|
option("version", {default = "2.6.0"}) |
||||||
|
|
||||||
|
add_rules("mode.debug", "mode.release") |
||||||
|
|
||||||
|
if not is_plat("windows", "mingw", "msys") then |
||||||
|
add_defines("HAVE_STRNDUP") |
||||||
|
end |
||||||
|
|
||||||
|
local version = get_config("version") |
||||||
|
if version then |
||||||
|
set_version(version, {soname = true}) |
||||||
|
add_defines("PACKAGE_VERSION=\"" .. version .. "\"") |
||||||
|
end |
||||||
|
|
||||||
|
target("plist") |
||||||
|
set_kind("$(kind)") |
||||||
|
add_files("libcnary/*.c|cnary.c", "src/*.c") |
||||||
|
add_includedirs("src", "include", "libcnary/include") |
||||||
|
add_headerfiles("include/(plist/*.h)") |
||||||
|
|
||||||
|
if is_kind("static") then |
||||||
|
add_defines("LIBPLIST_STATIC") |
||||||
|
end |
Loading…
Reference in new issue