meson: Add optional Async NS support
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Sun, 21 Oct 2018 09:22:59 +0000 (16:22 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 27 Dec 2018 11:55:56 +0000 (17:25 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
meson_options.txt
src/meson.build

index 4fed044..c74e6fd 100644 (file)
@@ -263,6 +263,11 @@ if alsa_dep.found()
   cdata.set('HAVE_ALSA_UCM', 1)
 endif
 
+asyncns_dep = dependency('libasyncns', version : '>= 0.1', required : get_option('asyncns'))
+if asyncns_dep.found()
+  cdata.set('HAVE_LIBASYNCNS', 1)
+endif
+
 systemd_dep = dependency('libsystemd', required : get_option('systemd'))
 if systemd_dep.found()
   cdata.set('HAVE_SYSTEMD_DAEMON', 1)
index 3d73a8a..b8f50ba 100644 (file)
@@ -20,6 +20,9 @@ option('pulsedspdir',
 option('alsa',
        type : 'feature', value : 'auto',
        description : 'Optional ALSA support')
+option('asyncns',
+       type : 'feature', value : 'auto',
+       description : 'Optional Async DNS support')
 option('avahi',
        type : 'feature', value : 'auto',
        description : 'Optional Avahi support')
index 4279efa..5208d16 100644 (file)
@@ -182,7 +182,7 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
   include_directories : [configinc, topinc],
   c_args : [pa_c_args],
   install : true,
-  dependencies : [libm_dep, thread_dep, shm_dep, sndfile_dep, dbus_dep, x11_dep, systemd_dep, glib_dep, gtk_dep],
+  dependencies : [libm_dep, thread_dep, shm_dep, sndfile_dep, dbus_dep, x11_dep, systemd_dep, glib_dep, gtk_dep, asyncns_dep],
   implicit_include_directories : false)
 
 libpulsecommon_dep = declare_dependency(link_with: libpulsecommon)