summaryrefslogtreecommitdiff
path: root/bsp/simulator/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/simulator/SConstruct')
-rwxr-xr-x[-rw-r--r--]bsp/simulator/SConstruct56
1 files changed, 31 insertions, 25 deletions
diff --git a/bsp/simulator/SConstruct b/bsp/simulator/SConstruct
index 0bd7e05ec8..4dd5342cc6 100644..100755
--- a/bsp/simulator/SConstruct
+++ b/bsp/simulator/SConstruct
@@ -18,38 +18,44 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import *
-TARGET = 'rtthread-win32.' + rtconfig.TARGET_EXT
env = Environment()
Export('RTT_ROOT')
Export('rtconfig')
-libs = Split('''
-winmm
-gdi32
-winspool
-comdlg32
-advapi32
-shell32
-ole32
-oleaut32
-uuid
-odbc32
-odbccp32
-''')
-definitions = Split('''
-WIN32
-_DEBUG
-_CONSOLE
-MSVC
-_TIME_T_DEFINED
-''')
+if rtconfig.PLATFORM == 'cl':
+ TARGET = 'rtthread-win32.' + rtconfig.TARGET_EXT
+
+ libs = Split('''
+ winmm
+ gdi32
+ winspool
+ comdlg32
+ advapi32
+ shell32
+ ole32
+ oleaut32
+ uuid
+ odbc32
+ odbccp32
+ ''')
+ definitions = Split('''
+ WIN32
+ _DEBUG
+ _CONSOLE
+ MSVC
+ _TIME_T_DEFINED
+ ''')
+ env.Append(CCFLAGS=rtconfig.CFLAGS)
+ env.Append(LINKFLAGS=rtconfig.LFLAGS)
+ env['LIBS']=libs
+ env['CPPDEFINES']=definitions
+else:
+ TARGET = 'rtthread'
+ env.Append(CCFLAGS=rtconfig.CFLAGS)
+ env.Append(LINKFLAGS=rtconfig.LFLAGS)
-env.Append(CCFLAGS=rtconfig.CFLAGS)
-env.Append(LINKFLAGS=rtconfig.LFLAGS)
-env['LIBS']=libs
-env['CPPDEFINES']=definitions
# prepare building environment