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
26 ################################################################################
28 # Layer Manager Configuration #
30 ################################################################################
32 # Disable all GLX Examples
33 set (WITH_GLX_EXAMPLE OFF CACHE BOOL "" FORCE)
35 # Enable all EGL X11 Examples like EGLX11ApplicationExample EGLX11MockNavigation
36 set (WITH_EGL_EXAMPLE ON CACHE BOOL "" FORCE)
38 # Disable all Wayland Examples like EGLWLApplicationExample EGLWLMockNavigation
39 set (WITH_WL_EXAMPLE OFF CACHE BOOL "" FORCE)
41 # Enable EGL/GLES 2.0 X11 Renderer / Compositor Plug In
42 set (WITH_X11_GLES ON CACHE BOOL "" FORCE)
44 # Disable EGL/GLES 2.0 Wayland Renderer / Compositor Plug In
45 set (WITH_WAYLAND OFF CACHE BOOL "" FORCE)
47 # Disable EGL/GLES 2.0 Wayland Renderer / Compositor Plug In X11
48 set (WITH_WAYLAND_X11 OFF CACHE BOOL "" FORCE)
50 # Disable EGL/GLES 2.0 Wayland Renderer / Compositor Plug In FBDEV
51 set (WITH_WAYLAND_FBDEV OFF CACHE BOOL "" FORCE)
53 # Disable all OpenGL 1.1 X11 Renderer / Compositor Plug In
54 set (WITH_DESKTOP OFF CACHE BOOL "" FORCE)
56 # Disable copy of offscreen buffer into texturespace use zero copy - Driver Support needed !
57 set (WITH_FORCE_COPY OFF CACHE BOOL "" FORCE)
59 # Disable compilation of unit test
60 set (WITH_TESTS OFF CACHE BOOL "" FORCE)
62 # Enable XThreads to post signals over different threads - switching polling to push notification
63 set (WITH_XTRHEADS ON CACHE BOOL "" FORCE)
66 set (WITH_DLT OFF CACHE BOOL "" FORCE)
70 ################################################################################
74 ################################################################################
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.
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)
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)