2017-09-05 13:35:25 +02:00
|
|
|
pipewire_daemon_sources = [
|
2017-05-23 19:15:33 +02:00
|
|
|
'main.c',
|
|
|
|
|
'daemon-config.c',
|
|
|
|
|
]
|
|
|
|
|
|
2017-09-05 13:35:25 +02:00
|
|
|
pipewire_daemon_headers = [
|
2017-05-23 19:15:33 +02:00
|
|
|
'daemon-config.h',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
pipewire_c_args = [
|
|
|
|
|
'-DHAVE_CONFIG_H',
|
|
|
|
|
'-D_GNU_SOURCE',
|
|
|
|
|
'-DG_LOG_DOMAIN=g_log_domain_pipewire',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
conf_config = configuration_data()
|
2018-10-11 09:41:30 +02:00
|
|
|
conf_config.set('VERSION', '"@0@"'.format(pipewire_version))
|
2017-08-17 19:01:11 +02:00
|
|
|
conf_install_dir = join_paths(get_option('sysconfdir'), 'pipewire')
|
2017-05-23 19:15:33 +02:00
|
|
|
|
|
|
|
|
configure_file(input : 'pipewire.conf.in',
|
|
|
|
|
output : 'pipewire.conf',
|
|
|
|
|
configuration : conf_config,
|
|
|
|
|
install_dir : conf_install_dir)
|
|
|
|
|
|
2017-08-17 19:01:11 +02:00
|
|
|
|
2017-05-23 19:15:33 +02:00
|
|
|
executable('pipewire',
|
2017-09-05 13:35:25 +02:00
|
|
|
pipewire_daemon_sources,
|
2017-05-23 19:15:33 +02:00
|
|
|
install: true,
|
|
|
|
|
c_args : pipewire_c_args,
|
|
|
|
|
include_directories : [configinc, spa_inc],
|
2017-07-11 15:57:20 +02:00
|
|
|
dependencies : [pipewire_dep],
|
2017-05-23 19:15:33 +02:00
|
|
|
)
|
2017-08-17 18:59:03 +02:00
|
|
|
|
2018-05-19 11:41:41 +02:00
|
|
|
if get_option('systemd')
|
|
|
|
|
systemd = dependency('systemd', required: false)
|
|
|
|
|
if systemd.found()
|
|
|
|
|
subdir('systemd')
|
|
|
|
|
else
|
|
|
|
|
warning('Systemd integration was enabled, but systemd is not available')
|
|
|
|
|
endif
|
2017-12-14 09:30:34 +01:00
|
|
|
endif
|