mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 15:32:47 +08:00
[launch-darkly-server] Add new port (#21262)
* [2.4.3] Add launch-darkly-server port * Review portfile * Skip database tests.
This commit is contained in:
parent
69c913f7c2
commit
2a9046de13
33
ports/launch-darkly-server/portfile.cmake
Normal file
33
ports/launch-darkly-server/portfile.cmake
Normal file
@ -0,0 +1,33 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO launchdarkly/c-server-sdk
|
||||
REF 0d9db81862e1b17426da9b433a19376dd6458937 # 2.4.3
|
||||
SHA512 1bbafd212b0a271909a03319954ee2c92a3dde713fe7f9e0fdd79a5f011f0775701060b66ae9b3a4efad59376241b893d4b3d6679743c41e7657c355c7e3df5c
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
"-DBUILD_TESTING=OFF"
|
||||
"-DSKIP_DATABASE_TESTS=OFF"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/ldserverapi.dll" "${CURRENT_PACKAGES_DIR}/bin/ldserverapi.dll")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/ldserverapi.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/ldserverapi.dll")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
19
ports/launch-darkly-server/vcpkg.json
Normal file
19
ports/launch-darkly-server/vcpkg.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "launch-darkly-server",
|
||||
"version": "2.4.3",
|
||||
"description": "LaunchDarkly server-side SDK for C/C++",
|
||||
"homepage": "https://github.com/launchdarkly/c-server-sdk",
|
||||
"supports": "!uwp & !arm",
|
||||
"dependencies": [
|
||||
"curl",
|
||||
"pcre",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -3236,6 +3236,10 @@
|
||||
"baseline": "3.4.3",
|
||||
"port-version": 1
|
||||
},
|
||||
"launch-darkly-server": {
|
||||
"baseline": "2.4.3",
|
||||
"port-version": 0
|
||||
},
|
||||
"lazy-importer": {
|
||||
"baseline": "2021-10-23",
|
||||
"port-version": 0
|
||||
|
9
versions/l-/launch-darkly-server.json
Normal file
9
versions/l-/launch-darkly-server.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "79ea5536dae8c4031640373d54bdef7d0e746483",
|
||||
"version": "2.4.3",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user