mirror of https://github.com/odrling/Aegisub
meson: add system_bestsource option
This commit is contained in:
parent
f16bb61c9d
commit
dbd23a96c2
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue