bestsource: Add jannson wrap

This commit is contained in:
arch1t3cht 2022-08-08 03:32:29 +02:00
parent 33b9a6e395
commit e4261faf73
3 changed files with 15 additions and 2 deletions

1
.gitignore vendored
View file

@ -30,6 +30,7 @@ subprojects/glib*
subprojects/googletest-*
subprojects/harfbuzz
subprojects/icu
subprojects/jansson
subprojects/libass
subprojects/libffi*
subprojects/libpng-*

4
subprojects/jansson.wrap Normal file
View file

@ -0,0 +1,4 @@
[wrap-git]
directory = jansson
url = https://github.com/akheron/jansson.git
revision = v2.14

View file

@ -3,7 +3,7 @@ project('BestSource', 'cpp',
meson_version: '>=0.48.0'
)
libs = []
cmake = import('cmake')
sources = [
'src/audiosource.cpp',
@ -13,12 +13,20 @@ sources = [
]
deps = [
dependency('jansson', version: '>= 2.7', required: true),
dependency('libavcodec'),
dependency('libavformat'),
dependency('libavutil'),
]
jansson_dep = dependency('jansson', version: '>= 2.7', required: false)
if jansson_dep.found()
deps += jansson_dep
else
jansson = cmake.subproject('jansson')
deps += jansson.dependency('jansson')
endif
bs_lib = static_library('bestsource', sources,
dependencies: deps,
gnu_symbol_visibility: 'hidden'