diff options
| author | [email protected] <[email protected]> | 2010-12-10 14:18:29 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2010-12-10 14:18:29 +0000 |
| commit | efdd4043bd568549f1ec4aa1db8d2a7a28670684 (patch) | |
| tree | 546749c24b6a7f9d3c79383849e82dbea9cf3bdf /examples/module/ftk_label/SConscript | |
| parent | 0ee9b3d9224fff35a7735f0d9ea3eb20e33f3c2b (diff) | |
add ftk label demo.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1190 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/module/ftk_label/SConscript')
| -rw-r--r-- | examples/module/ftk_label/SConscript | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/module/ftk_label/SConscript b/examples/module/ftk_label/SConscript new file mode 100644 index 0000000000..95137e573b --- /dev/null +++ b/examples/module/ftk_label/SConscript @@ -0,0 +1,34 @@ +Import('env') +Import('projects') +Import('RTT_ROOT') +Import('rtconfig') +Import('TARGET') + +RTMLINKER = RTT_ROOT + '/tools/rtmlinker.exe ' + +# group definitions +group = {} +group['CCFLAGS'] = '' +group['CPPPATH'] = [RTT_ROOT + '/include', + RTT_ROOT + '/examples/module', + RTT_ROOT + '/components/external/ftk/ftk/src'] +group['CPPDEFINES'] = '' + +target = 'label.so' +POST_ACTION = RTMLINKER + ' -l ' + TARGET + ' -o label.mo ' + '$TARGET' + +# add group to project list +projects.append(group) + +src_local = Split(""" +demo_label.c +""") + +env.Append(CCFLAGS = group['CCFLAGS']) +env.Append(CPPPATH = group['CPPPATH']) +env.Append(CPPDEFINES = group['CPPDEFINES']) +module_env = env.Clone(CCFLAGS = ' -mcpu=arm920t -O0 -fPIC') +module_env.Replace(LINKFLAGS = '-z max-page-size=0x4 -shared -fPIC -e main -nostdlib -s') +module_env.Program(target, src_local) +module_env.AddPostAction(target, POST_ACTION) + |
