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
|
|
|
|
|
|
|
|
if get_option('spa-plugins')
|
2019-01-29 17:39:44 +02:00
|
|
|
# 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')
|
|
|
|
|
endif
|
|
|
|
|
if get_option('ffmpeg')
|
|
|
|
|
avcodec_dep = dependency('libavcodec')
|
|
|
|
|
avformat_dep = dependency('libavformat')
|
|
|
|
|
endif
|
2019-08-20 20:35:41 +02:00
|
|
|
if get_option('jack')
|
|
|
|
|
jack_dep = dependency('jack', version : '>= 1.9.10')
|
|
|
|
|
endif
|
2019-08-19 16:32:22 +02:00
|
|
|
if get_option('vulkan')
|
2020-06-04 18:11:48 +00:00
|
|
|
vulkan_dep = dependency('vulkan', version : '>= 1.1.69')
|
2019-08-19 16:32:22 +02:00
|
|
|
endif
|
2020-04-20 12:26:50 +05:30
|
|
|
if get_option('libcamera')
|
|
|
|
|
libcamera_dep = dependency('camera')
|
|
|
|
|
endif
|
2019-01-29 17:39:44 +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')
|
2020-01-18 13:59:28 +01:00
|
|
|
if get_option('examples')
|
|
|
|
|
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')
|