[gnome-desktop/mcatanzaro/gnome-version.xml] Remove gnome-version.xml




commit 872a6f9742ae917d497fb895314c2a890819967a
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Wed May 4 11:42:49 2022 -0500

    Remove gnome-version.xml
    
    This is crufty and no longer useful. gnome-control-center will now
    display GNOME Shell version instead of gnome-desktop version, which is a
    more meaningful version to display anyway.
    
    With this change, we'll no longer have to spin releases of gnome-desktop
    with no changes.
    
    See also: gnome-shell#5406
    See also: gnome-control-center!1299

 gnome-version.xml.in         |  8 --------
 libgnome-desktop/meson.build | 14 +++++++++-----
 meson.build                  | 27 ---------------------------
 meson_options.txt            | 10 ----------
 4 files changed, 9 insertions(+), 50 deletions(-)
---
diff --git a/libgnome-desktop/meson.build b/libgnome-desktop/meson.build
index 375cf57c..708a4ae8 100644
--- a/libgnome-desktop/meson.build
+++ b/libgnome-desktop/meson.build
@@ -27,17 +27,21 @@ conf.set('HAVE_OPENAT', cc.has_function('openat'))
 conf.set('HAVE_USELOCALE', cc.has_function('uselocale'))
 conf.set('HAVE_XLOCALE', cc.has_header('xlocale.h'))
 
+configure_file(
+  output: 'config.h',
+  configuration: conf,
+)
+
+version_conf = configuration_data()
+version_array = meson.project_version().split('.')
+version_conf.set('GNOME_PLATFORM', version_array[0])
+
 gnome_desktop_header_file = configure_file(
   input: 'gnome-desktop-version.h.in',
   output: 'gnome-desktop-version.h',
   configuration: version_conf,
 )
 
-configure_file(
-  output: 'config.h',
-  configuration: conf,
-)
-
 dbus_xrandr_built_sources = gnome.gdbus_codegen('meta-dbus-xrandr',
   'xrandr.xml',
   namespace: 'MetaDBus',
diff --git a/meson.build b/meson.build
index 6435acc4..fe832345 100644
--- a/meson.build
+++ b/meson.build
@@ -85,33 +85,6 @@ if not cc.has_function('clock_gettime', dependencies: rt_dep)
   rt_dep = dependency('', required: false)
 endif
 
-version_array = meson.project_version().split('.')
-version_conf = configuration_data()
-
-version_conf.set('GNOME_PLATFORM', version_array[0])
-version_conf.set('GNOME_MINOR', version_array[1])
-version_conf.set('GNOME_MICRO', 0)
-version_conf.set('GNOME_DISTRIBUTOR', get_option('gnome_distributor'))
-
-if get_option('date_in_gnome_version')
-  date = run_command(['date', '+%Y-%m-%d'])
-  version_conf.set('GNOME_DATE', date.stdout().strip())
-  version_conf.set('GNOME_DATE_COMMENT_START', '')
-  version_conf.set('GNOME_DATE_COMMENT_END', '')
-else
-  version_conf.set('GNOME_DATE', '')
-  version_conf.set('GNOME_DATE_COMMENT_START', '<!--')
-  version_conf.set('GNOME_DATE_COMMENT_END', '-->')
-endif
-
-version_xml = configure_file(
-  configuration: version_conf,
-  input: 'gnome-version.xml.in',
-  output: 'gnome-version.xml',
-  install: true,
-  install_dir: versiondir,
-)
-
 subdir('libgnome-desktop')
 subdir('po')
 subdir('tests')
diff --git a/meson_options.txt b/meson_options.txt
index c4db6eaf..0eda239a 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,13 +1,3 @@
-option('gnome_distributor',
-  type: 'string', value: 'GNOME.Org',
-  description: 'Specify name of GNOME distributor'
-)
-
-option('date_in_gnome_version',
-  type: 'boolean', value: true,
-  description: 'Include the build date in gnome-version.xml'
-)
-
 option('desktop_docs',
   type: 'boolean', value: true,
   description: 'Build desktop-wide help documents'


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