diff options
author | Nobuhiko Tanibata <ntanibata@jp.adit-jv.com> | 2012-03-12 16:31:57 +0900 |
---|---|---|
committer | Michael Schuldt <michael.schuldt@bmw.de> | 2012-03-13 09:30:21 +0100 |
commit | 118ead9d38e0fb3d7c8c63b626e01dc72f975ca9 (patch) | |
tree | bdbf3d1953db5a4b69ef4deb6d04e2fd43470a23 /cmake/modules | |
parent | 5602d78e25326460c105f6259b6431a03d9c7885 (diff) | |
download | layer_management-118ead9d38e0fb3d7c8c63b626e01dc72f975ca9.tar.gz |
LayerManagerPlugins: The very first version of Wayland Plugin by GopyGLES
WindowSystems:
- Add Implementation of wayland compositor with fbdev backend "/dev/fb0"
TextureBinders:
- Add CopyGLES for Wayland
WaylandGLESRenderer:
- Add new SubModule, GLES renderer for wayland
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/FindWayland.cmake | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/cmake/modules/FindWayland.cmake b/cmake/modules/FindWayland.cmake new file mode 100644 index 0000000..931836a --- /dev/null +++ b/cmake/modules/FindWayland.cmake @@ -0,0 +1,66 @@ +############################################################################ +# +# Copyright 2010, 2011 BMW Car IT GmbH +# Copyright (C) 2011 DENSO CORPORATION and Robert Bosch Car Multimedia Gmbh +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +############################################################################ + +FIND_PATH(WAYLAND_CLIENT_INCLUDE_DIR /wayland-client.h +/usr/include /usr/local/include +) + +FIND_LIBRARY(WAYLAND_CLIENT_LIBRARIES +NAMES wayland-client +PATHS /usr/lib /usr/local/lib +) + +FIND_PATH(WAYLAND_SERVER_INCLUDE_DIR /wayland-server.h +/usr/include /usr/local/include +) + +FIND_LIBRARY(WAYLAND_SERVER_LIBRARIES +NAMES wayland-server +PATHS /usr/lib /usr/local/lib +) + +FIND_PATH(FFI_INCLUDE_DIR /ffi.h +/usr/include /usr/local/include /usr/include/i386-linux-gnu +) + +FIND_LIBRARY(FFI_LIBRARIES +NAMES ffi +PATHS /usr/lib /usr/local/lib +) + +SET( WAYLAND_FOUND "NO" ) +IF(WAYLAND_LIBRARIES) + SET( WAYLAND_FOUND "YES" ) + message(STATUS "Found Wayland-Client libs: ${WAYLAND_CLIENT_LIBRARIES}") + message(STATUS "Found Wayland-Client includes: ${WAYLAND_CLIENT_INCLUDE_DIR}") + message(STATUS "Found Wayland-Server libs: ${WAYLAND_SERVER_LIBRARIES}") + message(STATUS "Found Wayland-Server includes: ${WAYLAND_SERVER_INCLUDE_DIR}") + message(STATUS "Found ffi need by Wayland libs: ${FFI_LIBRARIES}") + message(STATUS "Found ffi need by Wayland includes: ${FFI_INCLUDE_DIR}") +ENDIF(WAYLAND_LIBRARIES) + +MARK_AS_ADVANCED( + WAYLAND_CLIENT_INCLUDE_DIR + WAYLAND_CLIENT_LIBRARIES + WAYLAND_SERVER_INCLUDE_DIR + WAYLAND_SERVER_LIBRARIES + FFI_INCLUDE_DIR + FFI_LIBRARIES +) |