4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-20 22:33:32 +08:00
2023-01-08 22:52:13 -05:00

24 lines
538 B
Python

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'])
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
Return('group')