Files
luban-lite-t3e-pro/bsp/peripheral/codec/SConscript

24 lines
504 B
Python
Raw Normal View History

2023-08-30 16:21:18 +08:00
Import('AIC_ROOT')
Import('PRJ_KERNEL')
from building import *
cwd = GetCurrentDir()
2024-01-27 08:47:24 +08:00
src = []
2023-08-30 16:21:18 +08:00
CPPPATH = []
if GetDepend('AIC_I2S_CODEC_SELECT'):
CPPPATH.append(cwd)
src += Glob('*.c')
if GetDepend('AIC_I2S_CODEC_ES8388'):
CPPPATH.append(cwd + 'es8388/')
src += Glob('es8388/*.c')
2024-01-27 08:47:24 +08:00
if GetDepend('AIC_I2S_CODEC_TLV320'):
CPPPATH.append(cwd + 'tlv320aic3101/')
src += Glob('tlv320aic3101/*.c')
2023-08-30 16:21:18 +08:00
group = DefineGroup('codec', src, depend = [''], CPPPATH = CPPPATH)
Return('group')