-
Notifications
You must be signed in to change notification settings - Fork 46
/
SConscript
33 lines (24 loc) · 959 Bytes
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# RT-Thread building script for GuiEngine
import os
import rtconfig
from building import *
cwd = GetCurrentDir()
src = Glob('src/*.c')
CPPPATH = [cwd + '/include']
if GetDepend('GUIENGINE_IMAGE_TJPGD'):
src += Glob('libraries/tjpgd1a/*.c')
CPPPATH += [cwd + '/libraries/tjpgd1a']
if GetDepend('GUIENGINE_IMAGE_LODEPNG'):
if rtconfig.ARCH == 'sim':
src += Glob('libraries/lodepng/*.c')
CPPPATH += [cwd + '/libraries/lodepng']
else:
if GetDepend('RT_USING_LIBC'):
src += Glob('libraries/lodepng/*.c')
CPPPATH += [cwd + '/libraries/lodepng']
group = DefineGroup('GuiEngine', src, depend = ['PKG_USING_GUIENGINE'], CPPPATH = CPPPATH)
if GetDepend('GUIENGINE_USING_DEMO'):
group = group + SConscript(os.path.join('example', 'SConscript'))
if GetDepend('GUIENGINE_USING_TTF'):
group = group + SConscript(os.path.join('libraries/freetype-2.6.2', 'SConscript'))
Return('group')