diff options
| author | Wingkou Loeng <wingkou@outlook.com> | 2020-01-07 02:49:04 +0800 |
|---|---|---|
| committer | dan-shaw <51385773+dan-shaw@users.noreply.github.com> | 2020-01-06 10:49:04 -0800 |
| commit | fe62406f2b9a21694807e3b3e4246f5a1715121e (patch) | |
| tree | e5eb58c4e8901f0d0b8f8434c2bee12f525d8cc6 | |
| parent | 615cb6aa240390f925d446f456dc726e21654e77 (diff) | |
| download | vcpkg-fe62406f2b9a21694807e3b3e4246f5a1715121e.tar.gz vcpkg-fe62406f2b9a21694807e3b3e4246f5a1715121e.zip | |
[libfreenect2] add opengl and opencl features (#9551)
* add opengl, opencl and cuda features for libfreenect2
* remove cuda feature
| -rw-r--r-- | ports/libfreenect2/CONTROL | 11 | ||||
| -rw-r--r-- | ports/libfreenect2/portfile.cmake | 7 |
2 files changed, 17 insertions, 1 deletions
diff --git a/ports/libfreenect2/CONTROL b/ports/libfreenect2/CONTROL index 6734e25cc..b24480c83 100644 --- a/ports/libfreenect2/CONTROL +++ b/ports/libfreenect2/CONTROL @@ -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 diff --git a/ports/libfreenect2/portfile.cmake b/ports/libfreenect2/portfile.cmake index 9ca8867fb..ff1ef220b 100644 --- a/ports/libfreenect2/portfile.cmake +++ b/ports/libfreenect2/portfile.cmake @@ -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() |
