2017-09-05 13:35:25 +02:00
|
|
|
pipewire_daemon_sources = [
|
2019-06-20 11:09:58 +02:00
|
|
|
'command.c',
|
2017-05-23 19:15:33 +02:00
|
|
|
'daemon-config.c',
|
2019-06-20 11:09:58 +02:00
|
|
|
'main.c',
|
2017-05-23 19:15:33 +02:00
|
|
|
]
|
|
|
|
|
|
2017-09-05 13:35:25 +02:00
|
|
|
pipewire_daemon_headers = [
|
2019-06-20 11:09:58 +02:00
|
|
|
'command.h',
|
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],
|
2019-11-19 15:16:18 +01:00
|
|
|
dependencies : [pipewire_dep, ],
|
2017-05-23 19:15:33 +02:00
|
|
|
)
|
2017-08-17 18:59:03 +02:00
|
|
|
|
2018-11-22 17:36:59 -02:00
|
|
|
if get_option('systemd') and systemd.found()
|
2018-10-18 09:50:43 +02:00
|
|
|
subdir('systemd')
|
2017-12-14 09:30:34 +01:00
|
|
|
endif
|