[SCons] Split targets.py, apply flags from tools
#1392
Merged
targets.py, apply flags from tools
#1392