SConscript 633 B

12345678910111213141516171819202122232425
  1. from building import *
  2. Import('RTT_ROOT')
  3. # get current directory
  4. cwd = GetCurrentDir()
  5. # The set of source files associated with this SConscript file.
  6. src = Glob('common/*.c')
  7. src += Glob('coreMqtt/*.c')
  8. src += Glob('mqttclient/*.c')
  9. src += Glob('platform/rtthread/*.c')
  10. path = [cwd + '/common']
  11. path += [cwd + '/coreMqtt']
  12. path += [cwd + '/mqttclient/include']
  13. path += [cwd + '/platform/rtthread']
  14. if GetDepend(['PKG_USING_RYANMQTT_EXAMPLE']):
  15. src += Glob('example/*.c')
  16. path += [cwd + '/example']
  17. group = DefineGroup('RyanMqtt', src, depend=[
  18. 'PKG_USING_RYANMQTT'], CPPPATH=path)
  19. Return('group')