aboutsummaryrefslogtreecommitdiff
path: root/ports/openxr-loader/0002-fix-linux-pkgconfig-dependency.patch
diff options
context:
space:
mode:
authorBradley Austin Davis <bdavis@saintandreas.org>2019-07-15 14:42:45 -0700
committerVictor Romero <romerosanchezv@gmail.com>2019-07-15 14:42:44 -0700
commit0c8139dbe8ef08ddf38c7f38e094c3cbc4c8bce9 (patch)
tree99910a893fda43db0d9b88afe976c55eddcd47bb /ports/openxr-loader/0002-fix-linux-pkgconfig-dependency.patch
parent40200c829a7a4636ce75ae355dd47d2e458bca75 (diff)
downloadvcpkg-0c8139dbe8ef08ddf38c7f38e094c3cbc4c8bce9.tar.gz
vcpkg-0c8139dbe8ef08ddf38c7f38e094c3cbc4c8bce9.zip
[openxr-loader] Initial port (#6339)
* [openxr] add initial port * [openxr-loader] Set executable suffix * [openxr-loader] Use correct checks for Windows * [openxr-loader] Add failure messages for unsupported platforms
Diffstat (limited to 'ports/openxr-loader/0002-fix-linux-pkgconfig-dependency.patch')
-rw-r--r--ports/openxr-loader/0002-fix-linux-pkgconfig-dependency.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/ports/openxr-loader/0002-fix-linux-pkgconfig-dependency.patch b/ports/openxr-loader/0002-fix-linux-pkgconfig-dependency.patch
new file mode 100644
index 000000000..3f9cbc328
--- /dev/null
+++ b/ports/openxr-loader/0002-fix-linux-pkgconfig-dependency.patch
@@ -0,0 +1,38 @@
+diff --git a/src/cmake/presentation.cmake b/src/cmake/presentation.cmake
+index 3970546..c2e7bc3 100644
+--- a/src/cmake/presentation.cmake
++++ b/src/cmake/presentation.cmake
+@@ -12,21 +12,17 @@ endif()
+
+ message(STATUS "Using presentation backend: ${PRESENTATION_BACKEND}")
+
+-find_package(PkgConfig REQUIRED)
+
+ if( PRESENTATION_BACKEND MATCHES "xlib" )
+- pkg_search_module(X11 REQUIRED x11)
+- pkg_search_module(XXF86VM REQUIRED xxf86vm)
+- pkg_search_module(XRANDR REQUIRED xrandr)
+-
+ add_definitions( -DSUPPORT_X )
+ add_definitions( -DOS_LINUX_XLIB )
+ set( XLIB_LIBRARIES
+- ${X11_LIBRARIES}
+- ${XXF86VM_LIBRARIES}
+- ${XRANDR_LIBRARIES} )
++ X11
++ Xxf86vm
++ Xrandr)
+
+ elseif( PRESENTATION_BACKEND MATCHES "xcb" )
++ find_package(PkgConfig REQUIRED)
+ # XCB + XCB GLX is limited to OpenGL 2.1
+ # add_definitions( -DOS_LINUX_XCB )
+ # XCB + Xlib GLX 1.3
+@@ -49,6 +45,7 @@ elseif( PRESENTATION_BACKEND MATCHES "xcb" )
+ ${X11_LIBRARIES} )
+
+ elseif( PRESENTATION_BACKEND MATCHES "wayland" )
++ find_package(PkgConfig REQUIRED)
+ pkg_search_module(WAYLAND_CLIENT REQUIRED wayland-client)
+ pkg_search_module(WAYLAND_EGL REQUIRED wayland-egl)
+ pkg_search_module(WAYLAND_SCANNER REQUIRED wayland-scanner)