SConscript 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Import("env")
  2. env.Append(
  3. LINT_SOURCES=[
  4. Dir("app-scened-template"),
  5. Dir("digital_signal"),
  6. Dir("drivers"),
  7. Dir("flipper_format"),
  8. Dir("infrared"),
  9. Dir("nfc"),
  10. Dir("one_wire"),
  11. Dir("ST25RFAL002"),
  12. Dir("subghz"),
  13. Dir("toolbox"),
  14. Dir("u8g2"),
  15. Dir("update_util"),
  16. Dir("print"),
  17. ],
  18. SDK_HEADERS=[
  19. File("one_wire/one_wire_host_timing.h"),
  20. File("one_wire/one_wire_host.h"),
  21. File("one_wire/one_wire_slave.h"),
  22. File("one_wire/one_wire_device.h"),
  23. File("one_wire/ibutton/ibutton_worker.h"),
  24. File("one_wire/maxim_crc.h"),
  25. ],
  26. )
  27. env.Append(
  28. CPPPATH=[
  29. "#/",
  30. "#/lib", # TODO: remove!
  31. "#/lib/mlib",
  32. # Ugly hack
  33. Dir("../assets/compiled"),
  34. ],
  35. CPPDEFINES=[
  36. '"M_MEMORY_FULL(x)=abort()"',
  37. ],
  38. )
  39. # drivers
  40. # fatfs
  41. # flipper_format
  42. # infrared
  43. # littlefs
  44. # subghz
  45. # toolbox
  46. # misc
  47. # digital_signal
  48. # fnv1a-hash
  49. # micro-ecc
  50. # microtar
  51. # nfc
  52. # one_wire
  53. # qrcode
  54. # u8g2
  55. # update_util
  56. # heatshrink
  57. # nanopb
  58. # apps
  59. # app-scened-template
  60. # callback-connector
  61. # app-template
  62. libs = env.BuildModules(
  63. [
  64. "STM32CubeWB",
  65. "freertos",
  66. "print",
  67. "microtar",
  68. "toolbox",
  69. "ST25RFAL002",
  70. "libusb_stm32",
  71. "drivers",
  72. "fatfs",
  73. "flipper_format",
  74. "infrared",
  75. "littlefs",
  76. "mbedtls",
  77. "subghz",
  78. "nfc",
  79. "appframe",
  80. "misc",
  81. "lfrfid",
  82. "flipper_application",
  83. ],
  84. )
  85. Return("libs")