diff options
| author | prife <[email protected]> | 2013-02-26 16:03:08 +0800 |
|---|---|---|
| committer | prife <[email protected]> | 2013-02-26 16:03:08 +0800 |
| commit | 9ccdf4172ee0fc3e7fe8ac0db122a81572e9c0f8 (patch) | |
| tree | d46136702ab7898c6ac2488447a7d548ff76a252 /bsp/simulator/SConstruct | |
| parent | 278cc914b3ba76a0c7a6b46d23f0f1bbc7491331 (diff) | |
basic mingw support for simulator: kernel and finsh
Diffstat (limited to 'bsp/simulator/SConstruct')
| -rwxr-xr-x | bsp/simulator/SConstruct | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/bsp/simulator/SConstruct b/bsp/simulator/SConstruct index 12dbd7a025..bc6db0ef8d 100755 --- a/bsp/simulator/SConstruct +++ b/bsp/simulator/SConstruct @@ -51,13 +51,34 @@ if rtconfig.PLATFORM == 'cl': env.Append(LINKFLAGS=rtconfig.LFLAGS) env['LIBS']=libs env['CPPDEFINES']=definitions +elif rtconfig.PLATFORM == 'mingw': + libs = Split(''' + winmm + gdi32 + winspool + comdlg32 + advapi32 + shell32 + ole32 + oleaut32 + uuid + odbc32 + odbccp32 + ''') + TARGET = 'rtthread-win32.' + rtconfig.TARGET_EXT + env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + env['LIBS']=libs + env.PrependENVPath('PATH', rtconfig.EXEC_PATH) else: TARGET = 'rtthread' env.Append(CCFLAGS=rtconfig.CFLAGS) env.Append(LINKFLAGS=rtconfig.LFLAGS) env.Append(LIBS=['m']) - # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False, remove_components=['rtgui']) |
