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
|
2021-09-10 12:16:23 +08:00
|
|
|
REF 0.9.5.0
|
|
|
|
SHA512 7b28706449f9365ba9750fd39925e7171516a1e3145d123ec69a12486637ae2393ad4c587b056403298dc13c149f0b01a262cbe4852abca42e425d7680c77ee3
|
2018-09-01 05:34:58 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-10 12:16:23 +08:00
|
|
|
vcpkg_cmake_configure(
|
2018-09-01 05:34:58 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-10-13 06:52:23 +08:00
|
|
|
OPTIONS
|
|
|
|
-Dsctp_werror=OFF
|
|
|
|
-Dsctp_build_programs=OFF
|
2018-09-01 05:34:58 +08:00
|
|
|
)
|
|
|
|
|
2021-09-10 12:16:23 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-09-01 05:34:58 +08:00
|
|
|
|
2021-09-10 12:16:23 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-09-01 05:34:58 +08:00
|
|
|
|
2021-09-10 12:16:23 +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()
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|