mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-24 16:27:16 +00:00
module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@742 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
27
components/module/examples/application/basicapp/SConscript
Normal file
27
components/module/examples/application/basicapp/SConscript
Normal file
@@ -0,0 +1,27 @@
|
||||
Import('env')
|
||||
Import('projects')
|
||||
Import('RTT_ROOT')
|
||||
Import('rtconfig')
|
||||
|
||||
# group definitions
|
||||
group = {}
|
||||
group['name'] = 'examples'
|
||||
group['src'] = Glob('*.c')
|
||||
group['CCFLAGS'] = ''
|
||||
group['CPPPATH'] = [RTT_ROOT + '/components/module/interface']
|
||||
group['CPPDEFINES'] = ''
|
||||
|
||||
target = 'hello.mo'
|
||||
|
||||
# add group to project list
|
||||
projects.append(group)
|
||||
|
||||
env.Append(CCFLAGS = group['CCFLAGS'])
|
||||
env.Append(CPPPATH = group['CPPPATH'])
|
||||
env.Append(CPPDEFINES = group['CPPDEFINES'])
|
||||
module_env = env.Clone(CPPDEFINE = 'RT_MODULE')
|
||||
module_env.Replace(LINKFLAGS = ' -mcpu=arm920t -r -d -e rt_module_entry -nostdlib -s')
|
||||
|
||||
src_local = Glob('*.c')
|
||||
|
||||
module_env.Program(target, src_local)
|
||||
Reference in New Issue
Block a user