summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprife <[email protected]>2013-02-27 02:04:43 +0800
committerprife <[email protected]>2013-02-27 02:04:43 +0800
commita07b4a43965f8d9edc57490ca5ab03d976d8d3a2 (patch)
tree8af86e321fc674413c8096326734fec1ace99546
parent5923b4abc800159fac6b09ab1e44b5b068e88026 (diff)
app module of simlator: rename librtthread.a to rtthread.lib after post-building
-rwxr-xr-xbsp/simulator/SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/bsp/simulator/SConstruct b/bsp/simulator/SConstruct
index 6f35921ba9..4514e850e4 100755
--- a/bsp/simulator/SConstruct
+++ b/bsp/simulator/SConstruct
@@ -134,6 +134,9 @@ if GetDepend('RT_USING_MODULE'):
elif res == 'yes':
if rtconfig.PLATFORM == 'cl':
objs += ['rtthread.def']
+ elif rtconfig.PLATFORM == 'mingw':
+ rtconfig.POST_ACTION = 'del /Q rtthread.lib \n rename librtthread.a rtthread.lib\n'
+ # rtconfig.POST_ACTION = 'lib /machine:i386 /def:rtthread.def /out:rtthread.lib'
env.SharedLibrary("rtthread.dll", objs)
program = env.Program(TARGET, 'dummy.c', LIBS='rtthread', LIBPATH='.')
else: