ruki преди 5 години
родител
ревизия
2ef0927dda
променени са 2 файла, в които са добавени 94 реда и са изтрити 50 реда
  1. 57 50
      PKGLIST.md
  2. 37 0
      packages/o/oatpp/xmake.lua

+ 57 - 50
PKGLIST.md

@@ -6,60 +6,67 @@
 |bullet3|bzip2|concurrentqueue|cjson|automake|cjson||
 |bzip2|cairo|cpp-taskflow|concurrentqueue|boost|concurrentqueue||
 |cairo|catch2|doctest|cpp-taskflow|bullet3|cpp-taskflow||
-|catch2|concurrentqueue|gtest|doctest|bzip2|doctest||
-|cjson|cpp-taskflow|nlohmann_json|gtest|cairo|gtest||
-|concurrentqueue|doctest|pcre|json-c|catch2|json-c||
-|cpp-taskflow|expat|pcre2|libcurl|cjson|libjpeg||
-|doctest|fmt|spdlog|libev|cmake|libpng||
-|expat|freeglut|tbox|libffi|concurrentqueue|libuv||
-|ffmpeg|freetype|xz|libjpeg|cpp-taskflow|libxml2||
-|fmt|glew|zlib|libpng|doctest|lua||
-|fontconfig|go||libuv|expat|nlohmann_json||
-|freeglut|gtest||libxml2|ffmpeg|spdlog||
-|freetype|libcurl||nlohmann_json|fmt|tbox||
-|gettext|libjpeg||spdlog|fontconfig|zlib||
-|glew|libpng||tbox|freetype|||
-|glib|libsdl||zlib|gettext|||
-|go|libuv|||glew|||
-|gperf|lua|||glib|||
-|gtest|luajit|||go|||
-|icu4c|nlohmann_json|||gperf|||
-|json-c|pcre|||gtest|||
-|libcurl|pixman|||icu4c|||
-|libev|protobuf-c|||json-c|||
-|libffi|protobuf-cpp|||libcurl|||
-|libiconv|skia|||libev|||
-|libjpeg|spdlog|||libffi|||
-|libmill|sqlite3|||libiconv|||
-|libpng|tbox|||libjpeg|||
-|libsdl|zlib|||libmill|||
-|libtask||||libpng|||
-|libuv||||libsdl|||
-|libxml2||||libtask|||
-|lua||||libtool|||
-|luajit||||libuv|||
+|catch2|concurrentqueue|fmt|doctest|bzip2|doctest||
+|cjson|cpp-taskflow|gtest|fmt|cairo|fmt||
+|concurrentqueue|doctest|inja|gtest|catch2|gtest||
+|cpp-taskflow|expat|libjpeg|inja|cjson|inja||
+|doctest|fmt|nlohmann_json|json-c|cmake|json-c||
+|expat|freeglut|pcre|libcurl|concurrentqueue|libjpeg||
+|ffmpeg|freetype|pcre2|libev|cpp-taskflow|libpng||
+|fmt|glew|spdlog|libffi|doctest|libuv||
+|fontconfig|go|tbox|libjpeg|expat|libxml2||
+|freeglut|gtest|xz|libpng|ffmpeg|lua||
+|freetype|inja|zlib|libuv|fmt|nlohmann_json||
+|gettext|libcurl||libxml2|fontconfig|spdlog||
+|glew|libjpeg||nlohmann_json|freetype|tbox||
+|glib|libpng||spdlog|gettext|zlib||
+|go|libsdl||tbox|glew|||
+|gperf|libtiff||zlib|glib|||
+|gtest|libuv|||go|||
+|icu4c|libwebsockets|||gperf|||
+|inja|lua|||gtest|||
+|json-c|luajit|||icu4c|||
+|libcurl|nana|||inja|||
+|libev|nlohmann_json|||json-c|||
+|libffi|oatpp|||libcurl|||
+|libiconv|pcre|||libev|||
+|libjpeg|pixman|||libffi|||
+|libmill|protobuf-c|||libiconv|||
+|libpng|protobuf-cpp|||libjpeg|||
+|libsdl|raylib|||libmill|||
+|libtask|skia|||libpng|||
+|libtiff|spdlog|||libsdl|||
+|libusb|sqlite3|||libtask|||
+|libuv|tbox|||libtiff|||
+|libwebsockets|zlib|||libtool|||
+|libxml2||||libusb|||
+|lua||||libuv|||
+|luajit||||libwebsockets|||
 |mbedtls||||libxml2|||
 |mysql||||lua|||
