1 | from glob import glob |
---|
2 | |
---|
3 | Import('env') |
---|
4 | |
---|
5 | # TODO: This should be fixed to play nicer with scons, I think. |
---|
6 | font = 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 | |
---|
10 | for 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 | |
---|
16 | if env['WITH_DOXYGEN']: |
---|
17 | env.Doxygen('Doxyfile') |
---|