rt-thread/bsp/microchip/common/applications/SConscript

24 lines
538 B
Python
Raw Normal View History

import rtconfig
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
#remove other no use files
if GetDepend('SAM_CAN_EXAMPLE') == False:
SrcRemove(src, ['can_demo.c'])
if GetDepend('SAM_I2C_EXAMPLE') == False:
SrcRemove(src, ['i2c_demo.c'])
if GetDepend('SAM_ADC_EXAMPLE') == False:
SrcRemove(src, ['adc_demo.c'])
if GetDepend('SAM_LWIP_EXAMPLE') == False:
SrcRemove(src, ['lwip_demo.c'])
2023-01-09 10:14:23 +08:00
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
Return('group')