diff options
| author | 陈豪 | Jacob Chen <[email protected]> | 2015-03-29 18:35:44 +0800 |
|---|---|---|
| committer | 陈豪 | Jacob Chen <[email protected]> | 2015-03-29 18:35:44 +0800 |
| commit | 9a4dacaad743801c9be2dbae49251c4e1b8f99a9 (patch) | |
| tree | 34def3bef5c5fc4a9b7594eba5a2729f8c86aab0 /components/libc/SConscript | |
| parent | daac5388afe5a18d51e9839719de8423b62b00c1 (diff) | |
| parent | 5af7abd8c2e8b8a39c0bf096bdf9b5cb08f266fa (diff) | |
Merge pull request #3 from RT-Thread/master
111
Diffstat (limited to 'components/libc/SConscript')
| -rw-r--r-- | components/libc/SConscript | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/components/libc/SConscript b/components/libc/SConscript index 19494ea7c2..4ca00c5b86 100644 --- a/components/libc/SConscript +++ b/components/libc/SConscript @@ -1,13 +1,20 @@ # for libc component import os -Import('RTT_ROOT') +Import('rtconfig') + +from building import * objs = [] -list = os.listdir(os.path.join(RTT_ROOT, 'components', 'libc')) -for d in list: - path = os.path.join(RTT_ROOT, 'components', 'libc', d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) +if GetDepend('RT_USING_LIBC'): + if rtconfig.PLATFORM == 'gcc': + objs = objs + SConscript('newlib/SConscript') + elif rtconfig.PLATFORM == 'armcc': + objs = objs + SConscript('armlibc/SConscript') + elif rtconfig.PLATFORM == 'iar': + objs = objs + SConscript('dlib/SConscript') +else: + if rtconfig.PLATFORM == 'gcc': + objs = objs + SConscript('minilibc/SConscript') Return('objs') |
