early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,31 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e0d192..aedc576 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,7 +90,7 @@ SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
# dependencies
FIND_PACKAGE(PkgConfig) # try find PKGConfig as it will be used if found
-FIND_PACKAGE(LibUSB REQUIRED)
+FIND_PACKAGE(libusb CONFIG REQUIRED)
# Add includes
INCLUDE_DIRECTORIES(
@@ -98,7 +98,7 @@ INCLUDE_DIRECTORIES(
"${MY_DIR}/include/internal"
${PROJECT_BINARY_DIR} # for generated headers
${LIBFREENECT2_THREADING_INCLUDE_DIR}
- ${LibUSB_INCLUDE_DIRS}
+ ${LIBUSB_INCLUDE_DIRS}
)
SET(RESOURCES_INC_FILE "${PROJECT_BINARY_DIR}/resources.inc.h")
@@ -154,7 +154,7 @@ SET(SOURCES
)
SET(LIBRARIES
- ${LibUSB_LIBRARIES}
+ ${LIBUSB_LIBRARIES}
${LIBFREENECT2_THREADING_LIBRARIES}
)

View File

@@ -0,0 +1,22 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aedc576..4f16abc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -165,6 +165,8 @@ SET(LIBFREENECT2_DLLS
SET(HAVE_VideoToolbox "no (Apple only)")
IF(APPLE)
FIND_LIBRARY(VIDEOTOOLBOX_LIBRARY VideoToolbox)
+ FIND_LIBRARY(CF_LIBRARY CoreFoundation)
+ FIND_LIBRARY(IOK_LIBRARY IOKit)
SET(HAVE_VideoToolbox no)
IF(VIDEOTOOLBOX_LIBRARY)
@@ -184,6 +186,8 @@ IF(APPLE)
${COREFOUNDATION_LIBRARY}
${COREMEDIA_LIBRARY}
${COREVIDEO_LIBRARY}
+ ${CF_LIBRARY}
+ ${IOK_LIBRARY}
)
ENDIF(VIDEOTOOLBOX_LIBRARY)
ENDIF(APPLE)

View File

@@ -0,0 +1,40 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO OpenKinect/libfreenect2
REF v0.2.0
SHA512 3525e3f21462cecd3b198f64545786ffddc2cafdfd8146e5a46f0300b83f29f1ad0739618a07ab195c276149d7e2e909f7662e2d379a2880593cac75942b0666
HEAD_REF master
PATCHES
fix-dependency-libusb.patch
fix-macbuild.patch
)
file(READ "${SOURCE_PATH}/cmake_modules/FindLibUSB.cmake" FINDLIBUSB)
string(REPLACE "(WIN32)"
"(WIN32_DISABLE)" FINDLIBUSB "${FINDLIBUSB}")
file(WRITE "${SOURCE_PATH}/cmake_modules/FindLibUSB.cmake" "${FINDLIBUSB}")
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
opengl ENABLE_OPENGL
opencl ENABLE_OPENCL
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DENABLE_CUDA=OFF
-DBUILD_EXAMPLES=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME freenect2 CONFIG_PATH lib/cmake/freenect2)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/GPL2" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig()

38
externals/vcpkg/ports/libfreenect2/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,38 @@
{
"name": "libfreenect2",
"version": "0.2.0",
"port-version": 8,
"description": "Open source drivers for the Kinect for Windows v2 device",
"homepage": "https://github.com/OpenKinect/libfreenect2",
"license": "GPL-2.0-only",
"dependencies": [
"libjpeg-turbo",
"libusb",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"opengl"
],
"features": {
"opencl": {
"description": "OpenCL support for libfreenect2",
"dependencies": [
"opencl"
]
},
"opengl": {
"description": "OpenGL support for libfreenect2",
"dependencies": [
"glfw3",
"opengl"
]
}
}
}