qulogic/libgnt

Add a gntversion header.

2018-11-22, Elliott Sales de Andrade
cfde50942723
Parents 671452b87bc5
Children 5a9fd1d23527
Add a gntversion header.

I'd prefer to use configuration_data.merge_from and not bother with the
template, but we don't depend on meson 0.42.0 yet.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gntversion.h.in Thu Nov 22 03:43:24 2018 -0500
@@ -0,0 +1,38 @@
+/*
+ * GNT - The GLib Ncurses Toolkit
+ *
+ * GNT is the legal property of its developers, whose names are too numerous
+ * to list here. Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This library is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef GNT_VERSION_H
+#define GNT_VERSION_H
+/**
+ * SECTION:gnt
+ * @section_id: libgnt-gnt
+ * @short_description: <filename>gntversion.h</filename>
+ * @title: GNT Versioning
+ */
+
+#mesondefine GNT_VERSION
+#mesondefine GNT_MAJOR_VERSION
+#mesondefine GNT_MINOR_VERSION
+#mesondefine GNT_MICRO_VERSION
+#mesondefine GNT_EXTRA_VERSION
+
+#endif
--- a/meson.build Wed Nov 21 01:41:03 2018 -0600
+++ b/meson.build Thu Nov 22 03:43:24 2018 -0500
@@ -193,6 +193,10 @@
configure_file(output : 'gntconfig.h',
configuration : gnt_config)
+configure_file(input : 'gntversion.h.in', output : 'gntversion.h',
+ configuration : gnt_config,
+ install : true,
+ install_dir : join_paths(get_option('includedir'), 'gnt'))
gmodule = dependency('gmodule-2.0')