rt-thread/bsp/gkipc/drivers/SConscript

25 lines
809 B
Python
Raw Normal View History

2018-03-04 08:21:19 +08:00
from building import *
Import('rtconfig')
cwd = GetCurrentDir()
src = Glob('*.c')
path = [cwd + '/..']
if GetDepend('SOC_GK7101') or GetDepend('SOC_GK7102'):
path += [cwd + '/../libraries/drv/710X/gh/inc', cwd + '/../libraries/drv/710X/gd/inc']
elif GetDepend('SOC_GK7101S') or GetDepend('SOC_GK7102S'):
path += [cwd + '/../libraries/drv/710XS/gh/inc', cwd + '/../libraries/drv/710XS/gd/inc']
elif GetDepend('SOC_GK7102C'):
path += [cwd + '/../libraries/drv/7102C/gh/inc', cwd + '/../libraries/drv/7102C/gd/inc']
path += [cwd + '/../../../components/drivers/include/drivers']
path += [cwd + '/../libraries/adi/inc']
path += [cwd + '/../platform/board']
path += [cwd + '/../platform']
libcwd = str(Dir('#'))
2020-11-20 13:38:11 +08:00
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
2018-03-04 08:21:19 +08:00
Return('group')