-
-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* libplist: add 2.6.0 version * autotools: add package * autotools: fix install * fix symbol macro * remove main files * improve xmake.lua
- Loading branch information
1 parent
355ff95
commit e5da705
Showing
3 changed files
with
86 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters