mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 03:27:12 +01:00
[aws-sdk-cpp] add patch to define USE_IMPORT_EXPORT to fix dynamic build link issue
This commit is contained in:
parent
915d99ecb7
commit
76f99eecfc
@ -41,6 +41,12 @@ if(${VCPKG_LIBRARY_LINKAGE} STREQUAL dynamic)
|
|||||||
file(COPY ${LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
file(COPY ${LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||||
file(COPY ${DEBUG_LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
file(COPY ${DEBUG_LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||||
file(REMOVE ${LIB_FILES} ${DEBUG_LIB_FILES})
|
file(REMOVE ${LIB_FILES} ${DEBUG_LIB_FILES})
|
||||||
|
|
||||||
|
vcpkg_apply_patches( #define USE_IMPORT_EXPORT in SDKConfig.h
|
||||||
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
|
PATCHES
|
||||||
|
${CURRENT_PACKAGES_DIR}/include/shared_define.patch
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
|
10
ports/aws-sdk-cpp/shared_define.patch
Normal file
10
ports/aws-sdk-cpp/shared_define.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
diff --git a/aws/core/SDKConfig.h b/aws/core/SDKConfig.h
|
||||||
|
index 130c9dd..66b2630 100644
|
||||||
|
--- a/aws/core/SDKConfig.h
|
||||||
|
+++ b/aws/core/SDKConfig.h
|
||||||
|
@@ -17,3 +17,4 @@
|
||||||
|
|
||||||
|
#define JSON_USE_EXCEPTION 0
|
||||||
|
|
||||||
|
+#define USE_IMPORT_EXPORT
|
||||||
|
\ No newline at end of file
|
Loading…
x
Reference in New Issue
Block a user