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