From f922109a9c684d1fb852b041eccbeb4781b7039a Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sun, 22 Apr 2018 20:47:32 +0800 Subject: build: Make the default setting work on non-Linux Unix-like systems All of the four platform-dependent backends are enabled by default. It is usually a good default because it requires users to explicitly choose backends they want to use. Rules in meson.build also automatically disable unavailable backends for macOS, Windows, Linux, so users on these 3 major platforms don't have to manually disable things when running meson commands. However, meson.build doesn't do the same thing for other Unix-like systems, which is acceptable but not ideal. To make it easier to build GTK+ on these systems, the Linux case, which enables X11 and Wayland and disables Win32 and Quartz, is made the default for all operating systems that are not Windows or macOS. This commit also changes most 'host_machine.system()' calls to os_* variables, which are easier to read and less likely to be used wrongly. --- meson_options.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt index 6e795b0883..a189ee2cba 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,8 +1,8 @@ # GDK backends option('x11-backend', type: 'boolean', value: true, - description : 'Enable the X11 gdk backend (only when building on Linux or macOS)') + description : 'Enable the X11 gdk backend (only when building on Unix)') option('wayland-backend', type: 'boolean', value: true, - description : 'Enable the wayland gdk backend (only when building on Linux)') + description : 'Enable the wayland gdk backend (only when building on Unix except for macOS)') option('broadway-backend', type: 'boolean', value: false, description : 'Enable the broadway (HTML5) gdk backend') option('win32-backend', type: 'boolean', value: true, -- cgit v1.2.1