SConscript 449 B

12345678910111213141516171819
  1. from building import *
  2. cwd = GetCurrentDir()
  3. src = []
  4. if GetDepend(['PKG_USING_ONENET_SAMPLE']):
  5. src += Glob('samples/onenet_sample.c')
  6. if GetDepend(['ONENET_USING_MQTT']):
  7. src += Glob('src/onenet_mqtt.c')
  8. if GetDepend(['ONENET_USING_AUTO_REGISTER'] or ['ONENET_USING_HTTP']):
  9. src += Glob('src/onenet_http.c')
  10. path = [cwd + '/inc']
  11. group = DefineGroup('onenet', src, depend = ['PKG_USING_ONENET'], CPPPATH = path)
  12. Return('group')