-
Notifications
You must be signed in to change notification settings - Fork 23
/
SConscript
51 lines (34 loc) · 1.31 KB
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from building import *
src = []
cwd = GetCurrentDir()
include_path = [cwd]
if GetDepend('PERIPHERAL_SAMPLES_USING_ADC'):
src += ['adc_vol_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_CAN'):
src += ['can_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_HWTIMER'):
src += ['hwtimer_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_I2C'):
src += ['i2c_aht10_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_IWDG'):
src += ['iwdg_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_LED_BLINK'):
src += ['led_blink_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_PIN'):
src += Glob('pin_beep_sample.c')
if GetDepend('PERIPHERAL_SAMPLES_USING_PWM'):
src += ['pwm_led_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_RTC'):
src += ['rtc_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_SD'):
src += ['sd_sample.c']
if GetDepend('PERIPHERAL_SAMPLES_USING_SERIAL'):
src += Glob('uart_sample.c')
if GetDepend('PERIPHERAL_SAMPLES_USING_SERIAL_DMA'):
src += Glob('uart_dma_sample.c')
if GetDepend('PERIPHERAL_SAMPLES_USING_SPI'):
src += Glob('spi_w25q_sample.c')
if GetDepend('PERIPHERAL_SAMPLES_USING_DRV'):
src += Glob('drv_sample.c')
group = DefineGroup('peripheral-samples', src, depend = ['PKG_USING_PERIPHERAL_SAMPLES'], CPPPATH = include_path)
Return('group')