[gedit/zbrown/deteplification-src: 289/633] build: simplify config.h




commit 17ae2d8a0320f43cd93ca1d5d9a9d5b70e475183
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Apr 30 22:05:53 2020 +0200

    build: simplify config.h

 meson.build | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index a94badaa2..45e1753cd 100644
--- a/meson.build
+++ b/meson.build
@@ -71,7 +71,7 @@ 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')))
@@ -88,11 +88,6 @@ if enable_gvfs_metadata
   config_h.set('ENABLE_GVFS_METADATA', 1)
 endif
 
-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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]