From ed202e35d0562e6cd68e1f0a5ead5bcd29d93745 Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Tue, 20 Jul 2021 17:00:17 +0900 Subject: [PATCH] Add so file build (#12) --- .../flutter-drm-eglstream-backend.bb | 2 +- .../flutter-drm-eglstream-so.bb | 24 +++++++++++++++++++ .../flutter-drm-gbm-backend.bb | 2 +- .../flutter-drm-gbm-so.bb | 24 +++++++++++++++++++ .../flutter-wayland-client.bb | 2 +- .../flutter-wayland-so.bb | 22 +++++++++++++++++ 6 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 recipes-graphics/flutter-embedded-linux/flutter-drm-eglstream-so.bb create mode 100644 recipes-graphics/flutter-embedded-linux/flutter-drm-gbm-so.bb create mode 100644 recipes-graphics/flutter-embedded-linux/flutter-wayland-so.bb diff --git a/recipes-graphics/flutter-embedded-linux/flutter-drm-eglstream-backend.bb b/recipes-graphics/flutter-embedded-linux/flutter-drm-eglstream-backend.bb index 00d7c15..214f63b 100644 --- a/recipes-graphics/flutter-embedded-linux/flutter-drm-eglstream-backend.bb +++ b/recipes-graphics/flutter-embedded-linux/flutter-drm-eglstream-backend.bb @@ -1,4 +1,4 @@ -SUMMARY = "Flutter embedding for embedded Linux with DRM-EGLStream backend" +SUMMARY = "Flutter embedding for eLinux with DRM-EGLStream backend" DESCRIPTION = "Build the flutter-drm-eglstream-backend project" require repository.inc diff --git a/recipes-graphics/flutter-embedded-linux/flutter-drm-eglstream-so.bb b/recipes-graphics/flutter-embedded-linux/flutter-drm-eglstream-so.bb new file mode 100644 index 0000000..b12da80 --- /dev/null +++ b/recipes-graphics/flutter-embedded-linux/flutter-drm-eglstream-so.bb @@ -0,0 +1,24 @@ +SUMMARY = "Flutter embedding for eLinux with DRM-EGLStream backend (.so)" +DESCRIPTION = "Build .so file of the Flutter embedding for eLinux with DRM-EGLStream" + +require repository.inc +require dependency.inc + +DEPENDS += "libdrm \ + virtual/mesa \ + libinput \ + udev \ + systemd" + +EXTRA_OECMAKE = "-DBUILD_ELINUX_SO=ON \ + -DBACKEND_TYPE=DRM-EGLSTREAM \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_ELINUX_EMBEDDER_LOG=ON \ + -DFLUTTER_RELEASE=ON" + +do_install() { + install -d ${D}${libdir} + install -m 0755 ${WORKDIR}/build/libflutter_elinux_eglstream.so ${D}${bindir} +} + +require tasks.inc diff --git a/recipes-graphics/flutter-embedded-linux/flutter-drm-gbm-backend.bb b/recipes-graphics/flutter-embedded-linux/flutter-drm-gbm-backend.bb index b43b522..a53155a 100644 --- a/recipes-graphics/flutter-embedded-linux/flutter-drm-gbm-backend.bb +++ b/recipes-graphics/flutter-embedded-linux/flutter-drm-gbm-backend.bb @@ -1,4 +1,4 @@ -SUMMARY = "Flutter embedding for embedded Linux with DRM-GBM backend" +SUMMARY = "Flutter embedding for eLinux with DRM-GBM backend" DESCRIPTION = "Build the flutter-drm-gbm-backend project" require repository.inc diff --git a/recipes-graphics/flutter-embedded-linux/flutter-drm-gbm-so.bb b/recipes-graphics/flutter-embedded-linux/flutter-drm-gbm-so.bb new file mode 100644 index 0000000..7e1bba8 --- /dev/null +++ b/recipes-graphics/flutter-embedded-linux/flutter-drm-gbm-so.bb @@ -0,0 +1,24 @@ +SUMMARY = "Flutter embedding for eLinux with DRM-GBM backend (.so)" +DESCRIPTION = "Build .so file of the Flutter embedding for eLinux with DRM-GBM" + +require repository.inc +require dependency.inc + +DEPENDS += "libdrm \ + virtual/mesa \ + libinput \ + udev \ + systemd" + +EXTRA_OECMAKE = "-DBUILD_ELINUX_SO=ON \ + -DBACKEND_TYPE=DRM-GBM \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_ELINUX_EMBEDDER_LOG=ON \ + -DFLUTTER_RELEASE=ON" + +do_install() { + install -d ${D}${libdir} + install -m 0755 ${WORKDIR}/build/libflutter_elinux_gbm.so ${D}${bindir} +} + +require tasks.inc diff --git a/recipes-graphics/flutter-embedded-linux/flutter-wayland-client.bb b/recipes-graphics/flutter-embedded-linux/flutter-wayland-client.bb index 5120aeb..4e0ecd7 100644 --- a/recipes-graphics/flutter-embedded-linux/flutter-wayland-client.bb +++ b/recipes-graphics/flutter-embedded-linux/flutter-wayland-client.bb @@ -1,4 +1,4 @@ -SUMMARY = "Flutter embedding for embedded Linux with Wayland backend" +SUMMARY = "Flutter embedding for eLinux with Wayland backend" DESCRIPTION = "Build the flutter-wayland-client project" require repository.inc diff --git a/recipes-graphics/flutter-embedded-linux/flutter-wayland-so.bb b/recipes-graphics/flutter-embedded-linux/flutter-wayland-so.bb new file mode 100644 index 0000000..922389e --- /dev/null +++ b/recipes-graphics/flutter-embedded-linux/flutter-wayland-so.bb @@ -0,0 +1,22 @@ +SUMMARY = "Flutter embedding for eLinux with Wayland backend (.so)" +DESCRIPTION = "Build .so file of the Flutter embedding for eLinux with Wayland" + +require repository.inc +require dependency.inc + +DEPENDS += "wayland \ + wayland-protocols \ + wayland-native" + +EXTRA_OECMAKE = "-DBUILD_ELINUX_SO=ON \ + -DBACKEND_TYPE=WAYLAND \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_ELINUX_EMBEDDER_LOG=ON \ + -DFLUTTER_RELEASE=ON" + +do_install() { + install -d ${D}${libdir} + install -m 0755 ${WORKDIR}/build/libflutter_elinux_wayland.so ${D}${bindir} +} + +require tasks.inc