GraphicLib: Added DirectFB support
[profile/ivi/layer-management.git] / toolchain_x11_wayland.cmake
1 ############################################################################
2 #
3 # Copyright (C) 2012 Bayerische Motorenwerke Aktiengesellschaft
4 #
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
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
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.
16 #
17 ############################################################################
18
19
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
23
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)
28
29 ################################################################################
30 #                                                                              #
31 #                         Layer Manager Configuration                          #
32 #                                                                              #
33 ################################################################################
34
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
38 # is built.
39
40 # Build examples for client library usage
41 set (WITH_CLIENTEXAMPLES             OFF  CACHE BOOL "" FORCE)
42
43 # Build LayerManagement client library
44 set (WITH_CLIENT_LIB                 ON  CACHE BOOL "" FORCE)
45
46 # Build renderer plugin for OpenGL/X11 based platforms
47 set (WITH_DESKTOP                    OFF CACHE BOOL "" FORCE)
48
49 # Build LayerManagerControl binary
50 set (WITH_CONTROL_BIN                ON  CACHE BOOL "" FORCE)
51
52 # Build LayerManagement control library
53 set (WITH_CONTROL_LIB                OFF CACHE BOOL "" FORCE)
54
55 # Build with DLT logging support
56 set (WITH_DLT                        OFF CACHE BOOL "" FORCE)
57
58 # Generate documentation during build (requires doxygen)
59 set (WITH_DOCUMENTATION              OFF CACHE BOOL "" FORCE)
60
61 # Build examples for GLES/X11 based platforms
62 set (WITH_EGL_EXAMPLE                OFF  CACHE BOOL "" FORCE)
63
64 # Build scene provider plugin to run example applications
65 set (WITH_EXAMPLE_SCENE_PROVIDER     ON CACHE BOOL "" FORCE)
66
67 # Force Software Copy of Pixmaps (compatibility for VMs)
68 set (WITH_FORCE_COPY                 OFF CACHE BOOL "" FORCE)
69
70 # Build Generic Communicator Plugin based on IpcModules
71 set (WITH_GENERIC_COMMUNICATOR       ON  CACHE BOOL "" FORCE)
72
73 # Build development library for GLES/X11 based renderers
74 set (WITH_GLESv2_LIB                 OFF CACHE BOOL "" FORCE)
75
76 # Build examples for OpenGL/X11 based platforms
77 set (WITH_GLX_EXAMPLE                OFF CACHE BOOL "" FORCE)
78
79 # Build development library for OpenGL/X11 based renderers
80 set (WITH_GLX_LIB                    OFF CACHE BOOL "" FORCE)
81
82 # Build with TCP Ipc Module
83 set (WITH_IPC_MODULE_TCP             OFF CACHE BOOL "" FORCE)
84
85 # Build with D-Bus Ipc Module
86 set (WITH_IPC_MODULE_DBUS            ON  CACHE BOOL "" FORCE)
87
88 # Build LayerManagerService binary
89 set (WITH_SERVICE_BIN                ON  CACHE BOOL "" FORCE)
90
91 # Link all plugins and libraries statically
92 set (WITH_STATIC_LIBRARIES           OFF CACHE BOOL "" FORCE)
93
94 # Report styleguide problems during build (requires python)
95 set (WITH_STYLE_CHECKING             OFF CACHE BOOL "" FORCE)
96
97 # Build plugin for systemd based health monitoring
98 set (WITH_SYSTEMD_HEALTH_MONITOR     OFF CACHE BOOL "" FORCE)
99
100 # Build unit test binaries for all enabled components
101 set (WITH_TESTS                      OFF CACHE BOOL "" FORCE)
102
103 # Build renderer plugin with pure logging (no rendering)
104 set (WITH_TEXT_RENDERER              OFF CACHE BOOL "" FORCE)
105
106 # Build renderer plugin for GLES/Wayland with X11 backend
107 set (WITH_WAYLAND_X11                ON CACHE BOOL "" FORCE)
108
109 # Build development library for GLES/Wayland X11 based renderers
110 set (WITH_WAYLAND_X11_LIB            OFF CACHE BOOL "" FORCE)
111
112 # Build renderer plugin for GLES/Wayland with DRM backend
113 set (WITH_WAYLAND_DRM                OFF CACHE BOOL "" FORCE)
114
115 # Build development library for GLES/Wayland DRM based renderers
116 set (WITH_WAYLAND_DRM_LIB            OFF CACHE BOOL "" FORCE)
117
118 # Build renderer plugin for GLES/Wayland with FBDEV backend
119 set (WITH_WAYLAND_FBDEV              OFF CACHE BOOL "" FORCE)
120
121 # Build development library for GLES/Wayland FBDEV based renderers
122 set (WITH_WAYLAND_FBDEV_LIB          OFF CACHE BOOL "" FORCE)
123
124 # Build examples for GLES/Wayland based platforms
125 set (WITH_WL_EXAMPLE                 ON CACHE BOOL "" FORCE)
126
127 # Build renderer plugin for GLES/X11 based platforms
128 set (WITH_X11_GLES                   OFF  CACHE BOOL "" FORCE)
129