Files
luban-lite-t3e-pro/bsp/peripheral/codec/SConscript
刘可亮 9f7ba67007 v1.0.3
2024-01-27 08:47:24 +08:00

24 lines
504 B
Python

Import('AIC_ROOT')
Import('PRJ_KERNEL')
from building import *
cwd = GetCurrentDir()
src = []
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')
if GetDepend('AIC_I2S_CODEC_TLV320'):
CPPPATH.append(cwd + 'tlv320aic3101/')
src += Glob('tlv320aic3101/*.c')
group = DefineGroup('codec', src, depend = [''], CPPPATH = CPPPATH)
Return('group')