2018-08-26 16:55:13 +00:00
|
|
|
config_h = configuration_data()
|
|
|
|
config_h.set_quoted('GETTEXT_PACKAGE', meson.project_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,
|
|
|
|
)
|
|
|
|
|
2018-08-26 19:37:07 +00:00
|
|
|
sources = [
|
2018-08-27 01:24:10 +00:00
|
|
|
'command-create.c',
|
2018-08-26 19:37:07 +00:00
|
|
|
'command-disable.c',
|
|
|
|
'command-enable.c',
|
2018-08-28 04:01:30 +00:00
|
|
|
'command-info.c',
|
2018-09-03 23:41:55 +00:00
|
|
|
'command-install.c',
|
2018-08-27 03:34:27 +00:00
|
|
|
'command-list.c',
|
2018-08-31 03:14:23 +00:00
|
|
|
'command-pack.c',
|
2019-01-11 11:03:17 +00:00
|
|
|
'command-prefs.c',
|
2019-07-11 20:35:49 +00:00
|
|
|
'command-uninstall.c',
|
2018-08-26 19:37:07 +00:00
|
|
|
'main.c'
|
|
|
|
]
|
|
|
|
|
2018-08-27 01:24:10 +00:00
|
|
|
resources = gnome.compile_resources('resources',
|
|
|
|
'gnome-extensions-tool.gresource.xml',
|
|
|
|
source_dir: '.'
|
|
|
|
)
|
|
|
|
|
2018-08-26 16:55:13 +00:00
|
|
|
executable('gnome-extensions',
|
2018-08-27 01:24:10 +00:00
|
|
|
sources, resources,
|
2018-08-31 03:14:23 +00:00
|
|
|
dependencies: [gio_dep, gio_unix_dep, autoar_dep, json_dep],
|
2018-08-26 16:55:13 +00:00
|
|
|
install: true
|
|
|
|
)
|
2018-08-28 02:38:23 +00:00
|
|
|
|
|
|
|
if bash_completion.found()
|
|
|
|
install_data('completion/bash/gnome-extensions',
|
|
|
|
install_dir: bash_completion.get_pkgconfig_variable('completionsdir')
|
|
|
|
)
|
|
|
|
endif
|
2018-08-28 04:00:11 +00:00
|
|
|
|
|
|
|
if get_option('man')
|
|
|
|
subdir('man')
|
|
|
|
endif
|