diff options
| author | Brad Anderson <eco@gnuk.net> | 2017-05-17 18:17:40 -0600 |
|---|---|---|
| committer | Brad Anderson <eco@gnuk.net> | 2017-05-17 18:20:06 -0600 |
| commit | ed0ed7931461a9b76f869c9a152c042897ecaf77 (patch) | |
| tree | a47189eb69dcb7c0ea4d723b3091854b74bbc7f5 | |
| parent | e215291013e4df572740d1ba3569417ca8f553d6 (diff) | |
| download | vcpkg-ed0ed7931461a9b76f869c9a152c042897ecaf77.tar.gz vcpkg-ed0ed7931461a9b76f869c9a152c042897ecaf77.zip | |
[expat] no dllimport declspec for static builds
| -rw-r--r-- | ports/expat/CONTROL | 4 | ||||
| -rw-r--r-- | ports/expat/portfile.cmake | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/ports/expat/CONTROL b/ports/expat/CONTROL index 86d446529..5987991c8 100644 --- a/ports/expat/CONTROL +++ b/ports/expat/CONTROL @@ -1,3 +1,3 @@ Source: expat -Version: 2.1.1 -Description: XML parser library written in C
\ No newline at end of file +Version: 2.1.1-1 +Description: XML parser library written in C diff --git a/ports/expat/portfile.cmake b/ports/expat/portfile.cmake index 37180d97b..a347ac2cb 100644 --- a/ports/expat/portfile.cmake +++ b/ports/expat/portfile.cmake @@ -27,4 +27,10 @@ vcpkg_install_cmake() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig) file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/expat RENAME copyright) -vcpkg_copy_pdbs()
\ No newline at end of file +vcpkg_copy_pdbs() + +file(READ ${CURRENT_PACKAGES_DIR}/include/expat_external.h EXPAT_EXTERNAL_H) +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + string(REPLACE "!defined(XML_STATIC)" "/* vcpkg static build !defined(XML_STATIC) */ 0" EXPAT_EXTERNAL_H "${EXPAT_EXTERNAL_H}") +endif() +file(WRITE ${CURRENT_PACKAGES_DIR}/include/expat_external.h "${EXPAT_EXTERNAL_H}") |
