12 from SCons.Script
import GetOption
38 'compile':
'\033[94m',
40 'install':
'\033[95m',
45 'cleanup':
'\033[37m',
50 'compile':
'\033[2m\033[34m',
51 'link':
'\033[2m\033[32m',
52 'install':
'\033[2m\033[35m',
53 'copy':
'\033[2m\033[35m',
54 'map':
'\033[2m\033[36m',
55 'dict':
'\033[2m\033[33m',
57 'cleanup':
'\033[30m',
63 color_map = color_map_none
64 if GetOption(
'color') ==
'light':
65 color_map = color_map_light
66 elif GetOption(
'color') ==
'dark':
67 color_map = color_map_dark
69 if not GetOption(
'verbose'):
70 if GetOption(
'no-symlink'):
71 install_text =
'installing'
73 install_text =
'symlinking'
75 SHCXXCOMSTR=
'${CXXCOMSTR}',
76 CXXCOMSTR=color_map[
'compile'] +
'*** compiling : ${SOURCE}' + color_map[
'end'],
77 FORTRANPPCOMSTR=
'${CXXCOMSTR}',
78 SHFORTRANPPCOMSTR=
'${CXXCOMSTR}',
79 CCCOMSTR=
'${CXXCOMSTR}',
80 SHCCCOMSTR=
'${CXXCOMSTR}',
81 SHLINKCOMSTR=
'${LINKCOMSTR}',
82 LINKCOMSTR=color_map[
'link'] +
'*** linking : ${TARGET}' + color_map[
'end'],
83 INSTALLSTR=color_map[
'install'] +
'*** ' + install_text +
' : ${TARGET}' + color_map[
'end'],
84 COPYCOMSTR=color_map[
'copy'] +
'*** copying : ${TARGET}' + color_map[
'end'],
85 MAPCOMSTR=color_map[
'map'] +
'*** map : ${TARGET}' + color_map[
'end'],
86 ROOTCLINGCOMSTR=color_map[
'dict'] +
'*** dictionary : ${TARGET}' + color_map[
'end'],
87 CLASSVERSIONCOMSTR=color_map[
'dict'] +
'*** checking : ${SOURCE}' + color_map[
'end'],
88 MODULEIOCOMSTR=color_map[
'doc'] +
'*** module-io : ${TARGET}' + color_map[
'end'],
89 DOXYGENCOMSTR=color_map[
'doc'] +
'*** doxygen : ${TARGET}' + color_map[
'end'],
90 STRIPCOMSTR=color_map[
'strip'] +
'*** stripping : ${TARGET}' + color_map[
'end'],
93 env[
'CLEANUPCOMSTR'] = color_map[
'cleanup'] +
'*** removing : %s' \