diff options
author | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2013-01-03 06:14:05 -0800 |
---|---|---|
committer | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2013-01-14 00:34:17 -0800 |
commit | 5ae018f13303ab89615910dcf376d4e09b855a63 (patch) | |
tree | 3b3055b3bfb58b4293ad617a8c800bbbd4d35985 /config/res | |
parent | 23315a039d070656448da598c836061452d2c1aa (diff) | |
download | layer_management-5ae018f13303ab89615910dcf376d4e09b855a63.tar.gz |
CMake: added autogeneration of build flags in config.h header file
now all build flags are automatically exported to the auto_generated
config.h file.
Note: config.h is no created in two passes:
1. pass: #cmakedefine macros are created for each build flag
2. pass: #cmakedefine macros are evaluated
Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
Diffstat (limited to 'config/res')
-rw-r--r-- | config/res/config.h.cmake | 93 |
1 files changed, 4 insertions, 89 deletions
diff --git a/config/res/config.h.cmake b/config/res/config.h.cmake index 848f74b..e25dde0 100644 --- a/config/res/config.h.cmake +++ b/config/res/config.h.cmake @@ -42,73 +42,7 @@ //----------------------------------------------------------------------------- // 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 OpenGL/X11 examples -#cmakedefine WITH_GLX_EXAMPLE - -// build unit tests for all projects -#cmakedefine WITH_TESTS - -// build OpenGL ES 2.0 / X11 renderer -#cmakedefine WITH_X11_GLES - -// use fbdev for wayland backend -#cmakedefine WITH_WAYLAND_FBDEV - -// use x11 for wayland backend -#cmakedefine WITH_WAYLAND_X11 - -// use wayland-drm compositor -#cmakedefine WITH_WAYLAND_DRM - -// use automotive dlt for logging -#cmakedefine WITH_DLT - -// build LayerManagement client library -#cmakedefine WITH_CLIENT_LIB - -// build LayerManagerService binary -#cmakedefine WITH_SERVICE_BIN - -// build generic communicator plugin -#cmakedefine WITH_COMMUNICATOR_GEN - -// build dbus ipc module -#cmakedefine WITH_IPC_MODULE_DBUS - -// build tcp/ip ipc module -#cmakedefine WITH_IPC_MODULE_TCP - -// build plugin for systemd health monitoring -#cmakedefine WITH_PLUGIN_SYSTEMD_HEALTH_MONITOR - -// full static build enabled -#cmakedefine WITH_STATIC_LIBRARIES - - -//----------------------------------------------------------------------------- -// platform configuration -//----------------------------------------------------------------------------- -// execinfo header file -#cmakedefine HAVE_EXECINFO_H - -// backtrace available -#cmakedefine HAVE_BACKTRACE - +${EXPORTED_BUILD_FLAGS} //----------------------------------------------------------------------------- // human readable report @@ -126,28 +60,9 @@ const BuildFlag gBuildFlags[] = { { 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_CLIENT_LIB = ${WITH_CLIENT_LIB}" }, - { DEBUG_FLAG, "WITH_COMMUNICATOR_GEN = ${WITH_COMMUNICATOR_GEN}" }, - { DEBUG_FLAG, "WITH_DESKTOP = ${WITH_DESKTOP}" }, - { DEBUG_FLAG, "WITH_DLT = ${WITH_DLT}" }, - { DEBUG_FLAG, "WITH_EGL_EXAMPLE = ${WITH_EGL_EXAMPLE}" }, - { DEBUG_FLAG, "WITH_FORCE_COPY = ${WITH_FORCE_COPY}" }, - { DEBUG_FLAG, "WITH_GLX_EXAMPLE = ${WITH_GLX_EXAMPLE}" }, - { DEBUG_FLAG, "WITH_IPC_MODULE_DBUS = ${WITH_IPC_MODULE_DBUS}" }, - { DEBUG_FLAG, "WITH_IPC_MODULE_TCP = ${WITH_IPC_MODULE_TCP}" }, - { DEBUG_FLAG, "WITH_SERVICE_BIN = ${WITH_SERVICE_BIN}" }, - { DEBUG_FLAG, "WITH_TESTS = ${WITH_TESTS}" }, - { DEBUG_FLAG, "WITH_WAYLAND_DRM = ${WITH_WAYLAND_DRM}" }, - { DEBUG_FLAG, "WITH_WAYLAND_FBDEV = ${WITH_WAYLAND_FBDEV}" }, - { DEBUG_FLAG, "WITH_WAYLAND_X11 = ${WITH_WAYLAND_X11}" }, - { DEBUG_FLAG, "WITH_WL_EXAMPLE = ${WITH_WL_EXAMPLE}" }, - { DEBUG_FLAG, "WITH_X11_GLES = ${WITH_X11_GLES}" }, - { DEBUG_FLAG, "WITH_SYSTEMD_HEALTH_MONITOR = ${WITH_SYSTEMD_HEALTH_MONITOR}" }, - { DEBUG_FLAG, "WITH_EXAMPLE_SCENE_PROVIDER = ${WITH_EXAMPLE_SCENE_PROVIDER}" }, - { DEBUG_FLAG, "WITH_STATIC_LIBRARIES = ${WITH_STATIC_LIBRARIES}" } + +${EXPORTED_BUILD_FLAG_ARRAY} + { DEBUG_FLAG, "Install Prefix = ${CMAKE_INSTALL_PREFIX}" } }; const int gBuildFlagCount = sizeof(gBuildFlags) / sizeof(gBuildFlags[0]); |