summaryrefslogtreecommitdiff
path: root/components/libc/posix/src/SConscript
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-07 20:47:36 -0500
committerMeco Man <[email protected]>2021-11-07 20:53:57 -0500
commit664a1d6a756ec569221f20cb016110755715842c (patch)
treef1a3bab357012c768e92a59c920392d2f758f76f /components/libc/posix/src/SConscript
parentf0023fb42c6387fc2d475e028a45837a3f9a2d48 (diff)
增加 RT_USING_POSIX_SELECT RT_USING_POSIX_POLL
Diffstat (limited to 'components/libc/posix/src/SConscript')
-rw-r--r--components/libc/posix/src/SConscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/libc/posix/src/SConscript b/components/libc/posix/src/SConscript
index 8712d671c0..384e71261a 100644
--- a/components/libc/posix/src/SConscript
+++ b/components/libc/posix/src/SConscript
@@ -2,10 +2,16 @@
from building import *
-src = Glob('*.c')
+src = ['libc.c','delay.c','unistd.c']
cwd = GetCurrentDir()
CPPPATH = [cwd]
+if GetDepend('RT_USING_POSIX_POLL'):
+ src += ['poll.c']
+
+if GetDepend('RT_USING_POSIX_SELECT'):
+ src += ['select.c']
+
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX'], CPPPATH = CPPPATH)
Return('group')