diff options
author | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2012-07-05 07:46:23 -0700 |
---|---|---|
committer | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2012-07-05 07:48:32 -0700 |
commit | 3bc3834788f4d65c0ff3b9ecb4dab34793e9842d (patch) | |
tree | e8eb379542dfd0c232f32ee6877a0834356af369 /config | |
parent | 1357d7d3ae952eeeff51fa2fdc886c9aba0d33b5 (diff) | |
download | layer_management-3bc3834788f4d65c0ff3b9ecb4dab34793e9842d.tar.gz |
Config: removed Log dependency from autogenerated config.h file
config.h now contains a string array with the build configuration,
that is logged by the LayerManagerService is required.
Additionally for each flag the log level is defined.
Diffstat (limited to 'config')
-rw-r--r-- | config/res/config.h.cmake | 55 |
1 files changed, 31 insertions, 24 deletions
diff --git a/config/res/config.h.cmake b/config/res/config.h.cmake index c403f51..b2d2661 100644 --- a/config/res/config.h.cmake +++ b/config/res/config.h.cmake @@ -20,8 +20,6 @@ #ifndef __CONFIG_H__ #define __CONFIG_H__ -#include "Log.h" - // Auto-generated. Do not modify. // Variables configured by CMake build system @@ -98,27 +96,36 @@ //----------------------------------------------------------------------------- // 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_WAYLAND_FBDEV = ${WITH_WAYLAND_FBDEV}"); \ - LOG_DEBUG("Config", "WITH_WAYLAND_X11 = ${WITH_WAYLAND_X11}"); \ - LOG_DEBUG("Config", "WITH_WAYLAND_DRM = ${WITH_WAYLAND_DRM}"); \ - LOG_DEBUG("Config", "WITH_XTHREADS = ${WITH_XTHREADS}"); \ - LOG_DEBUG("Config", "WITH_DLT = ${WITH_DLT}"); +#define DEBUG_FLAG 1 +#define INFO_FLAG 2 + +typedef struct +{ + int type; + const char* description; +} buildConfigurationFlag; + +#define buildConfigurationFlags \ +{ INFO_FLAG, "Build Version = ${ILM_VERSION}" }, \ +{ DEBUG_FLAG, "Build Type = ${CMAKE_BUILD_TYPE}" }, \ +{ DEBUG_FLAG, "Compiler Flags = ${CMAKE_CXX_FLAGS}" }, \ +{ DEBUG_FLAG, "Install Prefix = ${CMAKE_INSTALL_PREFIX}" }, \ +{ DEBUG_FLAG, "WITH_CLIENTEXAMPLES = ${WITH_CLIENTEXAMPLES}" }, \ +{ DEBUG_FLAG, "WITH_DESKTOP = ${WITH_DESKTOP}" }, \ +{ DEBUG_FLAG, "WITH_EGL_EXAMPLE = ${WITH_EGL_EXAMPLE}" }, \ +{ DEBUG_FLAG, "WITH_WL_EXAMPLE = ${WITH_WL_EXAMPLE}" }, \ +{ DEBUG_FLAG, "WITH_FORCE_COPY = ${WITH_FORCE_COPY}" }, \ +{ DEBUG_FLAG, "WITH_GLESv2_LIB = ${WITH_GLESv2_LIB}" }, \ +{ DEBUG_FLAG, "WITH_GLX_EXAMPLE = ${WITH_GLX_EXAMPLE}" }, \ +{ DEBUG_FLAG, "WITH_GLX_LIB = ${WITH_GLX_LIB}" }, \ +{ DEBUG_FLAG, "WITH_INPUT_EVENTS = ${WITH_INPUT_EVENTS}" }, \ +{ DEBUG_FLAG, "WITH_TESTS = ${WITH_TESTS}" }, \ +{ DEBUG_FLAG, "WITH_X11_GLES = ${WITH_X11_GLES}" }, \ +{ DEBUG_FLAG, "WITH_WAYLAND = ${WITH_WAYLAND}" }, \ +{ DEBUG_FLAG, "WITH_WAYLAND_FBDEV = ${WITH_WAYLAND_FBDEV}" }, \ +{ DEBUG_FLAG, "WITH_WAYLAND_X11 = ${WITH_WAYLAND_X11}" }, \ +{ DEBUG_FLAG, "WITH_WAYLAND_DRM = ${WITH_WAYLAND_DRM}" }, \ +{ DEBUG_FLAG, "WITH_XTHREADS = ${WITH_XTHREADS}" }, \ +{ DEBUG_FLAG, "WITH_DLT = ${WITH_DLT}" } #endif // __CONFIG_H__ |