Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,31 @@ applications_dir = datadir / 'applications'
dbus_service_dir = datadir / 'dbus-1' / 'services'

gjs_req = '>=1.78.0'
gnome_shell_req = ['>=45.0', '<50']
gnome_shell_req = ['>=45', '<50']
shell_versions = ['45', '46', '47', '48', '49']

# Verify that all shell_versions match gnome_shell_req

shell_versions_expanded = []

foreach shell_version : shell_versions
if shell_version.contains('.')
shell_versions_expanded += [shell_version]
else
foreach suffix : ['0', '1', '9', 'alpha', 'beta', 'rc']
shell_versions_expanded += f'@shell_version@.@suffix@'
endforeach
endif
endforeach

foreach shell_version : shell_versions_expanded
foreach shell_version_req : gnome_shell_req
if not shell_version.version_compare(shell_version_req)
error(f'Shell version @shell_version@ does not match @shell_version_req@')
endif
endforeach
endforeach

summary('Target GNOME Shell version', gnome_shell_req, list_sep: ', ')

gjs_shebang = get_option('shebang_override')
Expand Down
Loading