summaryrefslogtreecommitdiff
path: root/config/res
diff options
context:
space:
mode:
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>2012-03-27 14:28:40 +0200
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>2012-03-27 14:34:21 +0200
commit63e03825d2930fdb4e10f117eb8abb98502a025d (patch)
tree425ecd75f3f2b7cae6c78e58d39a41820528318b /config/res
parent017a9e691f415e1383cc9ac6839e8a07babab232 (diff)
downloadlayer_management-63e03825d2930fdb4e10f117eb8abb98502a025d.tar.gz
config: created separate CMakeLists.txt file for project
- Handles creation of config.h file with build configuration options. This reduces complexity of main CMakeLists.txt file. - Internally moved config.h.cmake to res subfolder.
Diffstat (limited to 'config/res')
-rw-r--r--config/res/config.h.cmake106
1 files changed, 106 insertions, 0 deletions
diff --git a/config/res/config.h.cmake b/config/res/config.h.cmake
new file mode 100644
index 0000000..60a57e7
--- /dev/null
+++ b/config/res/config.h.cmake
@@ -0,0 +1,106 @@
+/***************************************************************************
+ *
+ * Copyright 2010,2011 BMW Car IT 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.
+ *
+ ****************************************************************************/
+#include "Log.h"
+
+// Auto-generated. Do not modify.
+// Variables configured by CMake build system
+
+//-----------------------------------------------------------------------------
+// string variables
+//-----------------------------------------------------------------------------
+// version of the LayerManagementService
+#define ILM_VERSION "${ILM_VERSION}"
+
+// CMake build type, e.g. Debug, Release
+#define CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}"
+
+// compiler flags used to build project
+#define CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}"
+
+// install prefix of target platform
+#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
+
+
+//-----------------------------------------------------------------------------
+// build flags
+//-----------------------------------------------------------------------------
+// build client examples
+#cmakedefine WITH_CLIENTEXAMPLES
+
+// build OpenGL/X11 based renderer
+#cmakedefine WITH_DESKTOP
+
+// build OpenGL ES 2.0 examples
+#cmakedefine WITH_EGL_EXAMPLE
+
+// build OpenGL ES 2.0 Wayland Examples
+#cmakedefine WITH_WL_EXAMPLE
+
+// force copy of graphic buffers
+#cmakedefine WITH_FORCE_COPY
+
+// Build development library for GLES2 Based Renderers
+#cmakedefine WITH_GLESv2_LIB
+
+// build OpenGL/X11 examples
+#cmakedefine WITH_GLX_EXAMPLE
+
+// Build development library for GLX Based Renderers
+#cmakedefine WITH_GLX_LIB
+
+// enable input event handling
+#cmakedefine WITH_INPUT_EVENTS
+
+// build unit tests for all projects
+#cmakedefine WITH_TESTS
+
+// build OpenGL ES 2.0 / X11 renderer
+#cmakedefine WITH_X11_GLES
+
+// use OpenGL ES 2.0 / Wayland renderer
+#cmakedefine WITH_WAYLAND
+
+// use xthreads library
+#cmakedefine WITH_XTHREADS
+
+// use automotive dlt for logging
+#cmakedefine WITH_DLT
+
+//-----------------------------------------------------------------------------
+// human readable report
+//-----------------------------------------------------------------------------
+#define printConfiguration() \
+ LOG_INFO ("Config", "Build Version = " << ILM_VERSION); \
+ LOG_DEBUG("Config", "Build Type = " << CMAKE_BUILD_TYPE); \
+ LOG_DEBUG("Config", "Compiler Flags = " << CMAKE_CXX_FLAGS); \
+ LOG_DEBUG("Config", "Install Prefix = " << CMAKE_INSTALL_PREFIX); \
+ LOG_DEBUG("Config", "WITH_CLIENTEXAMPLES = ${WITH_CLIENTEXAMPLES}"); \
+ LOG_DEBUG("Config", "WITH_DESKTOP = ${WITH_DESKTOP}"); \
+ LOG_DEBUG("Config", "WITH_EGL_EXAMPLE = ${WITH_EGL_EXAMPLE}"); \
+ LOG_DEBUG("Config", "WITH_WL_EXAMPLE = ${WITH_WL_EXAMPLE}"); \
+ LOG_DEBUG("Config", "WITH_FORCE_COPY = ${WITH_FORCE_COPY}"); \
+ LOG_DEBUG("Config", "WITH_GLESv2_LIB = ${WITH_GLESv2_LIB}"); \
+ LOG_DEBUG("Config", "WITH_GLX_EXAMPLE = ${WITH_GLX_EXAMPLE}"); \
+ LOG_DEBUG("Config", "WITH_GLX_LIB = ${WITH_GLX_LIB}"); \
+ LOG_DEBUG("Config", "WITH_INPUT_EVENTS = ${WITH_INPUT_EVENTS}"); \
+ LOG_DEBUG("Config", "WITH_TESTS = ${WITH_TESTS}"); \
+ LOG_DEBUG("Config", "WITH_X11_GLES = ${WITH_X11_GLES}"); \
+ LOG_DEBUG("Config", "WITH_WAYLAND = ${WITH_WAYLAND}"); \
+ LOG_DEBUG("Config", "WITH_XTHREADS = ${WITH_XTHREADS}"); \
+ LOG_DEBUG("Config", "WITH_DLT = ${WITH_DLT}");