瀏覽代碼

add spdlog

ruki 6 年之前
父節點
當前提交
39dfdd1449
共有 2 個文件被更改,包括 38 次插入20 次删除
  1. 21 20
      PKGLIST.md
  2. 17 0
      packages/s/spdlog/xmake.lua

+ 21 - 20
PKGLIST.md

@@ -6,18 +6,18 @@
 |bzip2|bzip2|doctest|cjson|automake|cjson||
 |bzip2|bzip2|doctest|cjson|automake|cjson||
 |cairo|cairo|gtest|doctest|boost|doctest||
 |cairo|cairo|gtest|doctest|boost|doctest||
 |catch2|catch2|nlohmann_json|gtest|bzip2|gtest||
 |catch2|catch2|nlohmann_json|gtest|bzip2|gtest||
-|cjson|doctest|tbox|json-c|cairo|json-c||
-|doctest|expat|zlib|libcurl|catch2|libjpeg||
-|expat|freeglut||libev|cjson|libpng||
+|cjson|doctest|spdlog|json-c|cairo|json-c||
+|doctest|expat|tbox|libcurl|catch2|libjpeg||
+|expat|freeglut|zlib|libev|cjson|libpng||
 |ffmpeg|freetype||libffi|cmake|libuv||
 |ffmpeg|freetype||libffi|cmake|libuv||
 |fontconfig|glew||libjpeg|doctest|libxml2||
 |fontconfig|glew||libjpeg|doctest|libxml2||
 |freeglut|go||libpng|expat|lua||
 |freeglut|go||libpng|expat|lua||
 |freetype|gtest||libuv|ffmpeg|nlohmann_json||
 |freetype|gtest||libuv|ffmpeg|nlohmann_json||
-|gettext|libcurl||libxml2|fontconfig|tbox||
-|glew|libjpeg||nlohmann_json|freetype|zlib||
-|glib|libpng||tbox|gettext|||
-|go|libsdl||zlib|glew|||
-|gperf|libuv|||glib|||
+|gettext|libcurl||libxml2|fontconfig|spdlog||
+|glew|libjpeg||nlohmann_json|freetype|tbox||
+|glib|libpng||spdlog|gettext|zlib||
+|go|libsdl||tbox|glew|||
+|gperf|libuv||zlib|glib|||
 |gtest|lua|||go|||
 |gtest|lua|||go|||
 |icu4c|luajit|||gperf|||
 |icu4c|luajit|||gperf|||
 |json-c|nlohmann_json|||gtest|||
 |json-c|nlohmann_json|||gtest|||
@@ -26,10 +26,10 @@
 |libffi|protobuf-c|||libcurl|||
 |libffi|protobuf-c|||libcurl|||
 |libiconv|protobuf-cpp|||libev|||
 |libiconv|protobuf-cpp|||libev|||
 |libjpeg|skia|||libffi|||
 |libjpeg|skia|||libffi|||
-|libmill|sqlite3|||libiconv|||
-|libpng|tbox|||libjpeg|||
-|libsdl|zlib|||libmill|||
-|libtask||||libpng|||
+|libmill|spdlog|||libiconv|||
+|libpng|sqlite3|||libjpeg|||
+|libsdl|tbox|||libmill|||
+|libtask|zlib|||libpng|||
 |libuv||||libsdl|||
 |libuv||||libsdl|||
 |libxml2||||libtask|||
 |libxml2||||libtask|||
 |lua||||libtool|||
 |lua||||libtool|||
@@ -45,18 +45,19 @@
 |protobuf-c||||ncurses|||
 |protobuf-c||||ncurses|||
 |protobuf-cpp||||ninja|||
 |protobuf-cpp||||ninja|||
 |skia||||nlohmann_json|||
 |skia||||nlohmann_json|||
-|sqlite3||||openssl|||
-|tbox||||patch|||
-|util-linux||||pcre|||
-|x264||||pcre2|||
-|x265||||pixman|||
-|xz||||pkg-config|||
-|zlib||||protobuf-c|||
-|||||protobuf-cpp|||
+|spdlog||||openssl|||
+|sqlite3||||patch|||
+|tbox||||pcre|||
+|util-linux||||pcre2|||
+|x264||||pixman|||
+|x265||||pkg-config|||
+|xz||||protobuf-c|||
+|zlib||||protobuf-cpp|||
 |||||protoc|||
 |||||protoc|||
 |||||python|||
 |||||python|||
 |||||python2|||
 |||||python2|||
 |||||skia|||
 |||||skia|||
+|||||spdlog|||
 |||||sqlite3|||
 |||||sqlite3|||
 |||||tbox|||
 |||||tbox|||
 |||||util-linux|||
 |||||util-linux|||

+ 17 - 0
packages/s/spdlog/xmake.lua

@@ -0,0 +1,17 @@
+package("spdlog")
+
+    set_homepage("https://github.com/gabime/spdlog")
+    set_description("Fast C++ logging library.")
+
+    set_urls("https://github.com/gabime/spdlog/archive/v$(version).tar.gz",
+             "https://github.com/gabime/spdlog.git")
+
+    add_versions("1.3.1", "160845266e94db1d4922ef755637f6901266731c4cb3b30b45bf41efa0e6ab70")
+
+    on_install(function (package)
+        os.cp("include", package:installdir())
+    end)
+
+    on_test(function (package)
+        assert(package:has_cxxfuncs("spdlog::info(\"\")", {includes = "spdlog/spdlog.h", configs = {languages = "c++11"}}))
+    end)