浏览代码

app module of simlator: rename librtthread.a to rtthread.lib after post-building

prife 12 年之前
父节点
当前提交
a07b4a4396
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      bsp/simulator/SConstruct

+ 3 - 0
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: