diff --git a/ports/lightlib/portfile.cmake b/ports/lightlib/portfile.cmake new file mode 100644 index 00000000000000..863ebf4516f86f --- /dev/null +++ b/ports/lightlib/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO lev2p1/lightlib + REF v0.1.4 + SHA512 f707dddc26321c2aedf38acf17d2609c84d9c6151b690eefcee7d7dd94318fb781f4dc2a7f27743764fb5343fd060f11b1c8619cb1cc2e1e968367f60cb7771e + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/Light" + OPTIONS + -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} +) + +vcpkg_cmake_install() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/bin" + "${CURRENT_PACKAGES_DIR}/debug/bin" + ) +endif() + +set(VCPKG_POLICY_DLLS_WITHOUT_EXPORTS enabled) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") \ No newline at end of file diff --git a/ports/lightlib/vcpkg.json b/ports/lightlib/vcpkg.json new file mode 100644 index 00000000000000..e7f4ebaad9c114 --- /dev/null +++ b/ports/lightlib/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "lightlib", + "version": "0.1.4", + "description": "Modern C++ MVC framework designed for creating high-performance asynchronous APIs. The framework combines the power of Boost.Asio with modern C++20/23 features", + "homepage": "https://github.com/lev2p1/lightlib", + "license": "LGPL-3.0-or-later", + "supports": "x64 & (windows | linux | osx)", + "dependencies": [ + "boost", + "fmt", + "hiredis", + "jwt-cpp", + "libpq", + "nlohmann-json", + "picojson", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index d94ee7313eff98..38d1786a652e3f 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6152,6 +6152,10 @@ "baseline": "4.5.0", "port-version": 0 }, + "lightlib": { + "baseline": "0.1.4", + "port-version": 0 + }, "lightningscanner": { "baseline": "1.0.2", "port-version": 0 diff --git a/versions/l-/lightlib.json b/versions/l-/lightlib.json new file mode 100644 index 00000000000000..af14fa45a5e3a4 --- /dev/null +++ b/versions/l-/lightlib.json @@ -0,0 +1,14 @@ +{ + "versions": [ + { + "git-tree": "e0d9a57b0ba1594789bb6bc6ac991dd98d3b6faa", + "version": "0.1.4", + "port-version": 0 + }, + { + "git-tree": "a1f31e6506c7d366ef06d2c45018dd77ef9e336e", + "version": "0.1.3", + "port-version": 0 + } + ] +}