Ticket #21970: SConscript

File SConscript, 562 bytes (added by tcwan (TC Wan), 15 years ago)

SConscript which calls the generate_fonts.py script

Line 
1from glob import glob
2
3Import('env')
4
5# TODO: This should be fixed to play nicer with scons, I think.
6font = env.Command('_font.h', ['_font.h.base', 'font.8x5.png'],
7                   './scripts/generate_fonts.py base/font.8x5.png '
8                   'base/_font.h.base base/_font.h')
9
10for source in glob('*.[cS]')+glob('drivers/*.[cS]')+glob('lib/*/*.[cS]'):
11    obj = env.Object(source.split('.')[0], source)
12    env.Append(NXOS_BASEPLATE=obj)
13    if source == 'display.c':
14        env.Depends(obj, font)
15
16if env['WITH_DOXYGEN']:
17    env.Doxygen('Doxyfile')