mirror of https://github.com/odrling/Aegisub
Switch from combo option to feature where appropriate
Also remove the extra space before colons :)
This commit is contained in:
parent
3b7724aab4
commit
f361138a4d
|
@ -65,11 +65,11 @@ foreach dep: [
|
|||
required: false, static: b_static)
|
||||
|
||||
optname = 'enable_@0@'.format(dep[0].split('-')[0])
|
||||
if d.found() and get_option(optname) != 'false'
|
||||
if d.found() and get_option(optname) != 'disabled'
|
||||
deps += d
|
||||
conf.set('WITH_@0@'.format(dep[0].split('-')[0].to_upper()), '1')
|
||||
dep_avail += dep[2]
|
||||
elif get_option(optname) == 'true'
|
||||
elif get_option(optname) == 'enabled'
|
||||
error('@0@ enabled but not found'.format(dep[2]))
|
||||
endif
|
||||
endforeach
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
option('static', type: 'boolean', value: false, description: 'Build statically linked executable')
|
||||
|
||||
option('enable_alsa', type : 'combo', choices : ['auto', 'true', 'false'], description : 'ALSA audio output')
|
||||
option('enable_openal', type : 'combo', choices : ['auto', 'true', 'false'], description : 'OpenAL audio output')
|
||||
option('enable_libpulse', type : 'combo', choices : ['auto', 'true', 'false'], description : 'PulseAudio audio output')
|
||||
option('enable_portaudio', type : 'combo', choices : ['auto', 'true', 'false'], description : 'PortAudio audio output')
|
||||
option('enable_alsa', type: 'feature', description: 'ALSA audio output')
|
||||
option('enable_openal', type: 'feature', description: 'OpenAL audio output')
|
||||
option('enable_libpulse', type: 'feature', description: 'PulseAudio audio output')
|
||||
option('enable_portaudio', type: 'feature', description: 'PortAudio audio output')
|
||||
option('default_audio_output', type: 'combo', choices: ['auto', 'ALSA', 'OpenAL', 'PulseAudio', 'PortAudio'], description: 'Default audio output')
|
||||
|
||||
option('enable_ffms2', type : 'combo', choices : ['auto', 'true', 'false'], description : 'FFMS2 video source')
|
||||
option('enable_ffms2', type: 'feature', description: 'FFMS2 video source')
|
||||
|
||||
option('enable_fftw3', type : 'combo', choices : ['auto', 'true', 'false'], description : 'FFTW3 support')
|
||||
option('enable_hunspell', type : 'combo', choices : ['auto', 'true', 'false'], description : 'Hunspell spell checker')
|
||||
option('enable_uchardet', type : 'combo', choices : ['auto', 'true', 'false'], description : 'uchardet character encoding detection')
|
||||
option('enable_fftw3', type: 'feature', description: 'FFTW3 support')
|
||||
option('enable_hunspell', type: 'feature', description: 'Hunspell spell checker')
|
||||
option('enable_uchardet', type: 'feature', description: 'uchardet character encoding detection')
|
||||
|
||||
option('system_luajit', type: 'boolean', value: false, description: 'Force using system luajit')
|
||||
|
||||
|
|
Loading…
Reference in New Issue