pipewire/spa/plugins/support/meson.build
Barnabás Pőcze 25a0e3beb4 spa: support: do not include C source file
Previously, `log-patterns.c` was included in two other source files
(`journal.c` and `logger.c`). It was also specified in the sources
list for the libspa-support library, which resulted in the unnecessary
independent compilation of the file, generating "defined but not used"
warnings.

Extract the function definitions into `log-patterns.h` and
use that in `journal.c` and `logger.c`, and remove the inclusion
of `log-patterns.c` from both.
2021-09-29 15:07:36 +00:00

62 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
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')
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