meson: add system_bestsource option

This commit is contained in:
odrling 2024-06-22 20:08:12 +02:00
parent f16bb61c9d
commit dbd23a96c2
No known key found for this signature in database
GPG Key ID: EC907F69A27A90C5
2 changed files with 7 additions and 3 deletions

View File

@ -249,9 +249,12 @@ needs_ffmpeg = false
if get_option('bestsource').enabled()
conf.set('WITH_BESTSOURCE', 1)
deps += dependency('bestsource', version: '>=6.0',
fallback: ['bestsource', 'bestsource_dep'],
default_options: ['enable_plugin=false'])
if get_option('system_bestsource')
deps += dependency('bestsource', version: '>=6.0', required: true)
else
bestsource_subproject = subproject('bestsource', default_options: ['enable_plugin=false'])
deps += bestsource_subproject.get_variable('bestsource_dep')
endif
dep_avail += 'BestSource'
needs_ffmpeg = true
endif

View File

@ -17,6 +17,7 @@ option('uchardet', type: 'feature', description: 'uchardet character encoding de
option('csri', type: 'feature', description: 'CSRI support')
option('system_luajit', type: 'boolean', value: false, description: 'Force using system luajit')
option('system_bestsource', type: 'boolean', value: false, description: 'Force using system bestsource')
option('local_boost', type: 'boolean', value: false, description: 'Force using locally compiled Boost')
option('wx_version', type: 'string', value: '3.0.0', description: 'The minimum wxWidgets version to use')