build: define APP_ID and APP_ID_S in config.h

This allows us to change the app-id in sysprof based on the configuration
so that nightlies do not get the same app-id as regular builds.
This commit is contained in:
Christian Hergert
2022-07-22 12:54:31 -07:00
parent 97633fd011
commit 4b68b9180b
2 changed files with 10 additions and 2 deletions

View File

@ -14,6 +14,12 @@ gnome = import('gnome', required: get_option('gtk'))
pkgconfig = import('pkgconfig')
i18n = import('i18n')
if get_option('development')
app_id = 'org.gnome.Sysprof.Devel'
else
app_id = 'org.gnome.Sysprof'
endif
libsysprof_api_version = 4
libsysprof_ui_api_version = 5
@ -45,6 +51,8 @@ config_h.set_quoted('PACKAGE_LIBDIR', join_paths(get_option('prefix'), get_optio
config_h.set('PACKAGE_TARNAME', 'PACKAGE_STRING')
config_h.set('PACKAGE', 'PACKAGE_NAME')
config_h.set('VERSION', 'PACKAGE_VERSION')
config_h.set('APP_ID', app_id)
config_h.set_quoted('APP_ID_S', app_id)
# Detect and set symbol visibility
if get_option('default_library') != 'static'