2019-02-23 02:58:17 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sccn/liblsl
|
2023-02-15 01:38:09 +08:00
|
|
|
REF v${VERSION}
|
2023-05-31 03:04:08 +08:00
|
|
|
SHA512 141f364034a7156caf9ffafbb2f43cc9a932116a3ef1c1b76822649996d6b99b3017b18d91d9c25a9cd718419c5c3b037fa97b2845540bda195f55dd9de27ab1
|
2019-02-23 02:58:17 +08:00
|
|
|
HEAD_REF master
|
2022-03-30 08:19:19 +08:00
|
|
|
PATCHES
|
|
|
|
use-find-package-asio.patch
|
2019-02-23 02:58:17 +08:00
|
|
|
)
|
|
|
|
|
2022-03-30 08:19:19 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LSL_BUILD_STATIC)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-03-11 04:09:27 +08:00
|
|
|
OPTIONS
|
2022-03-30 08:19:19 +08:00
|
|
|
-DLSL_BUILD_STATIC=${LSL_BUILD_STATIC}
|
|
|
|
-DLSL_BUNDLED_BOOST=OFF # we use the boost vcpkg packages instead
|
2021-03-11 04:09:27 +08:00
|
|
|
-DLSL_BUNDLED_PUGIXML=OFF # we use the pugixml vcpkg package instead
|
2023-02-15 01:38:09 +08:00
|
|
|
-Dlslgitrevision=v${VERSION}
|
2021-03-11 04:09:27 +08:00
|
|
|
-Dlslgitbranch=master
|
2019-02-23 02:58:17 +08:00
|
|
|
)
|
|
|
|
|
2022-03-30 08:19:19 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-02-23 02:58:17 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-03-11 04:09:27 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES lslver AUTO_CLEAN)
|
2022-03-30 08:19:19 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME LSL CONFIG_PATH lib/cmake/LSL)
|
2019-08-28 05:09:47 +08:00
|
|
|
|
2021-03-11 04:09:27 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-08-28 21:20:52 +08:00
|
|
|
|
2021-03-11 04:09:27 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|