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
This commit is contained in:
Andrew 2023-11-05 21:38:24 +02:00 committed by GitHub
parent 3c81c9d065
commit 0a87077413
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,5 @@
#include "wpe/fdo.h"
#include <stdio.h>
int main() {
printf("%u.%u.%u", wpe_fdo_get_major_version(), wpe_fdo_get_minor_version(), wpe_fdo_get_micro_version());
}