Add Graphene dependency

Graphene is a small library with data types and APIs
specially crafted to computer graphics. It contains
performant implementations of matrices, vectors, points
and rotation tools. It is performance because, among
other reasons, it uses vectorized processor commands
to compute various operations.

Add Graphene dependency to Mutter.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/458
This commit is contained in:
Georges Basile Stavracas Neto 2019-02-15 14:22:25 -02:00
parent 3ecae81809
commit cada2b54fe
4 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ RUN dnf -y update && dnf -y upgrade && \
dnf builddep -y mutter && \ dnf builddep -y mutter && \
# Until Fedora catches up with meson build-deps # Until Fedora catches up with meson build-deps
dnf install -y meson xorg-x11-server-Xorg gnome-settings-daemon-devel egl-wayland-devel xorg-x11-server-Xwayland && \ dnf install -y meson xorg-x11-server-Xorg gnome-settings-daemon-devel egl-wayland-devel xorg-x11-server-Xwayland graphene-devel && \
# Until Fedora catches up with mesa bug fixes # Until Fedora catches up with mesa bug fixes
dnf upgrade -y mesa-dri-drivers mesa-libEGL && \ dnf upgrade -y mesa-dri-drivers mesa-libEGL && \

View File

@ -494,7 +494,7 @@ if have_introspection
sources: cogl_introspected_headers, sources: cogl_introspected_headers,
nsversion: libmutter_api_version, nsversion: libmutter_api_version,
namespace: 'Cogl', namespace: 'Cogl',
includes: ['GL-1.0', 'GObject-2.0'], includes: ['GL-1.0', 'GObject-2.0', 'Graphene-1.0'],
dependencies: [cogl_deps], dependencies: [cogl_deps],
extra_args: introspection_args + [ extra_args: introspection_args + [
'-UCOGL_COMPILATION', '-UCOGL_COMPILATION',

View File

@ -18,6 +18,7 @@ cogl_config_h = configure_file(
cogl_pkg_deps = [ cogl_pkg_deps = [
glib_dep, glib_dep,
gobject_dep, gobject_dep,
graphene_dep,
] ]
cogl_pkg_private_deps = [ cogl_pkg_private_deps = [

View File

@ -17,6 +17,7 @@ libmutter_api_version = '@0@'.format(api_version)
fribidi_req = '>= 1.0.0' fribidi_req = '>= 1.0.0'
glib_req = '>= 2.61.1' glib_req = '>= 2.61.1'
gi_req = '>= 0.9.5' gi_req = '>= 0.9.5'
graphene_req = '>= 1.9.3'
gtk3_req = '>= 3.19.8' gtk3_req = '>= 3.19.8'
gdk_pixbuf_req = '>= 2.0' gdk_pixbuf_req = '>= 2.0'
uprof_req = '>= 0.3' uprof_req = '>= 0.3'
@ -86,6 +87,7 @@ mutter_installed_tests_libexecdir = join_paths(
m_dep = cc.find_library('m', required: true) m_dep = cc.find_library('m', required: true)
x11_dep = dependency('x11') x11_dep = dependency('x11')
graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req)
gtk3_dep = dependency('gtk+-3.0', version: gtk3_req) gtk3_dep = dependency('gtk+-3.0', version: gtk3_req)
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0') gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0')
pango_dep = dependency('pango', version: pango_req) pango_dep = dependency('pango', version: pango_req)