meson: Make x11 optional, bump meson requirement
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Tue, 9 Oct 2018 04:44:02 +0000 (11:44 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 27 Dec 2018 11:55:54 +0000 (17:25 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
meson_options.txt

index 5c985c0..62f5e01 100644 (file)
@@ -1,6 +1,6 @@
 project('pulseaudio', 'c', 'cpp',
         version : run_command(find_program('git-version-gen'), join_paths(meson.current_source_dir(), '.tarball-version')).stdout().strip(),
-        meson_version : '>= 0.44.0',
+        meson_version : '>= 0.47.0',
         default_options : [ 'c_std=gnu11', 'cpp_std=c++11' ]
         )
 
@@ -228,7 +228,7 @@ if dbus_dep.found()
   cdata.set('HAVE_DBUS', 1)
 endif
 
-x11_dep = dependency('x11-xcb', required : false)
+x11_dep = dependency('x11-xcb', required : get_option('x11'))
 if x11_dep.found()
   xcb_dep  = dependency('xcb',  required : true, version : '>= 1.6')
   ice_dep  = dependency('ice',  required : true)
index f8462dd..3d8f653 100644 (file)
@@ -14,3 +14,6 @@ option('database',
 option('pulsedspdir',
        type : 'string',
        description : 'Specify location where OSS wrapper will be installed')
+option('x11',
+       type : 'feature', value : 'auto',
+       description : 'Optional X11 support')