SConscript 453 B

1234567891011121314151617181920
  1. from building import *
  2. Import('rtconfig')
  3. src = []
  4. cwd = GetCurrentDir()
  5. src += Glob('libraries/sths34pf80_reg.c')
  6. src += Glob('libraries/sths34pf80.c')
  7. if GetDepend('PKG_STHS34PF80_USING_SENSOR_V1'):
  8. src += ['sensor_st_sths34pf80.c']
  9. # add sths34pf80 include path.
  10. path = [cwd, cwd + '/libraries']
  11. # add src and include to group.
  12. group = DefineGroup('sths34pf80', src, depend = ['PKG_USING_STHS34PF80'], CPPPATH = path)
  13. Return('group')