4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-03-05 20:35:27 +08:00

19 lines
331 B
Python
Raw Normal View History

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')