diff options
| author | manuel <manuel@mausz.at> | 2018-04-17 00:15:38 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2018-04-17 00:15:38 +0200 |
| commit | b3d195f0188758a14875a5a2f270e4fd190a679f (patch) | |
| tree | cbe6a2d51afd7be095e29fd612107044cf1f391e /cmake/modules/FindWaylandProtocols.cmake | |
| parent | a51f51db67e3eab80ac2ed28d403a6d77f7acc45 (diff) | |
| download | kodi-pvr-build-b3d195f0188758a14875a5a2f270e4fd190a679f.tar.gz kodi-pvr-build-b3d195f0188758a14875a5a2f270e4fd190a679f.tar.bz2 kodi-pvr-build-b3d195f0188758a14875a5a2f270e4fd190a679f.zip | |
sync with upstream
Diffstat (limited to 'cmake/modules/FindWaylandProtocols.cmake')
| -rw-r--r-- | cmake/modules/FindWaylandProtocols.cmake | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/modules/FindWaylandProtocols.cmake b/cmake/modules/FindWaylandProtocols.cmake new file mode 100644 index 0000000..0b96ff0 --- /dev/null +++ b/cmake/modules/FindWaylandProtocols.cmake | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # FindWaylandProtocols | ||
| 2 | # -------------------- | ||
| 3 | # Find wayland-protocols | ||
| 4 | # | ||
| 5 | # This will will define the following variables:: | ||
| 6 | # | ||
| 7 | # WAYLAND_PROTOCOLS_DIR - directory containing the additional Wayland protocols | ||
| 8 | # from the wayland-protocols package | ||
| 9 | |||
| 10 | pkg_check_modules(PC_WAYLAND_PROTOCOLS wayland-protocols) | ||
| 11 | if(PC_WAYLAND_PROTOCOLS_FOUND) | ||
| 12 | pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) | ||
| 13 | endif() | ||
| 14 | |||
| 15 | # Promote to cache variables so all code can access it | ||
| 16 | set(WAYLAND_PROTOCOLS_DIR ${WAYLAND_PROTOCOLS_DIR} CACHE INTERNAL "") | ||
| 17 | |||
| 18 | include(FindPackageHandleStandardArgs) | ||
| 19 | find_package_handle_standard_args(WaylandProtocols | ||
| 20 | REQUIRED_VARS | ||
| 21 | PC_WAYLAND_PROTOCOLS_FOUND | ||
| 22 | WAYLAND_PROTOCOLS_DIR | ||
| 23 | VERSION_VAR | ||
| 24 | PC_WAYLAND_PROTOCOLS_VERSION) | ||
