meson: Don't mangle profile and app id suffix

This commit is contained in:
Sophie Herold 2024-09-27 21:22:52 +02:00
parent bf9392e8a2
commit f6b7ae7567
8 changed files with 28 additions and 27 deletions

View file

@ -24,11 +24,9 @@ gtk4_x11 = dependency('gtk4-x11', required: get_option('x11'))
cargo = find_program('cargo', required: true)
glib_compile_schemas = find_program('glib-compile-schemas', required: true)
profile = ''
version_suffix = ''
if get_option('profile') != 'release'
profile = '.Devel'
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
if vcs_tag == ''
version_suffix = '-devel'
@ -39,8 +37,8 @@ endif
prefix = get_option('prefix')
base_id = 'org.gnome.Loupe'
app_id = 'org.gnome.Loupe@0@'.format(profile)
app_id = 'org.gnome.Loupe@0@'.format(get_option('app_id_suffix'))
profile = get_option('profile')
version = meson.project_version() + version_suffix
localedir = prefix / get_option('localedir')
bindir = prefix / get_option('bindir')