2016-09-26 12:15:52 +02:00
|
|
|
#project('spa', 'c')
|
2016-06-28 12:21:56 +02:00
|
|
|
|
2018-01-24 11:55:28 +00:00
|
|
|
#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-06-28 12:21:56 +02:00
|
|
|
|
2021-12-28 16:04:06 +01:00
|
|
|
spa_dep = declare_dependency(
|
|
|
|
|
include_directories : [
|
|
|
|
|
include_directories('include'),
|
|
|
|
|
],
|
|
|
|
|
version : spaversion,
|
|
|
|
|
variables : { 'plugindir' : meson.current_build_dir() / 'plugins' }
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
meson.override_dependency('lib@0@'.format(spa_name), spa_dep)
|
|
|
|
|
|
|
|
|
|
pkgconfig.generate(filebase : 'lib@0@'.format(spa_name),
|
|
|
|
|
name : 'libspa',
|
|
|
|
|
subdirs : spa_name,
|
|
|
|
|
description : 'Simple Plugin API',
|
|
|
|
|
version : spaversion,
|
|
|
|
|
extra_cflags : '-D_REENTRANT',
|
|
|
|
|
variables : ['plugindir=${libdir}/@0@'.format(spa_name)],
|
|
|
|
|
uninstalled_variables : ['plugindir=${prefix}/spa/plugins'],
|
|
|
|
|
)
|
2016-06-28 12:21:56 +02:00
|
|
|
|
|
|
|
|
subdir('include')
|
2018-10-09 13:57:59 +05:30
|
|
|
|
2021-03-10 15:36:27 -03:00
|
|
|
if not get_option('spa-plugins').disabled()
|
2020-07-28 13:11:17 +02:00
|
|
|
udevrulesdir = get_option('udevrulesdir')
|
|
|
|
|
if udevrulesdir == ''
|
|
|
|
|
# absolute path, otherwise meson prepends the prefix
|
|
|
|
|
udevrulesdir = '/lib/udev/rules.d'
|
|
|
|
|
endif
|
|
|
|
|
|
2019-01-29 17:39:44 +02:00
|
|
|
# plugin-specific dependencies
|
2021-03-10 15:36:27 -03:00
|
|
|
alsa_dep = dependency('alsa', required: get_option('alsa'))
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'ALSA': alsa_dep.found()}, bool_yn: true, section: 'Backend')
|
2021-03-10 15:36:27 -03:00
|
|
|
bluez_dep = dependency('bluez', version : '>= 4.101', required: get_option('bluez5'))
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'Bluetooth audio': bluez_dep.found()}, bool_yn: true, section: 'Backend')
|
2021-05-28 20:53:37 +08:00
|
|
|
if bluez_dep.found()
|
|
|
|
|
sbc_dep = dependency('sbc', required: get_option('bluez5'))
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'SBC': sbc_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
2021-05-28 20:53:37 +08:00
|
|
|
ldac_dep = dependency('ldacBT-enc', required : get_option('bluez5-codec-ldac'))
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'LDAC': ldac_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
2021-05-28 20:53:37 +08:00
|
|
|
ldac_abr_dep = dependency('ldacBT-abr', required : get_option('bluez5-codec-ldac'))
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'LDAC ABR': ldac_abr_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
2021-07-27 20:10:53 -04:00
|
|
|
aptx_dep = dependency('libfreeaptx', required : get_option('bluez5-codec-aptx'))
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'aptX': aptx_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
2021-05-28 20:53:37 +08:00
|
|
|
fdk_aac_dep = dependency('fdk-aac', required : get_option('bluez5-codec-aac'))
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'AAC': fdk_aac_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
2021-05-28 20:53:37 +08:00
|
|
|
endif
|
2021-03-10 15:36:27 -03:00
|
|
|
avcodec_dep = dependency('libavcodec', required: get_option('ffmpeg'))
|
|
|
|
|
jack_dep = dependency('jack', version : '>= 1.9.10', required: get_option('jack'))
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'JACK2': jack_dep.found()}, bool_yn: true, section: 'Backend')
|
2021-03-17 20:52:20 +02:00
|
|
|
vulkan_dep = dependency('vulkan', disabler : true, version : '>= 1.1.69', required: get_option('vulkan'))
|
|
|
|
|
vulkan_headers = cc.has_header('vulkan/vulkan.h', dependencies : vulkan_dep)
|
2021-06-25 14:22:47 +03:00
|
|
|
#summary({'Vulkan': vulkan_headers}, bool_yn: true, section: 'Misc dependencies')
|
2021-06-27 15:40:02 +02:00
|
|
|
|
2021-12-28 16:13:58 +01:00
|
|
|
libcamera_dep = dependency('libcamera', required: get_option('libcamera'))
|
2021-06-25 14:49:21 +03:00
|
|
|
summary({'libcamera': libcamera_dep.found()}, bool_yn: true, section: 'Backend')
|
2019-01-29 17:39:44 +02:00
|
|
|
|
2021-04-17 20:44:18 +02:00
|
|
|
# common dependencies
|
2021-04-21 09:10:55 +02:00
|
|
|
libudev_dep = dependency('libudev', required: alsa_dep.found() or get_option('udev').enabled() or get_option('v4l2').enabled())
|
2021-06-25 06:45:51 +03:00
|
|
|
summary({'Udev': libudev_dep.found()}, bool_yn: true, section: 'Backend')
|
2021-04-17 20:44:18 +02:00
|
|
|
|
2018-10-09 13:57:59 +05:30
|
|
|
subdir('plugins')
|
|
|
|
|
endif
|
|
|
|
|
|
2016-06-28 12:21:56 +02:00
|
|
|
subdir('tools')
|
|
|
|
|
subdir('tests')
|
2021-03-10 15:36:27 -03:00
|
|
|
if not get_option('examples').disabled()
|
2020-01-18 13:59:28 +01:00
|
|
|
subdir('examples')
|
|
|
|
|
endif
|