-|ncurses||||luajit|||
-|nlohmann_json||||make|||
-|openssl||||mbedtls|||
-|pcre||||meson|||
-|pcre2||||mysql|||
-|pixman||||nasm|||
-|protobuf-c||||ncurses|||
-|protobuf-cpp||||ninja|||
-|skia||||nlohmann_json|||
-|spdlog||||openssl|||
-|sqlite3||||patch|||
-|tbox||||pcre|||
-|util-linux||||pcre2|||
-|x264||||pixman|||
-|x265||||pkg-config|||
-|xz||||protobuf-c|||
-|zlib||||protobuf-cpp|||
-|||||protoc|||
+|nana||||luajit|||
+|ncurses||||make|||
+|nlohmann_json||||mbedtls|||
+|oatpp||||meson|||
+|opencv||||mysql|||
+|openssl||||nasm|||
+|pcre||||ncurses|||
+|pcre2||||ninja|||
+|pixman||||nlohmann_json|||
+|protobuf-c||||oatpp|||
+|protobuf-cpp||||opencv|||
+|skia||||openssl|||
+|spdlog||||patch|||
+|sqlite3||||pcre|||
+|tbox||||pcre2|||
+|util-linux||||pixman|||
+|x264||||pkg-config|||
+|x265||||protobuf-c|||
+|xz||||protobuf-cpp|||
+|zlib||||protoc|||
 |||||python|||
 |||||python2|||
+|||||raylib|||
 |||||skia|||
 |||||spdlog|||
 |||||sqlite3|||

+ 37 - 0
packages/o/oatpp/xmake.lua

@@ -0,0 +1,37 @@
+package("oatpp")
+
+    set_homepage("https://oatpp.io/")
+    set_description("Modern Web Framework for C++. High performance, simple API, cross platform, zero dependency.")
+
+    add_urls("https://github.com/oatpp/oatpp/archive/$(version).tar.gz",
+             "https://github.com/oatpp/oatpp.git")
+
+    add_versions("1.0.0", "9ba7c75e3ada8ec894ec10beae712e775774a835fd3de89d8c34e17740202619")
+
+    add_deps("cmake")
+
+    on_load(function (package)
+        package:add("includedirs", path.join("include", "oatpp-" .. package:version_str(), "oatpp"))
+    end)
+
+    on_install("linux", "macosx", "windows", function (package)
+        local configs = {"-DOATPP_BUILD_TESTS=OFF"}
+        table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
+        import("package.tools.cmake").install(package, configs)
+    end)
+
+    on_test(function (package)
+        assert(package:check_cxxsnippets({test = [[
+            #include "oatpp/encoding/Base64.hpp"
+            void test(int argc, char** argv) {
+                oatpp::String message = "oat++ web framework";
+                oatpp::String messageEncoded = "b2F0Kysgd2ViIGZyYW1ld29yaw==";
+                {
+                    oatpp::String encoded = oatpp::encoding::Base64::encode(message);
+                    OATPP_ASSERT(encoded->equals(messageEncoded.get()));
+                    oatpp::String decoded = oatpp::encoding::Base64::decode(encoded);
+                    OATPP_ASSERT(message->equals(decoded.get()));
+                }
+            }
+        ]]}, {configs = {languages = "c++11"}}))
+    end)