[external] fix the VC++ simulation issue for lodepng.

This commit is contained in:
Bernard Xiong 2015-09-24 20:58:30 +08:00
parent 36713043f8
commit cfbe17681e
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
from building import * from building import *
import rtconfig
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = Split(''' src = Split('''
@ -7,6 +8,9 @@ lodepng.c
CPPPATH = [cwd] CPPPATH = [cwd]
group = DefineGroup('RTGUI', src, depend = ['RT_USING_RTGUI', 'RTGUI_IMAGE_LODEPNG', 'RT_USING_LIBC'], CPPPATH = CPPPATH) if rtconfig.ARCH == 'sim':
group = DefineGroup('RTGUI', src, depend = ['RT_USING_RTGUI', 'RTGUI_IMAGE_LODEPNG'], CPPPATH = CPPPATH)
else:
group = DefineGroup('RTGUI', src, depend = ['RT_USING_RTGUI', 'RTGUI_IMAGE_LODEPNG', 'RT_USING_LIBC'], CPPPATH = CPPPATH)
Return('group') Return('group')