2016-11-03 08:06:33 -04:00
|
|
|
#
|
|
|
|
# Output build summary
|
|
|
|
#
|
|
|
|
|
2016-11-20 17:04:31 -05:00
|
|
|
function(colored_option message_level text var color_on color_off)
|
|
|
|
string(ASCII 27 esc)
|
|
|
|
if(${var})
|
|
|
|
message(${message_level} "${esc}[${color_on}m${text}${esc}[0m")
|
|
|
|
else()
|
|
|
|
message(${message_level} "${esc}[${color_off}m${text}${esc}[0m")
|
|
|
|
endif()
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
message(STATUS "--------------------------")
|
|
|
|
message_colored(STATUS " Build type: ${CMAKE_BUILD_TYPE}" "32;1")
|
2016-11-03 08:06:33 -04:00
|
|
|
message(STATUS " Compiler C: ${CMAKE_C_COMPILER}")
|
|
|
|
message(STATUS " Compiler C++: ${CMAKE_CXX_COMPILER}")
|
|
|
|
message(STATUS " Compiler flags: ${CMAKE_CXX_FLAGS}")
|
|
|
|
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS " debug flags: ${CMAKE_CXX_FLAGS_DEBUG}")
|
2016-11-03 08:06:33 -04:00
|
|
|
if(NOT DEFINED ${DEBUG_LOGGER})
|
|
|
|
set(DEBUG_LOGGER ON)
|
|
|
|
endif()
|
|
|
|
if(NOT DEFINED ${ENABLE_CCACHE})
|
|
|
|
set(ENABLE_CCACHE ON)
|
|
|
|
endif()
|
|
|
|
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS " release: ${CMAKE_CXX_FLAGS_RELEASE}")
|
2016-11-03 08:06:33 -04:00
|
|
|
elseif(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS " minsizerel: ${CMAKE_CXX_FLAGS_MINSIZEREL}")
|
2016-11-03 08:06:33 -04:00
|
|
|
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS " relwithdebinfo: ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
2016-11-03 08:06:33 -04:00
|
|
|
endif()
|
|
|
|
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS " Linker flags: ${CMAKE_EXE_LINKER_FLAGS}")
|
|
|
|
|
2016-11-03 08:06:33 -04:00
|
|
|
if(CXXLIB_CLANG)
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS " C++ library: libc++")
|
2016-11-03 08:06:33 -04:00
|
|
|
elseif(CXXLIB_GCC)
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS " C++ library: libstdc++")
|
2016-11-03 08:06:33 -04:00
|
|
|
else()
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS " C++ library: system default")
|
2016-11-03 08:06:33 -04:00
|
|
|
endif()
|
|
|
|
|
2016-11-20 17:04:31 -05:00
|
|
|
message(STATUS "--------------------------")
|
|
|
|
colored_option(STATUS " Build testsuite ${BUILD_TESTS}" BUILD_TESTS "32;1" "37;2")
|
|
|
|
colored_option(STATUS " Debug logging ${DEBUG_LOGGER}" DEBUG_LOGGER "32;1" "37;2")
|
|
|
|
colored_option(STATUS " Verbose tracing ${VERBOSE_TRACELOG}" VERBOSE_TRACELOG "32;1" "37;2")
|
|
|
|
colored_option(STATUS " Enable ccache ${ENABLE_CCACHE}" ENABLE_CCACHE "32;1" "37;2")
|
|
|
|
message(STATUS "--------------------------")
|
|
|
|
colored_option(STATUS " Enable alsa ${ENABLE_ALSA}" ENABLE_ALSA "32;1" "37;2")
|
|
|
|
colored_option(STATUS " Enable i3 ${ENABLE_I3}" ENABLE_I3 "32;1" "37;2")
|
|
|
|
colored_option(STATUS " Enable mpd ${ENABLE_MPD}" ENABLE_MPD "32;1" "37;2")
|
|
|
|
colored_option(STATUS " Enable network ${ENABLE_NETWORK}" ENABLE_NETWORK "32;1" "37;2")
|
|
|
|
message(STATUS "--------------------------")
|
|
|
|
colored_option(STATUS " Enable X RandR ${ENABLE_RANDR_EXT}" ENABLE_RANDR_EXT "32;1" "37;2")
|
|
|
|
colored_option(STATUS " Enable X Render ${ENABLE_RENDER_EXT}" ENABLE_RENDER_EXT "32;1" "37;2")
|
|
|
|
colored_option(STATUS " Enable X Damage ${ENABLE_DAMAGE_EXT}" ENABLE_DAMAGE_EXT "32;1" "37;2")
|
|
|
|
message(STATUS "--------------------------")
|
|
|
|
# message(STATUS " ALSA_SOUNDCARD ${SETTING_ALSA_SOUNDCARD}")
|
|
|
|
# message(STATUS " BSPWM_SOCKET_PATH ${SETTING_BSPWM_SOCKET_PATH}")
|
|
|
|
# message(STATUS " BSPWM_STATUS_PREFIX ${SETTING_BSPWM_STATUS_PREFIX}")
|
|
|
|
# message(STATUS " CONNECTION_TEST_IP ${SETTING_CONNECTION_TEST_IP}")
|
|
|
|
# message(STATUS " PATH_ADAPTER_STATUS ${SETTING_PATH_ADAPTER_STATUS}")
|
|
|
|
# message(STATUS " PATH_BACKLIGHT_VAL ${SETTING_PATH_BACKLIGHT_VAL}")
|
|
|
|
# message(STATUS " PATH_BACKLIGHT_MAX ${SETTING_PATH_BACKLIGHT_MAX}")
|
|
|
|
# message(STATUS " PATH_BATTERY_CAPACITY ${SETTING_PATH_BATTERY_CAPACITY}")
|
|
|
|
# message(STATUS " PATH_BATTERY_CAPACITY_MAX ${SETTING_PATH_BATTERY_CAPACITY_MAX}")
|
|
|
|
# message(STATUS " PATH_BATTERY_CAPACITY_PERC ${SETTING_PATH_BATTERY_CAPACITY_PERC}")
|
|
|
|
# message(STATUS " PATH_BATTERY_VOLTAGE ${SETTING_PATH_BATTERY_VOLTAGE}")
|
|
|
|
# message(STATUS " PATH_BATTERY_RATE ${SETTING_PATH_BATTERY_RATE}")
|
|
|
|
# message(STATUS " PATH_CPU_INFO ${SETTING_PATH_CPU_INFO}")
|
|
|
|
# message(STATUS " PATH_MEMORY_INFO ${SETTING_PATH_MEMORY_INFO}")
|
|
|
|
# message(STATUS " PATH_MESSAGING_FIFO ${SETTING_PATH_MESSAGING_FIFO}")
|
|
|
|
# message(STATUS " PATH_TEMPERATURE_INFO ${SETTING_PATH_TEMPERATURE_INFO}")
|
|
|
|
# message(STATUS "--------------------------")
|