[gedit] build: simplify config.h
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] build: simplify config.h
- Date: Thu, 30 Apr 2020 20:08:23 +0000 (UTC)
commit 380b2f12da71fcef6bc1e642d7e0e9897696d50a
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 fd88dd19a..8ca5aa42c 100644
--- a/meson.build
+++ b/meson.build
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]