1 ############################################################################
3 # Copyright (C) 2012 Bayerische Motorenwerke Aktiengesellschaft
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 ############################################################################
20 # This is an example toolchain file, please adapt for your needs
21 # To use that file please call
22 # cmake <LayerManager_Source_Dir> -DCMAKE_TOOLCHAIN_FILE=<LayerManager_Source_Dir>/toolchain.cmake
24 set (CMAKE_FIND_ROOT_PATH /home/user/weston)
25 set (CMAKE_INSTALL_PREFIX /home/user/weston)
26 set (FFI_INCLUDE_DIR /usr/lib/libffi-3.0.9/include)
27 set (XKB_INCLUDE_DIR /home/user/weston/include/xkbcommon)
29 ################################################################################
31 # Layer Manager Configuration #
33 ################################################################################
35 # this preset enables the build of LayerManagement with Wayland Renderer Plugin
36 # based in X11 backend.
37 # Additionally the Wayland Example applications and LayerManagerControl tool
40 # Build examples for client library usage
41 set (WITH_CLIENTEXAMPLES OFF CACHE BOOL "" FORCE)
43 # Build LayerManagement client library
44 set (WITH_CLIENT_LIB ON CACHE BOOL "" FORCE)
46 # Build renderer plugin for OpenGL/X11 based platforms
47 set (WITH_DESKTOP OFF CACHE BOOL "" FORCE)
49 # Build LayerManagerControl binary
50 set (WITH_CONTROL_BIN ON CACHE BOOL "" FORCE)
52 # Build LayerManagement control library
53 set (WITH_CONTROL_LIB OFF CACHE BOOL "" FORCE)
55 # Build with DLT logging support
56 set (WITH_DLT OFF CACHE BOOL "" FORCE)
58 # Generate documentation during build (requires doxygen)
59 set (WITH_DOCUMENTATION OFF CACHE BOOL "" FORCE)
61 # Build examples for GLES/X11 based platforms
62 set (WITH_EGL_EXAMPLE OFF CACHE BOOL "" FORCE)
64 # Build scene provider plugin to run example applications
65 set (WITH_EXAMPLE_SCENE_PROVIDER ON CACHE BOOL "" FORCE)
67 # Force Software Copy of Pixmaps (compatibility for VMs)
68 set (WITH_FORCE_COPY OFF CACHE BOOL "" FORCE)
70 # Build Generic Communicator Plugin based on IpcModules
71 set (WITH_GENERIC_COMMUNICATOR ON CACHE BOOL "" FORCE)
73 # Build development library for GLES/X11 based renderers
74 set (WITH_GLESv2_LIB OFF CACHE BOOL "" FORCE)
76 # Build examples for OpenGL/X11 based platforms
77 set (WITH_GLX_EXAMPLE OFF CACHE BOOL "" FORCE)
79 # Build development library for OpenGL/X11 based renderers
80 set (WITH_GLX_LIB OFF CACHE BOOL "" FORCE)
82 # Build with TCP Ipc Module
83 set (WITH_IPC_MODULE_TCP OFF CACHE BOOL "" FORCE)
85 # Build with D-Bus Ipc Module
86 set (WITH_IPC_MODULE_DBUS ON CACHE BOOL "" FORCE)
88 # Build LayerManagerService binary
89 set (WITH_SERVICE_BIN ON CACHE BOOL "" FORCE)
91 # Link all plugins and libraries statically
92 set (WITH_STATIC_LIBRARIES OFF CACHE BOOL "" FORCE)
94 # Report styleguide problems during build (requires python)
95 set (WITH_STYLE_CHECKING OFF CACHE BOOL "" FORCE)
97 # Build plugin for systemd based health monitoring
98 set (WITH_SYSTEMD_HEALTH_MONITOR OFF CACHE BOOL "" FORCE)
100 # Build unit test binaries for all enabled components
101 set (WITH_TESTS OFF CACHE BOOL "" FORCE)
103 # Build renderer plugin with pure logging (no rendering)
104 set (WITH_TEXT_RENDERER OFF CACHE BOOL "" FORCE)
106 # Build renderer plugin for GLES/Wayland with X11 backend
107 set (WITH_WAYLAND_X11 ON CACHE BOOL "" FORCE)
109 # Build development library for GLES/Wayland X11 based renderers
110 set (WITH_WAYLAND_X11_LIB OFF CACHE BOOL "" FORCE)
112 # Build renderer plugin for GLES/Wayland with DRM backend
113 set (WITH_WAYLAND_DRM OFF CACHE BOOL "" FORCE)
115 # Build development library for GLES/Wayland DRM based renderers
116 set (WITH_WAYLAND_DRM_LIB OFF CACHE BOOL "" FORCE)
118 # Build renderer plugin for GLES/Wayland with FBDEV backend
119 set (WITH_WAYLAND_FBDEV OFF CACHE BOOL "" FORCE)
121 # Build development library for GLES/Wayland FBDEV based renderers
122 set (WITH_WAYLAND_FBDEV_LIB OFF CACHE BOOL "" FORCE)
124 # Build examples for GLES/Wayland based platforms
125 set (WITH_WL_EXAMPLE ON CACHE BOOL "" FORCE)
127 # Build renderer plugin for GLES/X11 based platforms
128 set (WITH_X11_GLES OFF CACHE BOOL "" FORCE)