2020-06-17 16:30:11 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
group = []
|
2020-12-25 18:39:12 +08:00
|
|
|
|
|
|
|
src = Split("""
|
|
|
|
audio_test.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2020-06-17 16:30:11 +08:00
|
|
|
if GetDepend('NU_PKG_USING_NAU88L25'):
|
2020-12-25 18:39:12 +08:00
|
|
|
src += Glob('acodec_nau88l25.c')
|
2020-06-17 16:30:11 +08:00
|
|
|
group = DefineGroup('nu_pkgs_nau88l25', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
2020-12-25 18:39:12 +08:00
|
|
|
elif GetDepend('NU_PKG_USING_NAU8822'):
|
|
|
|
src += Glob('acodec_nau8822.c')
|
|
|
|
group = DefineGroup('nu_pkgs_nau8822', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
2020-06-17 16:30:11 +08:00
|
|
|
Return('group')
|