diff --git a/desmume/src/frontend/posix/meson.build b/desmume/src/frontend/posix/meson.build index 0228877f6..e1d105cc3 100644 --- a/desmume/src/frontend/posix/meson.build +++ b/desmume/src/frontend/posix/meson.build @@ -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 diff --git a/desmume/src/frontend/posix/meson_options.txt b/desmume/src/frontend/posix/meson_options.txt index 1a3b3d3bd..fe46876aa 100644 --- a/desmume/src/frontend/posix/meson_options.txt +++ b/desmume/src/frontend/posix/meson_options.txt @@ -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',