diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-02-14 14:04:04 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-02-14 14:14:22 +0000 |
commit | 7b32900c55745bb29b391ce334d86b502f34879d (patch) | |
tree | 8b7ada8d91407b96e93ac1950aad9b938755e50b /meson.build | |
parent | 1440db1570f9ca616d6eeb7fe3b3cf7df8d5f37f (diff) | |
download | gtk+-7b32900c55745bb29b391ce334d86b502f34879d.tar.gz |
build: Rename GDK backend options
Drop the 'enable-' prefix, and always enable all platform-specific
backends. We can disable them depending on the platform. This way,
the documentation printed by `meson configure` remains accurate.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/meson.build b/meson.build index f3e0fa2f76..037b78f8fa 100644 --- a/meson.build +++ b/meson.build @@ -87,27 +87,34 @@ gtk_soversion = '0.@0@.@1@'.format(gtk_binary_age - gtk_interface_age, gtk_inter gtk_api_version = '4.0' -x11_enabled = get_option('enable-x11-backend') -wayland_enabled = get_option('enable-wayland-backend') -broadway_enabled = get_option('enable-broadway-backend') -quartz_enabled = get_option('enable-quartz-backend') -win32_enabled = get_option('enable-win32-backend') -cloudproviders_enabled = get_option('enable-cloudproviders') +x11_enabled = get_option('x11-backend') +wayland_enabled = get_option('wayland-backend') +broadway_enabled = get_option('broadway-backend') +quartz_enabled = get_option('quartz-backend') +win32_enabled = get_option('win32-backend') os_unix = false os_linux = false os_win32 = false os_darwin = false -if host_machine.system().contains('darwin') +# Some windowing system backends depend on the platform we're +# building for, so we need to ensure they are disabled; in other +# cases, they are the only windowing system available, so we need +# to ensure they are enabled +if host_machine.system() == 'darwin' os_darwin = true + win32_enabled = false elif host_machine.system() == 'windows' os_win32 = true win32_enabled = true x11_enabled = false wayland_enabled = false -elif host_machine.system().contains('linux') + quartz_enabled = false +elif host_machine.system() == 'linux' os_linux = true + win32_enabled = false + quartz_enabled = false endif os_unix = not os_win32 @@ -578,7 +585,7 @@ else endif endif - +cloudproviders_enabled = get_option('enable-cloudproviders') if cloudproviders_enabled cloudproviders_dep = dependency('cloudproviders', required: true) if cloudproviders_dep.found() |