From cfbe17681ede262c607508ff62676d90b15c8ef8 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Thu, 24 Sep 2015 20:58:30 +0800 Subject: [PATCH] [external] fix the VC++ simulation issue for lodepng. --- components/external/lodepng/SConscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/external/lodepng/SConscript b/components/external/lodepng/SConscript index fd05e1013..55d6d01d3 100644 --- a/components/external/lodepng/SConscript +++ b/components/external/lodepng/SConscript @@ -1,4 +1,5 @@ from building import * +import rtconfig cwd = GetCurrentDir() src = Split(''' @@ -7,6 +8,9 @@ lodepng.c 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')