From 6eba2f823d6ecfcd4306240ea1544e11ecfe9f05 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Sun, 21 Oct 2018 16:22:59 +0700 Subject: [PATCH] meson: Add optional Async NS support Signed-off-by: Arnaud Rebillout --- meson.build | 5 +++++ meson_options.txt | 3 +++ src/meson.build | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4fed0441d..c74e6fdd6 100644 --- a/meson.build +++ b/meson.build @@ -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) diff --git a/meson_options.txt b/meson_options.txt index 3d73a8af1..b8f50ba96 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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') diff --git a/src/meson.build b/src/meson.build index 4279efaf2..5208d16ff 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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)