Skip to content

Commit

Permalink
meson: add system_bestsource option
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Nov 6, 2024
1 parent f16bb61 commit dbd23a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit dbd23a9

Please sign in to comment.