improve cjson package

pull/18/head
ruki 6 years ago
parent 004eb671e0
commit 50be2d5cba
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 22
      PKGLIST.md
  2. 11
      packages/c/cjson/xmake.lua

@ -2,17 +2,17 @@
|linux|windows|mingw|iphoneos|macosx|android| |linux|windows|mingw|iphoneos|macosx|android|
|-----|-------|-----|--------|------|-------| |-----|-------|-----|--------|------|-------|
|autoconf|bzip2|doctest|doctest|autoconf|doctest|| |autoconf|bzip2|doctest|cjson|autoconf|cjson||
|automake|cairo|nlohmann_json|libcurl|automake|libjpeg|| |automake|cairo|nlohmann_json|doctest|automake|doctest||
|bzip2|cmake|tbox|libev|bzip2|libpng|| |bzip2|cmake|tbox|libcurl|bzip2|libjpeg||
|cairo|doctest|zlib|libffi|cairo|libuv|| |cairo|doctest|zlib|libev|cairo|libpng||
|cjson|expat||libjpeg|cjson|nlohmann_json|| |cjson|expat||libffi|cjson|libuv||
|cmake(x86_64)|freeglut||libpng|cmake|tbox|| |cmake(x86_64)|freeglut||libjpeg|cmake|lua||
|doctest|freetype||libuv|doctest|zlib|| |doctest|freetype||libpng|doctest|nlohmann_json||
|expat|glew||nlohmann_json|expat||| |expat|glew||libuv|expat|tbox||
|ffmpeg|go||tbox|ffmpeg||| |ffmpeg|go||nlohmann_json|ffmpeg|zlib||
|fontconfig|libcurl||zlib|fontconfig||| |fontconfig|libcurl||tbox|fontconfig|||
|freeglut|libjpeg|||freetype||| |freeglut|libjpeg||zlib|freetype|||
|freetype|libpng|||glew||| |freetype|libpng|||glew|||
|glew|libsdl|||go||| |glew|libsdl|||go|||
|go|libuv|||gperf||| |go|libuv|||gperf|||

@ -3,11 +3,16 @@ package("cjson")
set_homepage("https://github.com/DaveGamble/cJSON") set_homepage("https://github.com/DaveGamble/cJSON")
set_description("Ultralightweight JSON parser in ANSI C.") set_description("Ultralightweight JSON parser in ANSI C.")
set_urls("https://github.com/DaveGamble/cJSON/archive/v$(version).zip") set_urls("https://github.com/DaveGamble/cJSON/archive/v$(version).zip",
"https://github.com/DaveGamble/cJSON.git")
add_versions("1.7.10", "80a0584410656c8d8da2ba703744f44d7535fc4f0778d8bf4f980ce77c6a9f65") add_versions("1.7.10", "80a0584410656c8d8da2ba703744f44d7535fc4f0778d8bf4f980ce77c6a9f65")
on_install("macosx", "linux", function (package) on_install("macosx", "linux", "iphoneos", "android", function (package)
os.vrun("make static") import("package.tools.make").build(package, {"static"})
os.cp("*.a", package:installdir("lib")) os.cp("*.a", package:installdir("lib"))
os.cp("*.h", package:installdir("include")) os.cp("*.h", package:installdir("include"))
end) end)
on_test(function (package)
assert(package:has_cfuncs("cJSON_malloc", {includes = "cJSON.h"}))
end)

Loading…
Cancel
Save