-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[liblsl] Add port for sccn/liblsl (#5410)
- Loading branch information
1 parent
2140d3c
commit 4db5f02
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Source: liblsl | ||
Version: 1.13.0-b4 | ||
Description: C++ lsl library for multi-modal time-synched data transmission over the local network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 5832a0e6..497dacd1 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -170,7 +170,7 @@ endif() | ||
install(TARGETS lsl | ||
COMPONENT liblsl | ||
EXPORT "${PROJECT_NAME}Config" | ||
- RUNTIME DESTINATION ${LSLPREFIX}lib | ||
+ RUNTIME DESTINATION ${LSLPREFIX}bin | ||
LIBRARY DESTINATION ${LSLPREFIX}lib | ||
INCLUDES DESTINATION ${LSLPREFIX}include | ||
ARCHIVE DESTINATION ${LSLPREFIX}lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 73e4a7a0..0f8e19f4 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -106,26 +106,6 @@ if(LSL_NO_FANCY_LIBNAME) | ||
set(CMAKE_DEBUG_POSTFIX "") | ||
endif() | ||
|
||
-# try to find out which revision is currently checked out | ||
-find_package(Git) | ||
-if(GIT_FOUND) | ||
- execute_process( | ||
- COMMAND ${GIT_EXECUTABLE} describe --tags HEAD | ||
- WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}" | ||
- OUTPUT_VARIABLE lslgitrevision | ||
- OUTPUT_STRIP_TRAILING_WHITESPACE | ||
- ) | ||
- execute_process( | ||
- COMMAND ${GIT_EXECUTABLE} rev-parse --symbolic-full-name --abbrev-ref @ | ||
- WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}" | ||
- OUTPUT_VARIABLE lslgitbranch | ||
- OUTPUT_STRIP_TRAILING_WHITESPACE | ||
- ) | ||
- message(STATUS "Git version information: ${lslgitbranch}/${lslgitrevision}") | ||
-else() | ||
- set(lslgitrevision "unknown") | ||
- set(lslgitbranch "unknown") | ||
-endif() | ||
set(LSL_VERSION_INFO "\"git:${lslgitrevision}/branch:${lslgitbranch}/build:${CMAKE_BUILD_TYPE}/compiler:${CMAKE_CXX_COMPILER_ID}-${CMAKE_CXX_COMPILER_VERSION}/boost:\" BOOST_LIB_VERSION") | ||
set_source_files_properties("src/lsl_freefuncs_c.cpp" PROPERTIES COMPILE_DEFINITIONS LSL_LIBRARY_INFO_STR=${LSL_VERSION_INFO}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
include(vcpkg_common_functions) | ||
|
||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO sccn/liblsl | ||
REF v1.13.0-b4 # NOTE: when updating version, also change it in the parameter to vcpkg_configure_cmake | ||
SHA512 19bc587afcff315385e7bab1f88cf4edd315acfda61a630b23ffe4c59bc0f5aa570f0a979071f2b60009bb4d4b8ce08c98c414dc5b88042556b2501f4b8dcb79 | ||
HEAD_REF master | ||
PATCHES hardcode-version.patch fix-runtime-destination.patch | ||
) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS | ||
-DLSL_BUILD_STATIC=OFF | ||
-DLSL_UNIXFOLDERS=ON | ||
-DLSL_NO_FANCY_LIBNAME=ON | ||
-Dlslgitrevision="v1.13.0-b4" | ||
-Dlslgitbranch="master" | ||
) | ||
|
||
vcpkg_install_cmake() | ||
vcpkg_copy_pdbs() | ||
|
||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) | ||
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) |