1import rtconfig 2from building import * 3 4cwd = GetCurrentDir() 5src = Glob('*.c') 6CPPPATH = [cwd] 7 8#remove other no use files 9if GetDepend('SAM_CAN_EXAMPLE') == False: 10 SrcRemove(src, ['can_demo.c']) 11 12if GetDepend('SAM_I2C_EXAMPLE') == False: 13 SrcRemove(src, ['i2c_demo.c']) 14 15if GetDepend('SAM_ADC_EXAMPLE') == False: 16 SrcRemove(src, ['adc_demo.c']) 17 18if GetDepend('SAM_LWIP_EXAMPLE') == False: 19 SrcRemove(src, ['lwip_demo.c']) 20 21group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) 22 23Return('group') 24