summaryrefslogtreecommitdiff
path: root/components/drivers/led/SConscript
blob: 276ca0bd8b83ab4a95f37ee4eae0a8b6a14cc7bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from building import *

group = []

if not GetDepend(['RT_USING_DM', 'RT_USING_LED']):
    Return('group')

cwd = GetCurrentDir()
CPPPATH = [cwd + '/../include']

src = ['led.c']

if GetDepend(['RT_LED_GPIO']):
    src += ['led-gpio.c']

group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)

Return('group')