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
|
|
|
|
2016-09-26 12:15:52 +02:00
|
|
|
spa_inc = include_directories('include')
|
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'))
|
|
|
|
|
bluez_dep = dependency('bluez', version : '>= 4.101', required: get_option('bluez5'))
|
|
|
|
|
sbc_dep = dependency('sbc', required: get_option('bluez5'))
|
2021-03-15 00:14:23 +02:00
|
|
|
ldac_dep = dependency('ldacBT-enc', required : get_option('bluez5-codec-ldac'))
|
|
|
|
|
ldac_abr_dep = dependency('ldacBT-abr', required : get_option('bluez5-codec-ldac'))
|
|
|
|
|
aptx_dep = dependency('libopenaptx', required : get_option('bluez5-codec-aptx'))
|
|
|
|
|
fdk_aac_dep = dependency('fdk-aac', required : get_option('bluez5-codec-aac'))
|
2021-03-10 15:36:27 -03:00
|
|
|
avcodec_dep = dependency('libavcodec', required: get_option('ffmpeg'))
|
|
|
|
|
avformat_dep = dependency('libavformat', required: get_option('ffmpeg'))
|
|
|
|
|
jack_dep = dependency('jack', version : '>= 1.9.10', required: get_option('jack'))
|
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-03-10 15:36:27 -03:00
|
|
|
libcamera_dep = dependency('camera', required: get_option('libcamera'))
|
2019-01-29 17:39:44 +02:00
|
|
|
|
2021-04-17 20:44:18 +02:00
|
|
|
# common dependencies
|
|
|
|
|
libudev_dep = dependency('libudev', required: alsa_dep.found())
|
|
|
|
|
libudev_dep = dependency('libudev', required: get_option('udev'))
|
|
|
|
|
libudev_dep = dependency('libudev', required: get_option('v4l2'))
|
|
|
|
|
|
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
|
2018-09-02 03:22:14 +02:00
|
|
|
|
2020-02-05 16:28:22 +01:00
|
|
|
pkgconfig.generate(filebase : 'lib@0@'.format(spa_name),
|
2018-09-02 03:22:14 +02:00
|
|
|
name : 'libspa',
|
2020-02-05 16:28:22 +01:00
|
|
|
subdirs : spa_name,
|
2018-09-02 03:22:14 +02:00
|
|
|
description : 'Simple Plugin API',
|
2020-02-05 16:28:22 +01:00
|
|
|
version : spaversion,
|
2018-09-02 03:22:14 +02:00
|
|
|
extra_cflags : '-D_REENTRANT')
|