11 pulseaudio_headers = [
21 pulseaudio_sources += 'server-lookup.c'
22 pulseaudio_headers += 'server-lookup.h'
26 executable('pulseaudio',
30 install_rpath : privlibdir,
31 include_directories : [configinc, topinc],
32 link_args : ['-ffast-math'],
33 link_with : [libpulsecore, libpulsecommon, libpulse],
34 dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep, platform_dep, platform_socket_dep],
39 conf = configuration_data()
40 conf.set('PACTL_BINARY', join_paths(bindir, 'pactl'))
43 input : 'start-pulseaudio-x11.in',
44 output : 'start-pulseaudio-x11',
50 desktop_file = i18n.merge_file(
51 input : 'pulseaudio.desktop.in',
52 output : 'pulseaudio.desktop',
56 install_dir : join_paths(sysconfdir, 'xdg', 'autostart'),
59 desktop_utils = find_program('desktop-file-validate', required: false)
60 if desktop_utils.found()
61 test('Validate desktop file', desktop_utils,
62 args: [ desktop_file ],
69 m4 = find_program('m4', required: true)
71 daemon_conf = configuration_data()
72 daemon_conf.merge_from(cdata)
73 daemon_conf.set('PA_DEFAULT_CONFIG_DIR', cdata.get_unquoted('PA_DEFAULT_CONFIG_DIR'))
75 daemon_template_file = configure_file(
76 input : 'daemon.conf.in',
77 output : 'daemon.conf.tmp',
78 configuration : daemon_conf,
81 custom_target('daemon.conf',
82 input : daemon_template_file,
83 output : 'daemon.conf',
85 command : [m4, '@INPUT@'],
86 build_by_default : true,
88 install_dir : pulsesysconfdir,
91 default_conf = configuration_data()
92 default_conf.merge_from(cdata)
93 default_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY'))
94 default_conf.set('PA_SOEXT', cdata.get_unquoted('PA_SOEXT'))
95 default_conf.set10('HAVE_AF_UNIX', cc.has_header('sys/un.h'))
96 default_conf.set10('OS_IS_WIN32', host_machine.system() == 'windows')
97 default_conf.set10('HAVE_MKFIFO', cc.has_function('mkfifo'))
98 # We don't support the deprecated GConf option in meson
99 default_conf.set10('HAVE_GCONF', 0)
101 default_template_file = configure_file(
102 input : 'default.pa.in',
103 output : 'default.pa.tmp',
104 configuration : default_conf,
107 custom_target('default.pa',
108 input : default_template_file,
109 output : 'default.pa',
111 command : [m4, '@INPUT@'],
112 build_by_default : true,
114 install_dir : pulsesysconfdir,
117 system_conf = configuration_data()
118 system_conf.merge_from(cdata)
119 system_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY'))
120 system_conf.set('PA_SOEXT', cdata.get_unquoted('PA_SOEXT'))
122 system_template_file = configure_file(
123 input : 'system.pa.in',
124 output : 'system.pa.tmp',
125 configuration : system_conf,
128 custom_target('system.pa',
129 input : system_template_file,
130 output : 'system.pa',
132 command : [m4, '@INPUT@'],
133 build_by_default : true,
135 install_dir : pulsesysconfdir,
139 install_data('pulseaudio-system.conf',
140 install_dir : join_paths(sysconfdir, 'dbus-1', 'system.d')
144 if systemd_dep.found()
145 sd_user_service_conf = configuration_data()
146 sd_user_service_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY'))
148 sd_user_service_file = configure_file(
149 input : 'systemd/user/pulseaudio.service.in',
150 output : 'pulseaudio.service',
151 configuration : sd_user_service_conf,
153 install_dir : systemduserunitdir,
156 install_data('systemd/user/pulseaudio.socket',
157 install_dir: systemduserunitdir,