SConscript 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. # add the general drivers.
  6. src = Split("""
  7. """)
  8. # add esp-hosted common source and header files
  9. src += Glob('common/*.c')
  10. src += Glob('host/common/*.c')
  11. path = [cwd + '/host']
  12. path += [cwd + '/common/include']
  13. # add protobuf source and header files
  14. src += Glob('common/protobuf-c/protobuf-c/*.c')
  15. path += [cwd + '/common/protobuf-c']
  16. # add host components source and header files
  17. src += Glob('host/components/src/*.c')
  18. path += [cwd + '/host/components/include']
  19. # add host control_lib source and header files
  20. src += Glob('host/control_lib/src/*.c')
  21. path += [cwd + '/host/control_lib/include']
  22. path += [cwd + '/host/control_lib/src/include']
  23. # add virtual_serial_if source and header files
  24. src += Glob('host/virtual_serial_if/src/*.c')
  25. path += [cwd + '/host/virtual_serial_if/include']
  26. # add driver source and header files
  27. src += Glob('host/driver/*/*.c')
  28. src += Glob('host/driver/transport/spi/*.c')
  29. path += [cwd + '/host/driver/transport/spi']
  30. path += [cwd + '/host/driver/netif']
  31. path += [cwd + '/host/driver/network']
  32. path += [cwd + '/host/driver/serial']
  33. path += [cwd + '/host/driver/transport']
  34. # add port source and header files
  35. src += Glob('host/port/src/*.c')
  36. path += [cwd + '/host/port/include']
  37. # add wlan source and header files
  38. src += Glob('host/wlan/*.c')
  39. path += [cwd + '/host/wlan']
  40. CPPDEFINES = ['']
  41. group = DefineGroup('esp-hosted', src, depend = ['RT_USING_ESP_HOSTED'], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  42. Return('group')