mirror of
https://github.com/mudita/MuditaOS.git
synced 2025-12-23 22:17:57 -05:00
Introducing changes required for adding BellHybird target without removing PurePhone. Adden new targets: * Pure (builds PurePhone and PurePhone.img) * Bell (builds BellHybird and BellHybird.img) * [PurePhone|BellHybrid]-[UpdatePackage|StandaloneImage)
29 lines
880 B
CMake
29 lines
880 B
CMake
option(COLOR_OUTPUT "Use colored output" ON)
|
|
set(CMAKE_COLOR_MAKEFILE ${COLOR_OUTPUT})
|
|
|
|
if (COLOR_OUTPUT)
|
|
string(ASCII 27 Esc)
|
|
set(ColourReset "${Esc}[m")
|
|
set(ColourBold "${Esc}[1m")
|
|
set(Red "${Esc}[31m")
|
|
set(Green "${Esc}[32m")
|
|
set(Yellow "${Esc}[33m")
|
|
set(Blue "${Esc}[34m")
|
|
set(Magenta "${Esc}[35m")
|
|
set(Cyan "${Esc}[36m")
|
|
set(White "${Esc}[37m")
|
|
set(BoldRed "${Esc}[1;31m")
|
|
set(BoldGreen "${Esc}[1;32m")
|
|
set(BoldYellow "${Esc}[1;33m")
|
|
set(BoldBlue "${Esc}[1;34m")
|
|
set(BoldMagenta "${Esc}[1;35m")
|
|
set(BoldCyan "${Esc}[1;36m")
|
|
set(BoldWhite "${Esc}[1;37m")
|
|
|
|
set(Orange "${Esc}[38;2;255;100;0m")
|
|
|
|
add_compile_options (-fdiagnostics-color=always)
|
|
else (COLOR_OUTPUT)
|
|
add_compile_options (-fdiagnostics-color=never)
|
|
endif (COLOR_OUTPUT)
|