diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/configcat | |
Diffstat (limited to 'vcpkg/ports/configcat')
| -rw-r--r-- | vcpkg/ports/configcat/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/configcat/vcpkg.json | 47 |
2 files changed, 79 insertions, 0 deletions
diff --git a/vcpkg/ports/configcat/portfile.cmake b/vcpkg/ports/configcat/portfile.cmake new file mode 100644 index 0000000..dc0b1bd --- /dev/null +++ b/vcpkg/ports/configcat/portfile.cmake @@ -0,0 +1,32 @@ +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_linkage(ONLY_STATIC_LIBRARY) +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO configcat/cpp-sdk + REF "v${VERSION}" + SHA512 e292608042f695fdded36490f1a6ec7ba956cd400c0d3cfb54bf4199d65cd88a7a7b2ffc10b5d9f346c1f3b916781df14fcbeb3e329c6683a9efab32338b9ac0 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + INVERTED_FEATURES + network CONFIGCAT_USE_EXTERNAL_NETWORK_ADAPTER + sha CONFIGCAT_USE_EXTERNAL_SHA +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCONFIGCAT_BUILD_TESTS=OFF + ${FEATURE_OPTIONS} +) +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/configcat") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/configcat/vcpkg.json b/vcpkg/ports/configcat/vcpkg.json new file mode 100644 index 0000000..fe4a8a1 --- /dev/null +++ b/vcpkg/ports/configcat/vcpkg.json @@ -0,0 +1,47 @@ +{ + "name": "configcat", + "version": "4.0.5", + "description": "ConfigCat SDK for C++ provides easy integration for your application to ConfigCat. ConfigCat is a feature flag and configuration management service that lets you separate feature releases from deployments. Alternative to LaunchDarkly.", + "homepage": "https://configcat.com/", + "license": "MIT", + "dependencies": [ + "nlohmann-json", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "z4kn4fein-semver" + ], + "default-features": [ + "network", + "sha" + ], + "features": { + "network": { + "description": "Use curl for network", + "dependencies": [ + { + "name": "curl", + "default-features": false, + "features": [ + "ssl" + ] + }, + { + "name": "openssl", + "platform": "linux" + } + ] + }, + "sha": { + "description": "Use hash-library for SHA calculations", + "dependencies": [ + "hash-library" + ] + } + } +} |