mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[aws-sdk-cpp] Fix targets for aws-sdk-cpp components (#20222)
* [s2n] Add missing release target * [aws-sdk-cpp] Fix targets
This commit is contained in:
parent
6fd6830d68
commit
2d07df55af
@ -40,26 +40,28 @@ endif()
|
||||
|
||||
set(BUILD_ONLY core)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/compute_build_only.cmake)
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
${EXTRA_ARGS}
|
||||
"-DENABLE_UNITY_BUILD=ON"
|
||||
"-DENABLE_TESTING=OFF"
|
||||
"-DFORCE_SHARED_CRT=${FORCE_SHARED_CRT}"
|
||||
"-DBUILD_ONLY=${BUILD_ONLY}"
|
||||
"-DBUILD_DEPS=OFF"
|
||||
"-DBUILD_SHARED_LIBS=OFF"
|
||||
"-DCMAKE_INSTALL_RPATH=${rpath}"
|
||||
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
foreach(TARGET IN LISTS BUILD_ONLY)
|
||||
message(STATUS "Building ${TARGET}")
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
${EXTRA_ARGS}
|
||||
"-DENABLE_UNITY_BUILD=ON"
|
||||
"-DENABLE_TESTING=OFF"
|
||||
"-DFORCE_SHARED_CRT=${FORCE_SHARED_CRT}"
|
||||
"-DBUILD_ONLY=${TARGET}"
|
||||
"-DBUILD_DEPS=OFF"
|
||||
"-DCMAKE_INSTALL_RPATH=${rpath}"
|
||||
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
||||
vcpkg_copy_pdbs()
|
||||
endforeach()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME "aws-cpp-sdk-${TARGET}" CONFIG_PATH "lib/cmake/aws-cpp-sdk-${TARGET}" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
||||
endforeach()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME "AWSSDK" CONFIG_PATH "lib/cmake/AWSSDK")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(GLOB_RECURSE AWS_TARGETS "${CURRENT_PACKAGES_DIR}/share/*/*-targets-*.cmake")
|
||||
foreach(AWS_TARGET IN LISTS AWS_TARGETS)
|
||||
|
@ -2,7 +2,7 @@
|
||||
"$note": "Automatically generated by generateFeatures.ps1",
|
||||
"name": "aws-sdk-cpp",
|
||||
"version": "1.9.96",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "AWS SDK for C++",
|
||||
"homepage": "https://github.com/aws/aws-sdk-cpp",
|
||||
"supports": "!arm & !uwp",
|
||||
|
@ -8,15 +8,18 @@ vcpkg_from_github(
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(GLOB SHARED_CMAKE_FILES
|
||||
"${CURRENT_PACKAGES_DIR}/debug/lib/s2n"
|
||||
"${CURRENT_PACKAGES_DIR}/lib/s2n"
|
||||
)
|
||||
file(COPY "${SHARED_CMAKE_FILES}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/")
|
||||
|
||||
foreach(FILE ${SHARED_CMAKE_FILES})
|
||||
file(COPY "${FILE}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/")
|
||||
endforeach()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug"
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "s2n",
|
||||
"version": "1.0.17",
|
||||
"port-version": 1,
|
||||
"description": "C99 implementation of the TLS/SSL protocols.",
|
||||
"homepage": "https://github.com/aws/s2n-tls",
|
||||
"supports": "!uwp & !windows",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "1c6b4335305034bea75f07f368e51142abddb789",
|
||||
"version": "1.9.96",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "5989ba8996df75b9195ef2f429191b48602236c9",
|
||||
"version": "1.9.96",
|
||||
|
@ -298,7 +298,7 @@
|
||||
},
|
||||
"aws-sdk-cpp": {
|
||||
"baseline": "1.9.96",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"azmq": {
|
||||
"baseline": "2020-03-03",
|
||||
@ -5846,7 +5846,7 @@
|
||||
},
|
||||
"s2n": {
|
||||
"baseline": "1.0.17",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"safeint": {
|
||||
"baseline": "3.0.26",
|
||||
|
@ -1,9 +1,14 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "8df5dce6a28decc5f853d2efd6d657374709d1b2",
|
||||
"version": "1.0.17",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "10a083844c389053abc2f6ca624f9080712b6b34",
|
||||
"version": "1.0.17",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user