Title: [171987] trunk
- Revision
- 171987
- Author
- [email protected]
- Date
- 2014-08-04 00:10:15 -0700 (Mon, 04 Aug 2014)
Log Message
[CMake] Add FindWayland.cmake
https://bugs.webkit.org/show_bug.cgi?id=135540
Reviewed by Martin Robinson.
* Source/cmake/FindWayland.cmake: Added. Enables finding the Wayland
dependency. For now bundles the wayland-client, wayland-server and
wayland-egl pkg-config targets into one dependency, but these could
be split in the future if necessary.
Modified Paths
Added Paths
Diff
Modified: trunk/ChangeLog (171986 => 171987)
--- trunk/ChangeLog 2014-08-04 07:00:21 UTC (rev 171986)
+++ trunk/ChangeLog 2014-08-04 07:10:15 UTC (rev 171987)
@@ -1,3 +1,15 @@
+2014-08-04 Zan Dobersek <[email protected]>
+
+ [CMake] Add FindWayland.cmake
+ https://bugs.webkit.org/show_bug.cgi?id=135540
+
+ Reviewed by Martin Robinson.
+
+ * Source/cmake/FindWayland.cmake: Added. Enables finding the Wayland
+ dependency. For now bundles the wayland-client, wayland-server and
+ wayland-egl pkg-config targets into one dependency, but these could
+ be split in the future if necessary.
+
2014-08-03 Ryuan Choi <[email protected]>
[EFL] Move DATA_INSTALL_DIR to ewebkit2-0
Added: trunk/Source/cmake/FindWayland.cmake (0 => 171987)
--- trunk/Source/cmake/FindWayland.cmake (rev 0)
+++ trunk/Source/cmake/FindWayland.cmake 2014-08-04 07:10:15 UTC (rev 171987)
@@ -0,0 +1,36 @@
+# - Try to find Wayland.
+# Once done, this will define
+#
+# WAYLAND_FOUND - system has Wayland.
+# WAYLAND_INCLUDE_DIRS - the Wayland include directories
+# WAYLAND_LIBRARIES - link these to use Wayland.
+#
+# Copyright (C) 2014 Igalia S.L.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS
+# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+find_package(PkgConfig)
+pkg_check_modules(WAYLAND wayland-client wayland-server wayland-egl)
+
+include(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND DEFAULT_MSG WAYLAND_LIBRARIES)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_EGL DEFAULT_MSG WAYLAND_EGL_LIBRARIES)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes