2019-02-23 02:58:17 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2019-08-28 05:09:47 +08:00
|
|
|
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
2019-02-23 02:58:17 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sccn/liblsl
|
2019-08-28 05:09:47 +08:00
|
|
|
REF 1.13.0-b11 # NOTE: when updating version, also change it in the parameter to vcpkg_configure_cmake
|
|
|
|
SHA512 212f28070b8239dc176d2e35bf4091896babbf7688e4cbe1c2bb0c3788f317ce2a80f92d4b008c6e577b01a09e8faf65228d396ff13e9ade0c1ffdc5e08cb9e5
|
2019-02-23 02:58:17 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DLSL_BUILD_STATIC=OFF
|
|
|
|
-DLSL_UNIXFOLDERS=ON
|
|
|
|
-DLSL_NO_FANCY_LIBNAME=ON
|
2019-08-28 05:09:47 +08:00
|
|
|
-Dlslgitrevision="1.13.0-b11"
|
2019-02-23 02:58:17 +08:00
|
|
|
-Dlslgitbranch="master"
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2019-08-28 05:09:47 +08:00
|
|
|
|
2019-08-29 03:00:48 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2019-08-28 21:20:52 +08:00
|
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/lslver.exe)
|
|
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/lslver/)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/lslver.exe ${CURRENT_PACKAGES_DIR}/tools/lslver/lslver.exe)
|
|
|
|
endif()
|
|
|
|
|
2019-02-23 02:58:17 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/liblsl RENAME copyright)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/liblsl)
|