aboutsummaryrefslogtreecommitdiffstats
path: root/src/version.h.in
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-03 10:56:34 +0200
committerDanilo M. <danix@danix.xyz>2026-08-03 10:56:34 +0200
commited5750c200b642c9710e03248c46993830e6fab5 (patch)
tree15c387c684df9ab174179985cee88740e2f8822b /src/version.h.in
parent0f92b1f62d373a3ef785d04306fbed3e4e96f099 (diff)
downloadqtmaildir-ed5750c200b642c9710e03248c46993830e6fab5.tar.gz
qtmaildir-ed5750c200b642c9710e03248c46993830e6fab5.zip
Add GPLv2-only license and per-file headers
Confirmed with the maintainer as v2-only rather than v2-or-later. LICENSE is the official text from gnu.org. Every file under src/ and tests/ carries the matching notice. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/version.h.in')
-rw-r--r--src/version.h.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/version.h.in b/src/version.h.in
new file mode 100644
index 0000000..8d76a3a
--- /dev/null
+++ b/src/version.h.in
@@ -0,0 +1,27 @@
+/*
+ * qtmaildir - a Qt6 mail client for notmuch-indexed Maildirs
+ * Copyright (C) 2026 Danilo M. <danix@danix.xyz>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * 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.
+ */
+
+#pragma once
+
+/// Generated from the project() declaration in the top-level CMakeLists.txt.
+/// The version is declared in exactly one place; anything that needs it takes
+/// it from here rather than repeating the literal.
+#define QTMAILDIR_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
+#define QTMAILDIR_VERSION_MINOR @PROJECT_VERSION_MINOR@
+#define QTMAILDIR_VERSION_PATCH @PROJECT_VERSION_PATCH@
+#define QTMAILDIR_VERSION "@PROJECT_VERSION@"