From 0a870774137cde2e1e9a6fb0bd63064077127bf3 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sun, 5 Nov 2023 21:38:24 +0200 Subject: [PATCH] wpewebkit.org/wpebackend-fdo (#3964) * new file: projects/wpewebkit.org/wpebackend-fdo/package.yml * modified: projects/wpewebkit.org/wpebackend-fdo/package.yml new file: projects/wpewebkit.org/wpebackend-fdo/wpe-fdo-test.c --- .../wpewebkit.org/wpebackend-fdo/package.yml | 44 +++++++++++++++++++ .../wpebackend-fdo/wpe-fdo-test.c | 5 +++ 2 files changed, 49 insertions(+) create mode 100644 projects/wpewebkit.org/wpebackend-fdo/package.yml create mode 100644 projects/wpewebkit.org/wpebackend-fdo/wpe-fdo-test.c diff --git a/projects/wpewebkit.org/wpebackend-fdo/package.yml b/projects/wpewebkit.org/wpebackend-fdo/package.yml new file mode 100644 index 00000000..391d8453 --- /dev/null +++ b/projects/wpewebkit.org/wpebackend-fdo/package.yml @@ -0,0 +1,44 @@ +distributable: + url: https://github.com/Igalia/WPEBackend-fdo/releases/download/{{version}}/wpebackend-fdo-{{version}}.tar.xz + strip-components: 1 +versions: + github: Igalia/WPEBackend-fdo +platforms: + - linux +dependencies: + gnome.org/glib: '*' + github.com/anholt/libepoxy: '*' + wpewebkit.org/libwpe: '*' + mesa3d.org: '*' + wayland.freedesktop.org: '*' +build: + dependencies: + gnu.org/gcc: '*' + mesonbuild.com: '*' + ninja-build.org: '*' + freedesktop.org/pkg-config: '*' + script: + - meson setup build $MESON_ARGS + - meson compile -C build --verbose + - meson install -C build + - run: | + mv wpe-fdo-1.0/* . + rmdir wpe-fdo-1.0 + ln -s . wpe-fdo-1.0 + working-directory: ${{prefix}}/include + env: + LDFLAGS: "-fPIC" + MESON_ARGS: + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" + - --buildtype=release + - --wrap-mode=nofallback +test: + dependencies: + gnu.org/gcc: '*' + gnu.org/make: '*' + script: + - make wpe-fdo-test + - ./wpe-fdo-test | grep {{version}} + env: + LDLIBS: -lWPEBackend-fdo-1.0 diff --git a/projects/wpewebkit.org/wpebackend-fdo/wpe-fdo-test.c b/projects/wpewebkit.org/wpebackend-fdo/wpe-fdo-test.c new file mode 100644 index 00000000..15015e91 --- /dev/null +++ b/projects/wpewebkit.org/wpebackend-fdo/wpe-fdo-test.c @@ -0,0 +1,5 @@ +#include "wpe/fdo.h" +#include +int main() { + printf("%u.%u.%u", wpe_fdo_get_major_version(), wpe_fdo_get_minor_version(), wpe_fdo_get_micro_version()); +} \ No newline at end of file