[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 * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = [] src = ['epoll.c']
CPPPATH = [cwd]
if GetDepend('RT_USING_POSIX_EPOLL'): group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_EPOLL'])
src += ['epoll.c']
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
Return('group') Return('group')

View File

@ -3,12 +3,9 @@
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = [] src = ['eventfd.c']
CPPPATH = [cwd] CPPPATH = [cwd]
if GetDepend('RT_USING_POSIX_EVENTFD'): group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_EVENTFD'], CPPPATH = CPPPATH)
src += ['eventfd.c']
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
Return('group') Return('group')

View File

@ -3,12 +3,8 @@
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = [] src = ['signalfd.c']
CPPPATH = [cwd]
if GetDepend('RT_USING_POSIX_SIGNALFD'): group = DefineGroup('POSIX', src, depend = ['RT_USING_SMART','RT_USING_POSIX_SIGNALFD'])
src += ['signalfd.c']
group = DefineGroup('POSIX', src, depend = ['RT_USING_SMART','RT_USING_POSIX_SIGNALFD'], CPPPATH = CPPPATH)
Return('group') Return('group')

View File

@ -3,12 +3,8 @@
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = [] src = ['timerfd.c']
CPPPATH = [cwd]
if GetDepend('RT_USING_DFS'): group = DefineGroup('POSIX', src, depend = ['RT_USING_DFS', 'RT_USING_POSIX_TIMERFD'])
src += ['timerfd.c']
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_TIMERFD'], CPPPATH = CPPPATH)
Return('group') Return('group')