pipewire/spa/plugins/support/meson.build
Wim Taymans 5f7c4dec34 meson: make it possible to compile without dbus
Make an option to disable dbus and all the code that depends on
it.

Fixes #1685
2021-10-09 15:00:04 +02:00

64 lines
1.6 KiB
Meson

spa_support_sources = [
'cpu.c',
'logger.c',
'log-patterns.c',
'loop.c',
'node-driver.c',
'null-audio-sink.c',
'plugin.c',
'system.c'
]
spa_support_lib = shared_library('spa-support',
spa_support_sources,
include_directories : [ spa_inc ],
dependencies : [ pthread_lib, epoll_shim_dep ],
install : true,
install_dir : spa_plugindir / 'support')
spa_support_dep = declare_dependency(link_with: spa_support_lib)
if not get_option('evl').disabled()
evl_inc = include_directories('/usr/evl/include')
evl_lib = cc.find_library('evl',
dirs: ['/usr/evl/lib/'],
required: get_option('evl'))
spa_evl_sources = ['evl-system.c', 'evl-plugin.c']
spa_evl_lib = shared_library('spa-evl',
spa_evl_sources,
include_directories : [ spa_inc, evl_inc],
dependencies : [ pthread_lib, evl_lib],
install : true,
install_dir : spa_plugindir / 'support')
endif
if dbus_dep.found()
spa_dbus_sources = ['dbus.c']
spa_dbus_lib = shared_library('spa-dbus',
spa_dbus_sources,
include_directories : [ spa_inc],
dependencies : [dbus_dep, ],
install : true,
install_dir : spa_plugindir / 'support')
endif
if systemd_dep.found()
spa_journal_sources = [
'journal.c',
'log-patterns.c',
]
spa_journal_lib = shared_library('spa-journal',
spa_journal_sources,
include_directories : spa_inc,
dependencies : systemd_dep,
install : true,
install_dir : spa_plugindir / 'support')
spa_journal_dep = declare_dependency(link_with: spa_journal_lib)
else
spa_journal_dep = declare_dependency()
endif