summaryrefslogtreecommitdiff
path: root/bsp/microchip/common/applications/SConscript
blob: a2d433aefa2e17814186282c4e33c614799517ea (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')