diff options
| author | sdcb <sdflysha@qq.com> | 2016-12-01 10:23:35 +0800 |
|---|---|---|
| committer | sdcb <sdflysha@qq.com> | 2016-12-01 10:23:35 +0800 |
| commit | 76f99eecfce01ef1ab4262f179819eb250b8d56e (patch) | |
| tree | 4a99afb0c86ba22c24199841105c81acbaed6f1f | |
| parent | 915d99ecb751c3607adac689e7353f59d30f13f6 (diff) | |
| download | vcpkg-76f99eecfce01ef1ab4262f179819eb250b8d56e.tar.gz vcpkg-76f99eecfce01ef1ab4262f179819eb250b8d56e.zip | |
[aws-sdk-cpp] add patch to define USE_IMPORT_EXPORT to fix dynamic build link issue
| -rw-r--r-- | ports/aws-sdk-cpp/portfile.cmake | 6 | ||||
| -rw-r--r-- | ports/aws-sdk-cpp/shared_define.patch | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ports/aws-sdk-cpp/portfile.cmake b/ports/aws-sdk-cpp/portfile.cmake index f012719a8..5ff1ba6b7 100644 --- a/ports/aws-sdk-cpp/portfile.cmake +++ b/ports/aws-sdk-cpp/portfile.cmake @@ -41,6 +41,12 @@ if(${VCPKG_LIBRARY_LINKAGE} STREQUAL dynamic) file(COPY ${LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/lib) file(COPY ${DEBUG_LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) 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() # Handle copyright diff --git a/ports/aws-sdk-cpp/shared_define.patch b/ports/aws-sdk-cpp/shared_define.patch new file mode 100644 index 000000000..96657b33e --- /dev/null +++ b/ports/aws-sdk-cpp/shared_define.patch @@ -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 |
