2019-03-26 04:45:20 +08:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
ARCHIVE
|
2019-03-26 14:58:06 +08:00
|
|
|
URLS "https://nice.freedesktop.org/releases/libnice-0.1.15.tar.gz"
|
|
|
|
FILENAME "libnice-0.1.15.tar.gz"
|
|
|
|
SHA512 60a8bcca06c0ab300dfabbf13e45aeac2085d553c420c5cc4d2fdeb46b449b2b9c9aee8015b0662c16bd1cecf5a49824b7e24951a8a0b66a87074cb00a619c0c
|
2017-02-13 11:35:12 +08:00
|
|
|
)
|
2019-03-26 04:45:20 +08:00
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
)
|
2017-02-13 11:35:12 +08:00
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2017-02-13 11:45:28 +08:00
|
|
|
|
2017-02-13 11:35:12 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2017-02-13 11:35:12 +08:00
|
|
|
OPTIONS_RELEASE -DOPTIMIZE=1
|
|
|
|
OPTIONS_DEBUG -DDEBUGGABLE=1
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2017-02-13 11:45:28 +08:00
|
|
|
|
2017-02-13 11:35:12 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-05-20 05:47:19 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
file(COPY ${SOURCE_PATH}/COPYING.LGPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
file(COPY ${SOURCE_PATH}/COPYING.MPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|