38f9ba81cd
Adds a new token %time% that will display an estimate of the remaining time until fully charged/discharged
67 lines
3.3 KiB
CMake
67 lines
3.3 KiB
CMake
#
|
|
# Output build summary
|
|
#
|
|
|
|
message(STATUS "---------------------------")
|
|
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
|
|
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")
|
|
message(STATUS " + debug flags:: ${CMAKE_CXX_FLAGS_DEBUG}")
|
|
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")
|
|
message(STATUS " + release flags:: ${CMAKE_CXX_FLAGS_RELEASE}")
|
|
elseif(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
|
|
message(STATUS " + minsizerel flags:: ${CMAKE_CXX_FLAGS_MINSIZEREL}")
|
|
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
|
message(STATUS " + relwithdebinfo flags:: ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
|
endif()
|
|
|
|
if(CXXLIB_CLANG)
|
|
message(STATUS " Linking C++ library: libc++")
|
|
elseif(CXXLIB_GCC)
|
|
message(STATUS " Linking C++ library: libstdc++")
|
|
else()
|
|
message(STATUS " Linking C++ library: system default")
|
|
endif()
|
|
|
|
message(STATUS "--------------------------------------------")
|
|
message(STATUS " Build testsuite ${BUILD_TESTS}")
|
|
message(STATUS " Enable debug logger ${DEBUG_LOGGER}")
|
|
message(STATUS " Enable extra tracing ${VERBOSE_TRACELOG}")
|
|
message(STATUS " Enable ccache support ${ENABLE_CCACHE}")
|
|
message(STATUS "--------------------------------------------")
|
|
message(STATUS " Enable alsa support ${ENABLE_ALSA}")
|
|
message(STATUS " Enable i3 support ${ENABLE_I3}")
|
|
message(STATUS " Enable mpd support ${ENABLE_MPD}")
|
|
message(STATUS " Enable network support ${ENABLE_NETWORK}")
|
|
message(STATUS "--------------------------------------------")
|
|
message(STATUS " Enable X RandR ${ENABLE_RANDR_EXT}")
|
|
message(STATUS " Enable X Render ${ENABLE_RENDER_EXT}")
|
|
message(STATUS " Enable X Damage ${ENABLE_DAMAGE_EXT}")
|
|
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 "--------------------------------------------")
|