pipewire/src/daemon/meson.build
Gleb Popov fd937fa378 On FreeBSD, add dependency on epoll-shim library.
FreeBSD doesn't provide timerfd and eventfd functions. These are implemented in
3rd party library called epoll-shim. Link targets requiring these functions to
this library.
2019-11-19 13:41:40 +01:00

38 lines
857 B
Meson

pipewire_daemon_sources = [
'command.c',
'daemon-config.c',
'main.c',
]
pipewire_daemon_headers = [
'command.h',
'daemon-config.h',
]
pipewire_c_args = [
'-DHAVE_CONFIG_H',
'-D_GNU_SOURCE',
'-DG_LOG_DOMAIN=g_log_domain_pipewire',
]
conf_config = configuration_data()
conf_config.set('VERSION', '"@0@"'.format(pipewire_version))
conf_install_dir = join_paths(get_option('sysconfdir'), 'pipewire')
configure_file(input : 'pipewire.conf.in',
output : 'pipewire.conf',
configuration : conf_config,
install_dir : conf_install_dir)
executable('pipewire',
pipewire_daemon_sources,
install: true,
c_args : pipewire_c_args,
include_directories : [configinc, spa_inc],
dependencies : [pipewire_dep, epoll_shim_dep],
)
if get_option('systemd') and systemd.found()
subdir('systemd')
endif