[libc/posix] limit header files path if disabled

This commit is contained in:
Meco Man 2024-02-11 15:43:04 -05:00
parent cfcc72ee8a
commit 3a25af8b17
4 changed files with 8 additions and 23 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')