[aws-sdk-cpp] add patch to define USE_IMPORT_EXPORT to fix dynamic build link issue

This commit is contained in:
sdcb 2016-12-01 10:23:35 +08:00
parent 915d99ecb7
commit 76f99eecfc
2 changed files with 16 additions and 0 deletions

View File

@ -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

View 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