SConscript 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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("ST25RFAL002"),
  11. Dir("subghz"),
  12. Dir("toolbox"),
  13. Dir("u8g2"),
  14. Dir("update_util"),
  15. Dir("print"),
  16. ],
  17. )
  18. env.Append(
  19. CPPPATH=[
  20. "#/",
  21. "#/lib", # TODO: remove!
  22. "#/lib/mlib",
  23. # Ugly hack
  24. Dir("../assets/compiled"),
  25. ],
  26. SDK_HEADERS=[
  27. *(
  28. File(f"#/lib/mlib/m-{name}.h")
  29. for name in (
  30. "algo",
  31. "array",
  32. "bptree",
  33. "core",
  34. "deque",
  35. "dict",
  36. "list",
  37. "rbtree",
  38. "tuple",
  39. "variant",
  40. )
  41. ),
  42. ],
  43. CPPDEFINES=[
  44. '"M_MEMORY_FULL(x)=abort()"',
  45. ],
  46. )
  47. # drivers
  48. # fatfs
  49. # flipper_format
  50. # infrared
  51. # littlefs
  52. # subghz
  53. # toolbox
  54. # one_wire
  55. # micro-ecc
  56. # misc
  57. # digital_signal
  58. # fnv1a_hash
  59. # microtar
  60. # nfc
  61. # qrcode
  62. # u8g2
  63. # update_util
  64. # heatshrink
  65. # nanopb
  66. # apps
  67. # app-scened-template
  68. # callback-connector
  69. # app-template
  70. libs = env.BuildModules(
  71. [
  72. "STM32CubeWB",
  73. "freertos",
  74. "print",
  75. "microtar",
  76. "toolbox",
  77. "ST25RFAL002",
  78. "libusb_stm32",
  79. "drivers",
  80. "fatfs",
  81. "flipper_format",
  82. "one_wire",
  83. "ibutton",
  84. "infrared",
  85. "littlefs",
  86. "mbedtls",
  87. "subghz",
  88. "nfc",
  89. "appframe",
  90. "misc",
  91. "lfrfid",
  92. "flipper_application",
  93. ],
  94. )
  95. Return("libs")