51518d4d96
The gnome-extensions tool code is really independent from the rest of the code base, and could be used either as part of the gnome-shell build or as stand-alone project (for example for the extension-ci docker image). We can actually support both cases by moving the code to a subproject. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/877
35 lines
830 B
Meson
35 lines
830 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_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'
|
|
]
|
|
|
|
resources = gnome.compile_resources('resources',
|
|
'gnome-extensions-tool.gresource.xml',
|
|
source_dir: '.'
|
|
)
|
|
|
|
executable('gnome-extensions',
|
|
sources, resources,
|
|
dependencies: [gio_dep, gio_unix_dep, autoar_dep, json_dep],
|
|
install: true
|
|
)
|