meson: Require specific version of aml

v0.6
Andri Yngvason 2023-01-22 13:05:33 +00:00
parent afe37b983d
commit cdf990db75
1 changed files with 3 additions and 2 deletions

View File

@ -57,11 +57,12 @@ libavcodec = dependency('libavcodec', required: get_option('h264'))
libavfilter = dependency('libavfilter', required: get_option('h264'))
libavutil = dependency('libavutil', required: get_option('h264'))
aml_project = subproject('aml', required: false)
aml_version = ['>=0.3.0', '<0.4.0']
aml_project = subproject('aml', required: false, version: aml_version)
if aml_project.found()
aml = aml_project.get_variable('aml_dep')
else
aml = dependency('aml')
aml = dependency('aml', version: aml_version)
endif
inc = include_directories('include')