aboutsummaryrefslogtreecommitdiff
path: root/CMake/FindWayland.cmake
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-07-11 00:20:31 +1200
committerScott Anderson <ascent12@hotmail.com>2017-07-11 00:28:56 +1200
commit924bf0f669cde20b414cd9f12e72750ca5fdbbaf (patch)
treeeedb833983f05b26f09236c7a9bd74d908d3a354 /CMake/FindWayland.cmake
parent8189c64d7f07a756abf5a6189719f02b2f1af967 (diff)
Changed build system to meson
Diffstat (limited to 'CMake/FindWayland.cmake')
-rw-r--r--CMake/FindWayland.cmake69
1 files changed, 0 insertions, 69 deletions
diff --git a/CMake/FindWayland.cmake b/CMake/FindWayland.cmake
deleted file mode 100644
index 465d2665..00000000
--- a/CMake/FindWayland.cmake
+++ /dev/null
@@ -1,69 +0,0 @@
-#.rst:
-# FindWayland
-# -----------
-#
-# Find Wayland installation
-#
-# Try to find Wayland. The following values are defined
-#
-# ::
-#
-# WAYLAND_FOUND - True if Wayland is found
-# WAYLAND_LIBRARIES - Link these to use Wayland
-# WAYLAND_INCLUDE_DIRS - Include directories for Wayland
-# WAYLAND_DEFINITIONS - Compiler flags for using Wayland
-#
-# and also the following more fine grained variables:
-#
-# ::
-#
-# WAYLAND_CLIENT_FOUND, WAYLAND_CLIENT_INCLUDE_DIRS, WAYLAND_CLIENT_LIBRARIES
-# WAYLAND_SERVER_FOUND, WAYLAND_SERVER_INCLUDE_DIRS, WAYLAND_SERVER_LIBRARIES
-# WAYLAND_EGL_FOUND, WAYLAND_EGL_INCLUDE_DIRS, WAYLAND_EGL_LIBRARIES
-#
-#=============================================================================
-# Copyright (c) 2015 Jari Vetoniemi
-# 2013 Martin Gräßlin <mgraesslin@kde.org>
-#
-# Distributed under the OSI-approved BSD License (the "License");
-#
-# This software is distributed WITHOUT ANY WARRANTY; without even the
-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-# See the License for more information.
-#=============================================================================
-
-include(FeatureSummary)
-set_package_properties(Wayland PROPERTIES
- URL "http://wayland.freedesktop.org/"
- DESCRIPTION "Protocol for implementing compositors")
-
-find_package(PkgConfig)
-pkg_check_modules(PC_WAYLAND QUIET wayland-client>=1.7 wayland-server>=1.7 wayland-egl)
-
-find_library(WAYLAND_CLIENT_LIBRARIES NAMES wayland-client HINTS ${PC_WAYLAND_LIBRARY_DIRS})
-find_library(WAYLAND_SERVER_LIBRARIES NAMES wayland-server HINTS ${PC_WAYLAND_LIBRARY_DIRS})
-find_library(WAYLAND_EGL_LIBRARIES NAMES wayland-egl HINTS ${PC_WAYLAND_LIBRARY_DIRS})
-
-find_path(WAYLAND_CLIENT_INCLUDE_DIRS NAMES wayland-client.h HINTS ${PC_WAYLAND_INCLUDE_DIRS})
-find_path(WAYLAND_SERVER_INCLUDE_DIRS NAMES wayland-server.h HINTS ${PC_WAYLAND_INCLUDE_DIRS})
-find_path(WAYLAND_EGL_INCLUDE_DIRS NAMES wayland-egl.h HINTS ${PC_WAYLAND_INCLUDE_DIRS})
-
-set(WAYLAND_INCLUDE_DIRS ${WAYLAND_CLIENT_INCLUDE_DIRS} ${WAYLAND_SERVER_INCLUDE_DIRS} ${WAYLAND_EGL_INCLUDE_DIRS})
-set(WAYLAND_LIBRARIES ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_SERVER_LIBRARIES} ${WAYLAND_EGL_LIBRARIES})
-set(WAYLAND_DEFINITIONS ${PC_WAYLAND_CFLAGS})
-
-list(REMOVE_DUPLICATES WAYLAND_INCLUDE_DIRS)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(WAYLAND_CLIENT DEFAULT_MSG WAYLAND_CLIENT_LIBRARIES WAYLAND_CLIENT_INCLUDE_DIRS)
-find_package_handle_standard_args(WAYLAND_SERVER DEFAULT_MSG WAYLAND_SERVER_LIBRARIES WAYLAND_SERVER_INCLUDE_DIRS)
-find_package_handle_standard_args(WAYLAND_EGL DEFAULT_MSG WAYLAND_EGL_LIBRARIES WAYLAND_EGL_INCLUDE_DIRS)
-find_package_handle_standard_args(WAYLAND DEFAULT_MSG WAYLAND_LIBRARIES WAYLAND_INCLUDE_DIRS)
-
-mark_as_advanced(
- WAYLAND_INCLUDE_DIRS WAYLAND_LIBRARIES
- WAYLAND_CLIENT_INCLUDE_DIRS WAYLAND_CLIENT_LIBRARIES
- WAYLAND_SERVER_INCLUDE_DIRS WAYLAND_SERVER_LIBRARIES
- WAYLAND_EGL_INCLUDE_DIRS WAYLAND_EGL_LIBRARIES
- WAYLAND_DEFINITIONS
- )