early-access version 2853
This commit is contained in:
20
externals/vcpkg/ports/aws-c-common/disable-internal-crt-option.patch
vendored
Executable file
20
externals/vcpkg/ports/aws-c-common/disable-internal-crt-option.patch
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
diff --git a/cmake/AwsCFlags.cmake b/cmake/AwsCFlags.cmake
|
||||
index 249b7d5..41a31e2 100644
|
||||
--- a/cmake/AwsCFlags.cmake
|
||||
+++ b/cmake/AwsCFlags.cmake
|
||||
@@ -38,15 +38,6 @@ function(aws_set_common_properties target)
|
||||
list(APPEND AWS_C_FLAGS /DAWS_SUPPORT_WIN7=1)
|
||||
endif()
|
||||
|
||||
- string(TOUPPER "${CMAKE_BUILD_TYPE}" _CMAKE_BUILD_TYPE)
|
||||
- if(STATIC_CRT)
|
||||
- string(REPLACE "/MD" "/MT" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}")
|
||||
- else()
|
||||
- string(REPLACE "/MT" "/MD" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}")
|
||||
- endif()
|
||||
- string(REPLACE " " ";" _FLAGS "${_FLAGS}")
|
||||
- list(APPEND AWS_C_FLAGS "${_FLAGS}")
|
||||
-
|
||||
else()
|
||||
list(APPEND AWS_C_FLAGS -Wall -Wstrict-prototypes)
|
||||
|
||||
28
externals/vcpkg/ports/aws-c-common/fix-cmake-target-path.patch
vendored
Executable file
28
externals/vcpkg/ports/aws-c-common/fix-cmake-target-path.patch
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9b01f56..3cc541d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -239,7 +239,7 @@ else()
|
||||
endif()
|
||||
|
||||
install(EXPORT "${PROJECT_NAME}-targets"
|
||||
- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}"
|
||||
+ DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake"
|
||||
NAMESPACE AWS::
|
||||
COMPONENT Development)
|
||||
|
||||
diff --git a/cmake/aws-c-common-config.cmake b/cmake/aws-c-common-config.cmake
|
||||
index e495210..b7676c2 100644
|
||||
--- a/cmake/aws-c-common-config.cmake
|
||||
+++ b/cmake/aws-c-common-config.cmake
|
||||
@@ -4,9 +4,5 @@ if(WIN32 OR UNIX OR APPLE)
|
||||
find_package(Threads REQUIRED)
|
||||
endif()
|
||||
|
||||
-if (BUILD_SHARED_LIBS)
|
||||
- include(${CMAKE_CURRENT_LIST_DIR}/shared/@PROJECT_NAME@-targets.cmake)
|
||||
-else()
|
||||
- include(${CMAKE_CURRENT_LIST_DIR}/static/@PROJECT_NAME@-targets.cmake)
|
||||
-endif()
|
||||
+include(${CMAKE_CURRENT_LIST_DIR}/@CMAKE_PROJECT_NAME@-targets.cmake)
|
||||
|
||||
34
externals/vcpkg/ports/aws-c-common/portfile.cmake
vendored
Executable file
34
externals/vcpkg/ports/aws-c-common/portfile.cmake
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO awslabs/aws-c-common
|
||||
REF fdd4a10243903260f412f587cc748f0ac79629b4 # v0.6.9
|
||||
SHA512 969c9b85af58fc144480f6548e78126cf3fe758951ecbdffb579163b9a505a7ea58c32430390102ff620e828bf241dd24c0167f205306949d36dcf4504efa09a
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable-internal-crt-option.patch # Disable internal crt option because vcpkg contains crt processing flow
|
||||
fix-cmake-target-path.patch # Shared libraries and static libraries are not built at the same time
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_TESTING=FALSE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-common/cmake)
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-common"
|
||||
"${CURRENT_PACKAGES_DIR}/lib/aws-c-common"
|
||||
)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
19
externals/vcpkg/ports/aws-c-common/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/aws-c-common/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "aws-c-common",
|
||||
"version": "0.6.9",
|
||||
"port-version": 2,
|
||||
"description": "AWS common library for C",
|
||||
"homepage": "https://github.com/awslabs/aws-c-common",
|
||||
"supports": "!(windows & arm) & !uwp",
|
||||
"dependencies": [
|
||||
"openssl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user