aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/aws-sdk-cpp/configure-binary-dir.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/aws-sdk-cpp/configure-binary-dir.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/aws-sdk-cpp/configure-binary-dir.patch')
-rw-r--r--vcpkg/ports/aws-sdk-cpp/configure-binary-dir.patch89
1 files changed, 89 insertions, 0 deletions
diff --git a/vcpkg/ports/aws-sdk-cpp/configure-binary-dir.patch b/vcpkg/ports/aws-sdk-cpp/configure-binary-dir.patch
new file mode 100644
index 0000000..a01a377
--- /dev/null
+++ b/vcpkg/ports/aws-sdk-cpp/configure-binary-dir.patch
@@ -0,0 +1,89 @@
+diff --git a/cmake/initialize_project_version.cmake b/cmake/initialize_project_version.cmake
+index c9b42f603da..894c10f95b8 100644
+--- a/cmake/initialize_project_version.cmake
++++ b/cmake/initialize_project_version.cmake
+@@ -6,9 +6,8 @@ if(GIT_FOUND)
+ endif()
+
+ if(NOT VERSION_STRING)
+- # extract it from the existing generated header file
+- file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h" __SDK_VERSION_LINE LIMIT_COUNT 1 REGEX "AWS_SDK_VERSION_STRING.*[0-9]+\\.[0-9]+\\.[0-9]+" )
+- string( REGEX MATCH "([0-9]+\\.[0-9]+\\.[0-9]+)" VERSION_STRING "${__SDK_VERSION_LINE}" )
++ # read it from the version file
++ file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" VERSION_STRING)
+ endif()
+
+ set(PROJECT_VERSION "${VERSION_STRING}")
+diff --git a/src/aws-cpp-sdk-core/CMakeLists.txt b/src/aws-cpp-sdk-core/CMakeLists.txt
+index c6a0f1c262e..c9ea5e8d70b 100644
+--- a/src/aws-cpp-sdk-core/CMakeLists.txt
++++ b/src/aws-cpp-sdk-core/CMakeLists.txt
+@@ -20,7 +20,7 @@ if(VERSION_STRING)
+ set(AWSSDK_VERSION_PATCH ${AWSSDK_VERSION_PATCH})
+ configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/VersionConfig.h.in"
+- "${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/VersionConfig.h"
++ "${CMAKE_CURRENT_BINARY_DIR}/include/aws/core/VersionConfig.h"
+ NEWLINE_STYLE UNIX)
+ else()
+ message("Not able to compute versioning string, not updating.")
+@@ -38,7 +38,7 @@ else()
+ endif()
+
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/SDKConfig.h.in"
+- "${CMAKE_CURRENT_SOURCE_DIR}/include/aws/core/SDKConfig.h"
++ "${CMAKE_CURRENT_BINARY_DIR}/include/aws/core/SDKConfig.h"
+ NEWLINE_STYLE UNIX)
+
+ file(GLOB AWS_HEADERS "include/aws/core/*.h")
+@@ -94,6 +94,8 @@ file(GLOB SMITHY_IDENTITY_SIGNER_BUILTIN_HEADERS "include/smithy/identity/signer
+ file(GLOB SMITHY_INTERCEPTOR_HEADERS "include/smithy/interceptor/*.h")
+ file(GLOB SMITHY_INTERCEPTOR_IMPL_HEADERS "include/smithy/interceptor/impl/*.h")
+
++file(GLOB AWS_GENERATED_HEADERS "${CMAKE_CURRENT_BINARY_DIR}/include/aws/core/*.h")
++
+ file(GLOB AWS_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp")
+ file(GLOB AWS_TINYXML2_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/source/external/tinyxml2/*.cpp")
+ file(GLOB CJSON_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/source/external/cjson/*.cpp")
+@@ -387,7 +389,7 @@ file(GLOB AWS_NATIVE_SDK_SRC
+
+ # Visual studio project directory structure
+ if(MSVC)
+- source_group("Header Files\\aws\\core" FILES ${AWS_HEADERS})
++ source_group("Header Files\\aws\\core" FILES ${AWS_HEADERS} ${AWS_GENERATED_HEADERS})
+ source_group("Header Files\\aws\\core\\auth" FILES ${AWS_AUTH_HEADERS})
+ source_group("Header Files\\aws\\core\\auth\\signer" FILES ${AWS_AUTH_SIGNER_HEADERS})
+ source_group("Header Files\\aws\\core\\auth\\signer-provider" FILES ${AWS_AUTH_SIGNER_PROVIDER_HEADERS})
+@@ -597,6 +599,7 @@ endif()
+
+ target_include_directories(${PROJECT_NAME} PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
++ $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
+ $<INSTALL_INTERFACE:include>)
+
+ if (EXTERNAL_DEPS_INCLUDE_DIRS)
+@@ -669,7 +672,7 @@ if(SIMPLE_INSTALL)
+ endif()
+ endif()
+
+-install (FILES ${AWS_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/core)
++install (FILES ${AWS_HEADERS} ${AWS_GENERATED_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/core)
+ install (FILES ${AWS_AUTH_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/core/auth)
+ install (FILES ${AWS_AUTH_SIGNER_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/core/auth/signer)
+ install (FILES ${AWS_AUTH_SIGNER_PROVIDER_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/core/auth/signer-provider)
+diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h
+deleted file mode 100644
+index 06609b4b3fe..00000000000
+--- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h
++++ /dev/null
+@@ -1,10 +0,0 @@
+-/**
+- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+- * SPDX-License-Identifier: Apache-2.0.
+- */
+-#pragma once
+-
+-#define AWS_SDK_VERSION_STRING "1.11.665"
+-#define AWS_SDK_VERSION_MAJOR 1
+-#define AWS_SDK_VERSION_MINOR 11
+-#define AWS_SDK_VERSION_PATCH 665