43401b9d44
GSettings schemas are now compiled at install time, so it is no longer necessary to include the compiled schema in the archive. However the `gnome-extensions pack` command hasn't been adjusted, so that it can still be used to produce valid archives for all supported versions. To not let that code linger forever, error out when building a version where GNOME 44 is the oldest supported release. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2639>
39 lines
981 B
Meson
39 lines
981 B
Meson
config_h = configuration_data()
|
|
config_h.set_quoted('GETTEXT_PACKAGE', package_name)
|
|
config_h.set_quoted('VERSION', meson.project_version())
|
|
config_h.set('MAJOR_VERSION', meson.project_version().split('.')[0])
|
|
config_h.set_quoted('LOCALEDIR', localedir)
|
|
config_h.set('HAVE_BIND_TEXTDOMAIN_CODESET', cc.has_function('bind_textdomain_codeset'))
|
|
configure_file(
|
|
output: 'config.h',
|
|
configuration: config_h,
|
|
)
|
|
|
|
sources = [
|
|
'command-create.c',
|
|
'command-disable.c',
|
|
'command-enable.c',
|
|
'command-info.c',
|
|
'command-install.c',
|
|
'command-list.c',
|
|
'command-pack.c',
|
|
'command-prefs.c',
|
|
'command-reset.c',
|
|
'command-uninstall.c',
|
|
'main.c'
|
|
]
|
|
|
|
subdir('templates')
|
|
|
|
resources = gnome.compile_resources('resources',
|
|
'gnome-extensions-tool.gresource.xml',
|
|
source_dir: ['.', meson.current_build_dir()],
|
|
dependencies: template_deps,
|
|
)
|
|
|
|
executable('gnome-extensions',
|
|
sources, resources,
|
|
dependencies: [gio_dep, gio_unix_dep, autoar_dep, json_dep],
|
|
install: true
|
|
)
|