Config.in 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Flutter includes a vender copy of clang which is mandatory to use for
  2. # compiling. These are the supported architectures.
  3. config BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
  4. bool
  5. default y if BR2_aarch64
  6. default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5
  7. default y if BR2_x86_64
  8. config BR2_PACKAGE_FLUTTER_ENGINE
  9. bool "flutter-engine"
  10. depends on BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
  11. depends on BR2_TOOLCHAIN_USES_GLIBC
  12. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  13. depends on BR2_INSTALL_LIBSTDCPP
  14. depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
  15. depends on !BR2_STATIC_LIBS
  16. depends on BR2_USE_WCHAR # std::wstring
  17. depends on BR2_HOST_GCC_AT_LEAST_5
  18. depends on BR2_PACKAGE_HAS_LIBGL || BR2_PACKAGE_HAS_LIBGLES
  19. select BR2_PACKAGE_FREETYPE
  20. select BR2_PACKAGE_HOST_DEPOT_TOOLS
  21. select BR2_PACKAGE_ZLIB
  22. help
  23. Flutter is Google's SDK for crafting beautiful, fast user
  24. experience for mobile, web, and desktop from a single
  25. codebase. Flutter works with existing code, is used by
  26. developers and organizations around the world, and is
  27. free and open source.
  28. The Flutter Engine is a portable runtime for hosting
  29. Flutter applications. It implements Flutter's core
  30. libraries, including animation and graphics, file and
  31. network I/O, accessibility support, plugin architecture,
  32. and a Dart runtime and compile toolchain. Most developers
  33. will interact with Flutter via the Flutter Framework,
  34. which provides a modern, reactive framework, and a rich
  35. set of platform, layout and foundation widgets.
  36. https://github.com/flutter/engine
  37. if BR2_PACKAGE_FLUTTER_ENGINE
  38. config FLUTTER_ENGINE_RUNTIME_MODE_PROFILE
  39. bool "enable profiling"
  40. help
  41. Some debugging ability is maintained—enough to profile your
  42. apps performance. Profile mode is disabled on the emulator
  43. and simulator, because their behavior is not representative
  44. of real performance. Profile mode is similar to release mode,
  45. with the following differences:
  46. - Some service extensions, such as the one that enables the
  47. performance overlay, are enabled.
  48. - Tracing is enabled, and tools supporting source-level
  49. debugging (such as DevTools) can connect to the process.
  50. If this option is left unselected, the global option
  51. BR2_ENABLE_RUNTIME_DEBUG determines whether to build Flutter
  52. in release or debug mode.
  53. https://docs.flutter.dev/testing/build-modes#profile
  54. endif
  55. comment "flutter-engine needs an OpenGL or OpenGLES backend"
  56. depends on BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
  57. depends on !BR2_PACKAGE_HAS_LIBGL && !BR2_PACKAGE_HAS_LIBGLES
  58. comment "flutter-engine needs a glibc toolchain w/ wchar, C++, gcc >= 5, dynamic library, host gcc >= 5"
  59. depends on BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
  60. depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP \
  61. || !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || BR2_STATIC_LIBS \
  62. || !BR2_USE_WCHAR || !BR2_HOST_GCC_AT_LEAST_5
  63. comment "flutter-engine needs a toolchain not affected by GCC bug 64735"
  64. depends on BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
  65. depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735