1from building import * 2Import('rtconfig') 3 4src = [] 5cwd = GetCurrentDir() 6path = [cwd] 7 8# add src and include to group. 9src += Glob('tpc_worker.c') 10if GetDepend('NU_PKG_USING_TPC_ILI'): 11 src += Glob('ili.c') 12elif GetDepend('NU_PKG_USING_TPC_GT911'): 13 src += Glob('gt911.c') 14elif GetDepend('NU_PKG_USING_TPC_FT5446'): 15 src += Glob('ft5446.c') 16elif GetDepend('NU_PKG_USING_TPC_ST1663I'): 17 src += Glob('st1663i.c') 18else: 19 src = [] 20 21group = DefineGroup('nu_pkgs_tpc', src, depend = [''], CPPPATH = path) 22Return('group') 23