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.
 
 
 

23 lines
592 B

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