package/flutter-pi: add an option to enable the charset converter plugin

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
[yann.morin.1998@free.fr:
  - move plugin description, from commit log, to help text
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Adam Duskett 2024-01-02 16:59:28 -07:00 committed by Yann E. MORIN
parent 694b0ce218
commit a3e98b9f2e
2 changed files with 17 additions and 1 deletions

View File

@ -23,6 +23,17 @@ if BR2_PACKAGE_FLUTTER_PI
comment "plugins"
config BR2_PACKAGE_FLUTTER_PI_CHARSET_CONVERTER_PLUGIN
bool "charset converter"
help
Adds platform-side implementation of charset_converter plugin.
Encode and decode charsets using platform built-in converter.
This plugin saves app package size as you don't need external
charset maps or whole libraries like iconv.
https://pub.dev/packages/charset_converter
config BR2_PACKAGE_FLUTTER_PI_GSTREAMER_AUDIO_PLAYER_PLUGIN
bool "gstreamer audio player"
depends on BR2_PACKAGE_HAS_LIBGLES

View File

@ -27,7 +27,6 @@ FLUTTER_PI_CONF_OPTS = \
-DENABLE_VULKAN=OFF \
-DFILESYSTEM_LAYOUT=meta-flutter \
-DLINT_EGL_HEADERS=OFF \
-DBUILD_CHARSET_CONVERTER_PLUGIN=OFF \
-DTRY_BUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=OFF \
-DTRY_BUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=OFF \
-DTRY_ENABLE_OPENGL=OFF \
@ -43,6 +42,12 @@ else
FLUTTER_PI_CONF_OPTS += -DLTO=OFF
endif
ifeq ($(BR2_PACKAGE_FLUTTER_PI_CHARSET_CONVERTER_PLUGIN),y)
FLUTTER_PI_CONF_OPTS += -DBUILD_CHARSET_CONVERTER_PLUGIN=ON
else
FLUTTER_PI_CONF_OPTS += -DBUILD_CHARSET_CONVERTER_PLUGIN=OFF
endif
ifeq ($(BR2_PACKAGE_FLUTTER_PI_GSTREAMER_AUDIO_PLAYER_PLUGIN),y)
FLUTTER_PI_DEPENDENCIES += gstreamer1 gst1-plugins-base
FLUTTER_PI_CONF_OPTS += -DBUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=ON