LayerManagerBase: fixed unit tests
[profile/ivi/layer-management.git] / toolchain.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
25
26 ################################################################################
27 #                                                                              #
28 #                         Layer Manager Configuration                          #
29 #                                                                              #
30 ################################################################################
31
32 # Disable all GLX Examples
33 set (WITH_GLX_EXAMPLE OFF CACHE BOOL "" FORCE)
34
35 # Enable all EGL X11 Examples like EGLX11ApplicationExample EGLX11MockNavigation
36 set (WITH_EGL_EXAMPLE ON CACHE BOOL "" FORCE)
37
38 # Disable all Wayland Examples like EGLWLApplicationExample EGLWLMockNavigation
39 set (WITH_WL_EXAMPLE OFF CACHE BOOL "" FORCE)
40
41 # Enable EGL/GLES 2.0 X11 Renderer / Compositor Plug In
42 set (WITH_X11_GLES ON CACHE BOOL "" FORCE)
43
44 # Disable EGL/GLES 2.0 Wayland Renderer / Compositor Plug In
45 set (WITH_WAYLAND OFF CACHE BOOL "" FORCE)
46
47 # Disable EGL/GLES 2.0 Wayland Renderer / Compositor Plug In X11
48 set (WITH_WAYLAND_X11 OFF CACHE BOOL "" FORCE)
49
50 # Disable EGL/GLES 2.0 Wayland Renderer / Compositor Plug In FBDEV
51 set (WITH_WAYLAND_FBDEV OFF CACHE BOOL "" FORCE)
52
53 # Disable all OpenGL 1.1 X11 Renderer / Compositor Plug In
54 set (WITH_DESKTOP OFF CACHE BOOL "" FORCE)
55
56 # Disable copy of offscreen buffer into texturespace use zero copy - Driver Support needed !
57 set (WITH_FORCE_COPY OFF CACHE BOOL "" FORCE)
58
59 # Disable compilation of unit test
60 set (WITH_TESTS OFF CACHE BOOL "" FORCE)
61
62 # Enable XThreads to post signals over different threads - switching polling to push notification
63 set (WITH_XTRHEADS ON CACHE BOOL "" FORCE)
64
65 # Disable DLT Logging
66 set (WITH_DLT OFF CACHE BOOL "" FORCE)
67
68
69
70 ################################################################################
71 #                                                                              #
72 #                                Cross Compilation                             #
73 #                                                                              #
74 ################################################################################
75
76
77 #
78 # This present the minimal variables to be set for cross compilation.
79 # See http://www.cmake.org/Wiki/CMake_Cross_Compiling for more details.
80 #
81
82 # Set the target system type, typically Linux 
83 set (CMAKE_SYSTEM_NAME Linux)
84 # Set the C compiler to use
85 set (CMAKE_C_COMPILER arm-linux-gnueabi-gcc)
86 # Set the C++ compiler to use
87 set (CMAKE_CXX_COMPILER arm-linux-gnueabi-g++)
88 # Indicate where is located your sysroot. Can be a list of directories
89 set (CMAKE_FIND_ROOT_PATH  /opt/sysroot/armv7-linux-gnueabi)
90
91 # search for programs on the host
92 set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
93 # search for headers & libraries on the target
94 set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
95 set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
96
97