early-access version 2853
This commit is contained in:
32
externals/vcpkg/ports/liblsl/portfile.cmake
vendored
Executable file
32
externals/vcpkg/ports/liblsl/portfile.cmake
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
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)
|
||||
15
externals/vcpkg/ports/liblsl/use-find-package-asio.patch
vendored
Executable file
15
externals/vcpkg/ports/liblsl/use-find-package-asio.patch
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b47cb7f8..bd12f519 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -203,8 +203,9 @@ target_include_directories(lslobj
|
||||
target_include_directories(lslobj
|
||||
SYSTEM PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/thirdparty/loguru>
|
||||
- $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/thirdparty/asio>
|
||||
)
|
||||
+find_package(asio CONFIG REQUIRED)
|
||||
+target_link_libraries(lslobj PUBLIC asio::asio)
|
||||
target_compile_definitions(lslobj PRIVATE
|
||||
LIBLSL_EXPORTS
|
||||
LOGURU_DEBUG_LOGGING=$<BOOL:${LSL_DEBUGLOG}>
|
||||
32
externals/vcpkg/ports/liblsl/vcpkg.json
vendored
Executable file
32
externals/vcpkg/ports/liblsl/vcpkg.json
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "liblsl",
|
||||
"version": "1.16.0",
|
||||
"description": "C++ lsl library for multi-modal time-synched data transmission over the local network",
|
||||
"homepage": "https://github.com/sccn/liblsl",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
"asio",
|
||||
"boost-atomic",
|
||||
"boost-bind",
|
||||
"boost-chrono",
|
||||
"boost-config",
|
||||
"boost-endian",
|
||||
"boost-functional",
|
||||
"boost-integer",
|
||||
"boost-lexical-cast",
|
||||
"boost-math",
|
||||
"boost-serialization",
|
||||
"boost-smart-ptr",
|
||||
"boost-thread",
|
||||
"boost-uuid",
|
||||
"pugixml",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user