SConscript 567 B

1234567891011121314151617181920212223
  1. from building import *
  2. src = []
  3. cwd = GetCurrentDir()
  4. include_path = [cwd]
  5. # add kernel samples.
  6. if GetDepend('PERIPHERAL_SAMPLES_USING_I2C'):
  7. src += ['i2c_aht10_sample.c']
  8. if GetDepend('PERIPHERAL_SAMPLES_USING_PIN'):
  9. src += Glob('pin_beep_sample.c')
  10. if GetDepend('PERIPHERAL_SAMPLES_USING_SERIAL'):
  11. src += Glob('uart_sample.c')
  12. if GetDepend('PERIPHERAL_SAMPLES_USING_SPI'):
  13. src += Glob('spi_w25q_sample.c')
  14. group = DefineGroup('peripheral-samples', src, depend = ['PKG_USING_PERIPHERAL_SAMPLES'], CPPPATH = include_path)
  15. Return('group')