SConscript 478 B

12345678910111213141516171819202122
  1. from building import *
  2. Import('rtconfig')
  3. src = []
  4. cwd = GetCurrentDir()
  5. # add ds18b20 src files.
  6. if GetDepend('PKG_DS18B20_USING_SENSOR_V1'):
  7. src += ['src/dallas_ds18b20_sensor_v1.c']
  8. if GetDepend('PKG_DS18B20_USING_SAMPLE_SENSOR_V1'):
  9. src += Glob('sample/ds18b20_sample.c')
  10. # add ds18b20 include path.
  11. path = [cwd + '/inc']
  12. # add src and include to group.
  13. group = DefineGroup('ds18b20', src, depend = ['PKG_USING_DS18B20'], CPPPATH = path)
  14. Return('group')