summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-09-24 20:58:30 +0800
committerBernard Xiong <[email protected]>2015-09-24 20:58:30 +0800
commitcfbe17681ede262c607508ff62676d90b15c8ef8 (patch)
treed52e5ae30209192431957eee7ba5fdccbba24d0c /components
parent36713043f86a06b475ea49b186e88519744e333d (diff)
[external] fix the VC++ simulation issue for lodepng.
Diffstat (limited to 'components')
-rw-r--r--components/external/lodepng/SConscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/external/lodepng/SConscript b/components/external/lodepng/SConscript
index fd05e1013a..55d6d01d3f 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')