mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
fix librsync port for static linkage (#15281)
Co-authored-by: Vladimir Zryachih <v.zryachih@xsolla.com>
This commit is contained in:
parent
3ddbba7ab6
commit
7019243b24
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user