mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 07:05:30 +03:00
Add support for mutter 3.29
This commit is contained in:
parent
ad11cbc29e
commit
be1729d592
21
meson.build
21
meson.build
@ -226,6 +226,27 @@ if mutter328_dep.found()
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
||||
mutter330_dep = dependency('libmutter-2', version: ['>= 3.29.2', '< 3.31'], required: false)
|
||||
if mutter330_dep.found()
|
||||
mutter_packages_command = [
|
||||
'--pkg', 'libmutter-2',
|
||||
'--pkg', 'mutter-cogl-2',
|
||||
'--pkg', 'mutter-cogl-pango-2',
|
||||
'--pkg', 'mutter-cogl-path-2',
|
||||
'--pkg', 'mutter-clutter-2'
|
||||
]
|
||||
libmutter_dep = dependency('libmutter-2', version: '>= 3.29.2')
|
||||
pkgconf.set('MUTTER_PKGS', 'libmutter-2 >= 3.29.2')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-2'), dependency('mutter-cogl-pango-2'),
|
||||
dependency('mutter-cogl-path-2'), dependency('mutter-clutter-2')
|
||||
]
|
||||
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322', '--define', 'HAS_MUTTER324', '--define', 'HAS_MUTTER326', '--define', 'HAS_MUTTER328', '--define', 'HAS_MUTTER330']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
||||
if mutter_dep.length() == 0
|
||||
error ('No supported mutter library found!')
|
||||
endif
|
||||
|
@ -843,6 +843,9 @@ namespace Meta {
|
||||
public string shadow_class { owned get; set; }
|
||||
[NoAccessorMethod]
|
||||
public Meta.ShadowMode shadow_mode { get; set; }
|
||||
#if HAS_MUTTER330
|
||||
public signal void effects_completed ();
|
||||
#endif
|
||||
public signal void first_frame ();
|
||||
}
|
||||
#if HAS_MUTTER328
|
||||
|
Loading…
Reference in New Issue
Block a user