SConscript 565 B

1234567891011121314151617181920212223242526
  1. import rtconfig
  2. from building import *
  3. from building import *
  4. Import('rtconfig')
  5. src = []
  6. cwd = GetCurrentDir()
  7. # add gy271 src files.
  8. if GetDepend('PKG_USING_GY271'):
  9. src += Glob('src/gy271.c')
  10. if GetDepend('PKG_HONEY_GY271_USING_SENSOR_V1'):
  11. src += Glob('src/sensor_honey_gy271.c')
  12. if GetDepend('PKG_USING_GY271_SAMPLE'):
  13. src += Glob('samples/gy271_sample.c')
  14. # add mpu6xxx include path.
  15. path = [cwd + '/inc']
  16. # add src and include to group.
  17. group = DefineGroup('gy271', src, depend = ['PKG_USING_GY271'], CPPPATH = path)
  18. Return('group')