1
0
mirror of https://github.com/GNOME/gedit synced 2024-07-02 15:58:48 +00:00

build: simplify config.h

This commit is contained in:
Sébastien Wilmet 2020-04-30 22:05:53 +02:00
parent 963dc22457
commit 380b2f12da

View File

@ -61,17 +61,12 @@ python3 = python.find_installation('python3')
# Configurations
config_h = configuration_data()
config_h.set_quoted('PACKAGE_STRING', package_string)
config_h.set_quoted('PACKAGE_STRING', 'gedit-@0@'.format(api_version))
config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_h.set_quoted('LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))
config_h.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
config_h.set_quoted('VERSION', meson.project_version())
version_array = meson.project_version().split('.')
config_h.set('GEDIT_MAJOR_VERSION', version_array[0])
config_h.set('GEDIT_MINOR_VERSION', version_array[1])
config_h.set('GEDIT_MICRO_VERSION', version_array[2])
configure_file(
output: 'config.h',
configuration: config_h