SConscript 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Import('RTT_ROOT')
  2. from building import *
  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('mqtt/*.c')
  8. src += Glob('mqttclient/*.c')
  9. src += Glob('network/*.c')
  10. src += Glob('platform/RT-Thread/*.c')
  11. path = [cwd + '/common']
  12. path += [cwd + '/mqtt']
  13. path += [cwd + '/mqttclient']
  14. path += [cwd + '/network']
  15. path += [cwd + '/platform/RT-Thread']
  16. if GetDepend(['KAWAII_MQTT_NETWORK_TYPE_TLS']):
  17. src += Glob('network/mbedtls/library/*.c')
  18. src += Glob('network/mbedtls/wrapper/*.c')
  19. path += [cwd + '/network/mbedtls/wrapper']
  20. path += [cwd + '/network/mbedtls/include']
  21. path += [cwd + '/network/mbedtls/include/mbedtls']
  22. if GetDepend(['KAWAII_MQTT_LOG_IS_SALOF']):
  23. src += Glob('common/log/*.c')
  24. src += Glob('common/log/arch/rt-thread/*.c')
  25. path += [cwd + '/common/log']
  26. if GetDepend(['PKG_USING_KAWAII_MQTT_TEST']):
  27. src += Glob('test/*.c')
  28. group = DefineGroup('kawaii_mqtt',src , depend = ['PKG_USING_KAWAII_MQTT'], CPPPATH = path)
  29. Return('group')