2014-04-20 10:09:55 +08:00
|
|
|
from building import *
|
2015-09-24 20:58:30 +08:00
|
|
|
import rtconfig
|
2014-04-20 10:09:55 +08:00
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Split('''
|
|
|
|
lodepng.c
|
|
|
|
''')
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2015-09-24 20:58:30 +08:00
|
|
|
if rtconfig.ARCH == 'sim':
|
2017-11-04 14:42:23 +08:00
|
|
|
group = DefineGroup('RTGUI', src, depend = ['RT_USING_GUIENGINE', 'RTGUI_IMAGE_LODEPNG'], CPPPATH = CPPPATH)
|
2015-09-24 20:58:30 +08:00
|
|
|
else:
|
2017-11-04 14:42:23 +08:00
|
|
|
group = DefineGroup('RTGUI', src, depend = ['RT_USING_GUIENGINE', 'RTGUI_IMAGE_LODEPNG', 'RT_USING_LIBC'], CPPPATH = CPPPATH)
|
2014-04-20 10:09:55 +08:00
|
|
|
|
|
|
|
Return('group')
|