simulator: update comments,add 'RTT_IN_MODULE' macro in testdll\SConstruct

This commit is contained in:
prife 2013-03-02 18:39:05 +08:00
parent c6ba8eac62
commit 2b0ebebcc2
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,9 @@
# toolchains options # toolchains options
ARCH='sim' ARCH='sim'
#CROSS_TOOL='msvc' or 'gcc' or 'mingw' (mingw is not supported yet!) #CROSS_TOOL='msvc' or 'gcc' or 'mingw'
CROSS_TOOL='mingw' #'msvc' and 'mingw' are both for windows
# 'gcc' is for linux
CROSS_TOOL='msvc'
# cross_tool provides the cross compiler # cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path # EXEC_PATH is the compiler execute path

View File

@ -38,7 +38,7 @@ AddOption('--type',
help='installation prefix') help='installation prefix')
app = GetOption('app') app = GetOption('app')
env = Environment() env = Environment(TARGET_ARCH='x86')
CPPPATH = [ CPPPATH = [
RTT_ROOT + '/include', RTT_ROOT + '/include',
RTT_ROOT + '/bsp/' + rtconfig.BSP, RTT_ROOT + '/bsp/' + rtconfig.BSP,
@ -70,6 +70,7 @@ env.Append(CCFLAGS=rtconfig.CFLAGS)
env.Append(LINKFLAGS=rtconfig.LFLAGS) env.Append(LINKFLAGS=rtconfig.LFLAGS)
env.Append(CPPPATH=CPPPATH) env.Append(CPPPATH=CPPPATH)
env.Append(LIBS='rtthread', LIBPATH='../') env.Append(LIBS='rtthread', LIBPATH='../')
env.Append(CPPDEFINES=['RTT_IN_MODULE'])
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
PrepareModuleBuilding(env, RTT_ROOT) PrepareModuleBuilding(env, RTT_ROOT)