rt-thread-official/components/drivers/misc/SConscript

36 lines
749 B
Python
Raw Permalink Normal View History

from building import *
cwd = GetCurrentDir()
2023-01-09 10:14:23 +08:00
src = []
CPPPATH = [cwd + '/../include']
group = []
2018-11-19 19:04:44 +08:00
if GetDepend(['RT_USING_ADC']):
src = src + ['adc.c']
2023-01-09 10:14:23 +08:00
2020-06-23 10:43:18 +08:00
if GetDepend(['RT_USING_DAC']):
src = src + ['dac.c']
if GetDepend(['RT_USING_PWM']):
src = src + ['rt_drv_pwm.c']
2023-01-09 10:14:23 +08:00
if GetDepend(['RT_USING_PULSE_ENCODER']):
src = src + ['pulse_encoder.c']
if GetDepend(['RT_USING_INPUT_CAPTURE']):
src = src + ['rt_inputcapture.c']
if GetDepend(['RT_USING_NULL']):
src = src + ['rt_null.c']
if GetDepend(['RT_USING_ZERO']):
src = src + ['rt_zero.c']
if GetDepend(['RT_USING_RANDOM']):
src = src + ['rt_random.c']
if len(src):
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')