2018-11-15 07:11:41 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-09-01 05:34:58 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sctplab/usrsctp
|
2020-10-13 06:52:23 +08:00
|
|
|
REF 0db969100094422d9ea74a08ae5e5d9a4cfdb06b
|
|
|
|
SHA512 53993d663b6899896409cb4cdbbb6d41a9eccba012b032773708be90c16e3d617b3c3256ea624dc3e984dc7099f69f3b7cd647c11e24abae4b77594e2cd64ef7
|
2018-09-01 05:34:58 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-10-13 06:52:23 +08:00
|
|
|
OPTIONS
|
|
|
|
-Dsctp_werror=OFF
|
|
|
|
-Dsctp_build_programs=OFF
|
2018-09-01 05:34:58 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-11-15 07:11:41 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/lib/usrsctp.dll
|
|
|
|
${CURRENT_PACKAGES_DIR}/lib/usrsctp.dll
|
|
|
|
)
|
2018-09-01 05:34:58 +08:00
|
|
|
|
2018-11-15 07:11:41 +08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/usrsctp/copyright COPYONLY)
|
2018-09-01 05:34:58 +08:00
|
|
|
|
2018-11-15 07:11:41 +08:00
|
|
|
vcpkg_copy_pdbs()
|