pipewire/spa/meson.build

65 lines
1.7 KiB
Meson
Raw Normal View History

2016-09-26 12:15:52 +02:00
#project('spa', 'c')
#cc = meson.get_compiler('c')
#dl_lib = cc.find_library('dl', required : false)
#pthread_lib = dependencies('threads')
#mathlib = cc.find_library('m', required : false)
2016-09-26 12:15:52 +02:00
spa_inc = include_directories('include')
subdir('include')
if get_option('spa-plugins')
udevrulesdir = get_option('udevrulesdir')
if udevrulesdir == ''
# absolute path, otherwise meson prepends the prefix
udevrulesdir = '/lib/udev/rules.d'
endif
# common dependencies
if get_option('alsa') or get_option('v4l2')
libudev_dep = dependency('libudev')
endif
# plugin-specific dependencies
if get_option('alsa')
alsa_dep = dependency('alsa')
endif
if get_option('bluez5')
bluez_dep = dependency('bluez', version : '>= 4.101')
sbc_dep = dependency('sbc')
2020-12-03 09:25:05 +01:00
ldac_dep = dependency('ldacBT-enc', required : false)
ldac_abr_dep = dependency('ldacBT-abr', required : false)
aptx_dep = dependency('libopenaptx', required : false)
2020-12-22 12:39:56 +01:00
fdk_aac_dep = dependency('fdk-aac', required : false)
endif
if get_option('ffmpeg')
avcodec_dep = dependency('libavcodec')
avformat_dep = dependency('libavformat')
endif
if get_option('jack')
jack_dep = dependency('jack', version : '>= 1.9.10')
endif
if get_option('vulkan')
vulkan_dep = dependency('vulkan', version : '>= 1.1.69')
endif
2020-04-20 12:26:50 +05:30
if get_option('libcamera')
libcamera_dep = dependency('camera')
endif
subdir('plugins')
endif
subdir('tools')
subdir('tests')
if get_option('examples')
subdir('examples')
endif
pkgconfig.generate(filebase : 'lib@0@'.format(spa_name),
name : 'libspa',
subdirs : spa_name,
description : 'Simple Plugin API',
version : spaversion,
extra_cflags : '-D_REENTRANT')