Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libfreenect2] add opengl and opencl features #9551

Merged
merged 2 commits into from
Jan 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion ports/libfreenect2/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
Source: libfreenect2
Version: 0.2.0-3
Version: 0.2.0-4
Build-Depends: libusb, libjpeg-turbo
Homepage: https://github.com/OpenKinect/libfreenect2
Description: Open source drivers for the Kinect for Windows v2 device
Default-Features: opengl

Feature: opengl
Description: OpenGL support for libfreenect2
Build-Depends: opengl, glfw3

Feature: opencl
Description: OpenCL support for libfreenect2
Build-Depends: opencl
7 changes: 7 additions & 0 deletions ports/libfreenect2/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ string(REPLACE "(WIN32)"
"(WIN32_DISABLE)" EXAMPLECMAKE "${EXAMPLECMAKE}")
file(WRITE ${SOURCE_PATH}/examples/CMakeLists.txt "${EXAMPLECMAKE}")

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
opengl ENABLE_OPENGL
opencl ENABLE_OPENCL
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DENABLE_CUDA=OFF
# FEATURES
${FEATURE_OPTIONS}
)

vcpkg_install_cmake()
Expand Down