blob: 9bc4192bd2ab551c5c0e4ca876df64fd178105f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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')
|