Skip to content

Commit 87cce90

Browse files
linkmauvemarius851000
authored andcommitted
Linux: Make all frontends optional
1 parent 1c507ed commit 87cce90

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

desmume/src/frontend/posix/meson.build

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,12 @@ libdesmume = static_library('desmume',
246246
link_with: colorspacehandler_simd,
247247
)
248248

249-
subdir('cli')
250-
subdir('gtk')
251-
if get_option('glade')
249+
if get_option('frontend-cli')
250+
subdir('cli')
251+
endif
252+
if get_option('frontend-gtk')
253+
subdir('gtk')
254+
endif
255+
if get_option('frontend-glade')
252256
subdir('gtk-glade')
253257
endif

desmume/src/frontend/posix/meson_options.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ option('openal',
33
value: false,
44
description: 'Enable experimental OpenAL microphone input',
55
)
6-
option('glade',
6+
option('frontend-gtk',
7+
type: 'boolean',
8+
value: true,
9+
description: 'Enable GTK frontend',
10+
)
11+
option('frontend-cli',
12+
type: 'boolean',
13+
value: true,
14+
description: 'Enable CLI frontend',
15+
)
16+
option('frontend-glade',
717
type: 'boolean',
818
value: false,
919
description: 'Enable glade frontend',

0 commit comments

Comments
 (0)