Linux: Make all frontends optional

This commit is contained in:
Emmanuel Gil Peyrot 2020-11-03 18:08:28 +01:00
parent 0479afb877
commit b400093e3c
2 changed files with 18 additions and 4 deletions

View File

@ -246,8 +246,12 @@ libdesmume = static_library('desmume',
link_with: colorspacehandler_simd,
)
subdir('cli')
subdir('gtk')
if get_option('glade')
if get_option('frontend-cli')
subdir('cli')
endif
if get_option('frontend-gtk')
subdir('gtk')
endif
if get_option('frontend-glade')
subdir('gtk-glade')
endif

View File

@ -3,7 +3,17 @@ option('openal',
value: false,
description: 'Enable experimental OpenAL microphone input',
)
option('glade',
option('frontend-gtk',
type: 'boolean',
value: true,
description: 'Enable GTK frontend',
)
option('frontend-cli',
type: 'boolean',
value: true,
description: 'Enable CLI frontend',
)
option('frontend-glade',
type: 'boolean',
value: false,
description: 'Enable glade frontend',