fix librsync port for static linkage (#15281)

Co-authored-by: Vladimir Zryachih <v.zryachih@xsolla.com>
This commit is contained in:
Vladimir Zryachih 2020-12-30 04:59:03 +05:00 committed by GitHub
parent 3ddbba7ab6
commit 7019243b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Source: librsync
Version: 2020-09-16
Port-Version: 1
Description: librsync is a library for calculating and applying network deltas, with an interface designed to ease integration into diverse network applications.
Homepage: http://librsync.sourcefrog.net/
Supports: !uwp

View File

@ -33,6 +33,13 @@ if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/lib/rsync.dll)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/rsync.dll ${CURRENT_PACKAGES_DIR}/debug/bin/rsync.dll)
endif()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/librsync_export.h
"# ifdef LIBRSYNC_STATIC_DEFINE"
"# if 1 /* LIBRSYNC_STATIC_DEFINE */"
)
endif()
file(INSTALL
${SOURCE_PATH}/COPYING
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright