application.fam 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. App(
  2. appid="upython",
  3. name="uPython",
  4. apptype=FlipperAppType.EXTERNAL,
  5. entry_point="upython",
  6. stack_size=4 * 1024,
  7. fap_category="Tools",
  8. fap_version="1.7",
  9. fap_description="Compile and execute MicroPython scripts",
  10. fap_icon="icon.png",
  11. fap_icon_assets="images",
  12. fap_author="Oliver Fabel",
  13. fap_file_assets="examples",
  14. fap_weburl="https://github.com/ofabel/mp-flipper",
  15. flags=["UnloadAssetPacks"],
  16. sources=[
  17. "*.c*",
  18. "!./lib/micropython",
  19. "!./lib/micropython-port",
  20. "!./flipperzero",
  21. "!./node_modules",
  22. "!./examples",
  23. "!./assets",
  24. "!./docs",
  25. "!./venv",
  26. "!./dist",
  27. ],
  28. fap_private_libs=[
  29. Lib(
  30. name="micropython",
  31. cflags=[
  32. "-Wno-error",
  33. "-w",
  34. #
  35. # required for floating point support
  36. #
  37. "-mcpu=cortex-m4",
  38. "-mfloat-abi=hard",
  39. "-mfpu=fpv4-sp-d16",
  40. "-mthumb",
  41. "-fsingle-precision-constant",
  42. "-fno-math-errno",
  43. ],
  44. cincludes=["."],
  45. ),
  46. Lib(
  47. name="micropython-port",
  48. cflags=[
  49. "-Wno-error",
  50. "-w",
  51. #
  52. # required for floating point support
  53. #
  54. "-mcpu=cortex-m4",
  55. "-mfloat-abi=hard",
  56. "-mfpu=fpv4-sp-d16",
  57. "-mthumb",
  58. "-fsingle-precision-constant",
  59. "-fno-math-errno",
  60. ],
  61. cincludes=["."],
  62. ),
  63. ],
  64. )