[libc/posix] limit header files path if disabled
This commit is contained in:
parent
cfcc72ee8a
commit
3a25af8b17
|
@ -3,12 +3,8 @@
|
|||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
CPPPATH = [cwd]
|
||||
src = ['epoll.c']
|
||||
|
||||
if GetDepend('RT_USING_POSIX_EPOLL'):
|
||||
src += ['epoll.c']
|
||||
|
||||
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
|
||||
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_EPOLL'])
|
||||
|
||||
Return('group')
|
||||
|
|
|
@ -3,12 +3,9 @@
|
|||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
src = ['eventfd.c']
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if GetDepend('RT_USING_POSIX_EVENTFD'):
|
||||
src += ['eventfd.c']
|
||||
|
||||
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
|
||||
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_EVENTFD'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
|
|
|
@ -3,12 +3,8 @@
|
|||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
CPPPATH = [cwd]
|
||||
src = ['signalfd.c']
|
||||
|
||||
if GetDepend('RT_USING_POSIX_SIGNALFD'):
|
||||
src += ['signalfd.c']
|
||||
|
||||
group = DefineGroup('POSIX', src, depend = ['RT_USING_SMART','RT_USING_POSIX_SIGNALFD'], CPPPATH = CPPPATH)
|
||||
group = DefineGroup('POSIX', src, depend = ['RT_USING_SMART','RT_USING_POSIX_SIGNALFD'])
|
||||
|
||||
Return('group')
|
||||
|
|
|
@ -3,12 +3,8 @@
|
|||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
CPPPATH = [cwd]
|
||||
src = ['timerfd.c']
|
||||
|
||||
if GetDepend('RT_USING_DFS'):
|
||||
src += ['timerfd.c']
|
||||
|
||||
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_TIMERFD'], CPPPATH = CPPPATH)
|
||||
group = DefineGroup('POSIX', src, depend = ['RT_USING_DFS', 'RT_USING_POSIX_TIMERFD'])
|
||||
|
||||
Return('group')
|
||||
|
|
Loading…
Reference in New Issue