summaryrefslogtreecommitdiff
path: root/components/libc/posix/src/SConscript
diff options
context:
space:
mode:
author192.168.1.134 <[email protected]>2021-12-09 19:18:24 +0800
committer192.168.1.134 <[email protected]>2021-12-09 19:18:24 +0800
commit6378f95f00fd51410d2715da55d728d4a40494de (patch)
treebb46a565875d538189e1c1dfc9b1cfddf6862a92 /components/libc/posix/src/SConscript
parentd6b05287bbeaf9369546009e5af445f350b97fe9 (diff)
parent462f093cbd7531098de3b7aadb5f8d5f1b99b4a9 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/libc/posix/src/SConscript')
-rw-r--r--components/libc/posix/src/SConscript20
1 files changed, 7 insertions, 13 deletions
diff --git a/components/libc/posix/src/SConscript b/components/libc/posix/src/SConscript
index 78a2a933ed..87be6b6a06 100644
--- a/components/libc/posix/src/SConscript
+++ b/components/libc/posix/src/SConscript
@@ -2,25 +2,19 @@
from building import *
-src = ['unistd.c']
+src = []
cwd = GetCurrentDir()
CPPPATH = [cwd]
+group = []
-if GetDepend('RT_USING_POSIX_STDIO'):
- src += ['libc.c']
+flag = False
+src += ['unistd.c'] #TODO
if GetDepend('RT_USING_POSIX_DELAY'):
src += ['delay.c']
+ flag = True
-if GetDepend('RT_USING_POSIX_POLL'):
- src += ['poll.c']
-
-if GetDepend('RT_USING_POSIX_SELECT'):
- src += ['select.c']
-
-if GetDepend('RT_USING_POSIX_MMAP'):
- src += ['mmap.c']
-
-group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX'], CPPPATH = CPPPATH)
+if flag == True:
+ group = DefineGroup('POSIX', src, depend = [], CPPPATH = CPPPATH)
Return('group')