diff options
| author | bernard.xiong <[email protected]> | 2010-10-14 08:05:30 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-10-14 08:05:30 +0000 |
| commit | f5d6586c1aa7ce18ab4174832aeed20be7fe3162 (patch) | |
| tree | 752e109abcfd4abce0e173a919cd174482eda784 /components/pthreads/SConscript | |
| parent | 809f8c5fd3117c72b6136fd73c47c5eb72a86c6f (diff) | |
add POSIX thread directory.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1008 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads/SConscript')
| -rw-r--r-- | components/pthreads/SConscript | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/components/pthreads/SConscript b/components/pthreads/SConscript new file mode 100644 index 0000000000..8dc41edc0d --- /dev/null +++ b/components/pthreads/SConscript @@ -0,0 +1,26 @@ +Import('env')
+Import('projects')
+Import('RTT_ROOT')
+Import('rtconfig')
+
+# group definitions
+group = {}
+group['name'] = 'pthreads'
+group['src'] = Glob('*.c')
+group['depend'] = 'RT_USING_PTHREAD'
+group['CCFLAGS'] = ''
+group['CPPPATH'] = [RTT_ROOT + '/components/pthreads']
+group['CPPDEFINES'] = ''
+group['LINKFLAGS'] = ''
+
+# add group to project list
+projects.append(group)
+
+env.Append(CCFLAGS = group['CCFLAGS'])
+env.Append(CPPPATH = group['CPPPATH'])
+env.Append(CPPDEFINES = group['CPPDEFINES'])
+env.Append(LINKFLAGS = group['LINKFLAGS'])
+
+objs = env.Object(group['src'])
+
+Return('objs')
|
