99a50a8c98
flutter-pi is one of many flutter-embedders. However, flutter-pi is unique because it doesn't require X or Wayland to run. So long as there is support for KMS and DRI flutter-pi should run on any platform that flutter-engine supports. Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> [yann.morin.1998@free.fr: drop unused BR2_PACKAGE_FLUTTER_PI_TEST_PLUGIN] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
86 lines
2.4 KiB
Makefile
86 lines
2.4 KiB
Makefile
################################################################################
|
|
#
|
|
# flutter-pi
|
|
#
|
|
################################################################################
|
|
|
|
FLUTTER_PI_VERSION = d62e84350d2869b3ec1dfb1af21bfe234c4b817f
|
|
FLUTTER_PI_SITE = https://github.com/ardera/flutter-pi.git
|
|
FLUTTER_PI_SITE_METHOD = git
|
|
FLUTTER_PI_LICENSE = MIT
|
|
FLUTTER_PI_LICENSE_FILES = LICENSE
|
|
FLUTTER_PI_DEPENDENCIES = \
|
|
flutter-engine \
|
|
libinput \
|
|
libxkbcommon \
|
|
systemd
|
|
|
|
FLUTTER_PI_CONF_OPTS = \
|
|
-DDEBUG_DRM_PLANE_ALLOCATIONS=OFF \
|
|
-DDUMP_ENGINE_LAYERS=OFF \
|
|
-DENABLE_ASAN=OFF \
|
|
-DENABLE_MTRACE=OFF \
|
|
-DENABLE_SOFTWARE=OFF \
|
|
-DENABLE_TESTS=OFF \
|
|
-DENABLE_TSAN=OFF \
|
|
-DENABLE_UBSAN=OFF \
|
|
-DENABLE_VULKAN=OFF \
|
|
-DFILESYSTEM_LAYOUT=meta-flutter \
|
|
-DLINT_EGL_HEADERS=OFF \
|
|
-DTRY_BUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=OFF \
|
|
-DTRY_BUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=OFF \
|
|
-DTRY_ENABLE_OPENGL=OFF \
|
|
-DTRY_ENABLE_SESSION_SWITCHING=OFF \
|
|
-DTRY_ENABLE_VULKAN=OFF \
|
|
-DVULKAN_DEBUG="OFF" \
|
|
-DUSE_LEGACY_KMS=OFF \
|
|
-DWARN_MISSING_FIELD_INITIALIZERS=OFF
|
|
|
|
ifeq ($(BR2_ENABLE_LTO),y)
|
|
FLUTTER_PI_CONF_OPTS += -DLTO=ON
|
|
else
|
|
FLUTTER_PI_CONF_OPTS += -DLTO=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
|
|
else
|
|
FLUTTER_PI_CONF_OPTS += -DBUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FLUTTER_PI_GSTREAMER_VIDEO_PLAYER_PLUGIN),y)
|
|
FLUTTER_PI_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
|
FLUTTER_PI_CONF_OPTS += -DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=ON
|
|
else
|
|
FLUTTER_PI_CONF_OPTS += -DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FLUTTER_PI_RAW_KEYBOARD_PLUGIN),y)
|
|
FLUTTER_PI_CONF_OPTS += -DBUILD_RAW_KEYBOARD_PLUGIN=ON
|
|
else
|
|
FLUTTER_PI_CONF_OPTS += -DBUILD_RAW_KEYBOARD_PLUGIN=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FLUTTER_PI_TEXT_INPUT_PLUGIN),y)
|
|
FLUTTER_PI_DEPENDENCIES += libinput libxkbcommon
|
|
FLUTTER_PI_CONF_OPTS += -DBUILD_TEXT_INPUT_PLUGIN=ON
|
|
else
|
|
FLUTTER_PI_CONF_OPTS += -DBUILD_TEXT_INPUT_PLUGIN=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
|
FLUTTER_PI_CONF_OPTS += -DENABLE_OPENGL=ON
|
|
else
|
|
FLUTTER_PI_CONF_OPTS += -DENABLE_OPENGL=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SEATD),y)
|
|
FLUTTER_PI_DEPENDENCIES += seatd
|
|
FLUTTER_PI_CONF_OPTS += -DENABLE_SESSION_SWITCHING=ON
|
|
else
|
|
FLUTTER_PI_CONF_OPTS += -DENABLE_SESSION_SWITCHING=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|