vcpkg/ports/liblsl/portfile.cmake
chausner 96bc551b19
[liblsl] Update to 1.16.0 (#21284)
* Start adapting liblsl for version 1.15.2

* Use vcpkg Boost package

* Minor updates

* Switch to master branch

* Update git-tree hash

* Fix hash

* Update git-tree hash

* Add missing boost dependencies

* Update git-tree hash

* Try to remove entries from ci.baseline.txt

* Use asio package from vcpkg

* Update git-tree hash

* Update version to upcoming 1.16.0

* Set liblsl license

* Update CI baseline

* Remove obsolete version

* Update reference

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
2022-03-29 17:19:19 -07:00

33 lines
1.3 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sccn/liblsl
REF v1.16.0 # NOTE: when updating version, also change it in the parameter to vcpkg_cmake_configure
SHA512 bfd54c6cca944ed33622da74dc1417ab75b542002c02c83bb86c917fd5968936c4b56ec734bd6d757e9fa67364f9dc85fd15ed28697ed410305df4928cf6790b
HEAD_REF master
PATCHES
use-find-package-asio.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LSL_BUILD_STATIC)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DLSL_BUILD_STATIC=${LSL_BUILD_STATIC}
-DLSL_BUNDLED_BOOST=OFF # we use the boost vcpkg packages instead
-DLSL_BUNDLED_PUGIXML=OFF # we use the pugixml vcpkg package instead
-Dlslgitrevision=v1.16.0
-Dlslgitbranch=master
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_copy_tools(TOOL_NAMES lslver AUTO_CLEAN)
vcpkg_cmake_config_fixup(PACKAGE_NAME LSL CONFIG_PATH lib/cmake/LSL)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
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)