2019-02-23 02:58:17 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sccn/liblsl
|
2022-03-30 08:19:19 +08:00
|
|
|
REF v1.16.0 # NOTE: when updating version, also change it in the parameter to vcpkg_cmake_configure
|
|
|
|
SHA512 bfd54c6cca944ed33622da74dc1417ab75b542002c02c83bb86c917fd5968936c4b56ec734bd6d757e9fa67364f9dc85fd15ed28697ed410305df4928cf6790b
|
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
|
2022-03-30 08:19:19 +08:00
|
|
|
-Dlslgitrevision=v1.16.0
|
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)
|