bestsource: Add jannson wrap
This commit is contained in:
parent
33b9a6e395
commit
e4261faf73
3 changed files with 15 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -30,6 +30,7 @@ subprojects/glib*
|
||||||
subprojects/googletest-*
|
subprojects/googletest-*
|
||||||
subprojects/harfbuzz
|
subprojects/harfbuzz
|
||||||
subprojects/icu
|
subprojects/icu
|
||||||
|
subprojects/jansson
|
||||||
subprojects/libass
|
subprojects/libass
|
||||||
subprojects/libffi*
|
subprojects/libffi*
|
||||||
subprojects/libpng-*
|
subprojects/libpng-*
|
||||||
|
|
4
subprojects/jansson.wrap
Normal file
4
subprojects/jansson.wrap
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[wrap-git]
|
||||||
|
directory = jansson
|
||||||
|
url = https://github.com/akheron/jansson.git
|
||||||
|
revision = v2.14
|
|
@ -3,7 +3,7 @@ project('BestSource', 'cpp',
|
||||||
meson_version: '>=0.48.0'
|
meson_version: '>=0.48.0'
|
||||||
)
|
)
|
||||||
|
|
||||||
libs = []
|
cmake = import('cmake')
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
'src/audiosource.cpp',
|
'src/audiosource.cpp',
|
||||||
|
@ -13,12 +13,20 @@ sources = [
|
||||||
]
|
]
|
||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
dependency('jansson', version: '>= 2.7', required: true),
|
|
||||||
dependency('libavcodec'),
|
dependency('libavcodec'),
|
||||||
dependency('libavformat'),
|
dependency('libavformat'),
|
||||||
dependency('libavutil'),
|
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,
|
bs_lib = static_library('bestsource', sources,
|
||||||
dependencies: deps,
|
dependencies: deps,
|
||||||
gnu_symbol_visibility: 'hidden'
|
gnu_symbol_visibility: 'hidden'
|
||||||
|
|
Loading…
Reference in a new issue