aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2021-08-22 13:09:30 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-09-04 16:01:29 -0500
commitd6622a1156929294b909d08273fd227c7d817bb9 (patch)
tree29df9fc3ecae9e72e467effc91f3985eafaccd82 /src/common
parent92004a2ed65045b7ca79063dda8fc5b4ac761606 (diff)
add meson build files
Closes #116. Closes #171. Closes #172. Closes #175.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/meson.build6
-rw-r--r--src/common/version.h.in18
-rw-r--r--src/common/version.in1
3 files changed, 25 insertions, 0 deletions
diff --git a/src/common/meson.build b/src/common/meson.build
new file mode 100644
index 00000000..2e421658
--- /dev/null
+++ b/src/common/meson.build
@@ -0,0 +1,6 @@
+version_h = vcs_tag(
+ input : 'version.h.in',
+ output : 'version.h')
+version_f = vcs_tag(
+ input : 'version.in',
+ output : 'version')
diff --git a/src/common/version.h.in b/src/common/version.h.in
new file mode 100644
index 00000000..59d648d3
--- /dev/null
+++ b/src/common/version.h.in
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2007-2015 The OpenRC Authors.
+ * See the Authors file at the top-level directory of this distribution and
+ * https://github.com/OpenRC/openrc/blob/master/AUTHORS
+ *
+ * This file is part of OpenRC. It is subject to the license terms in
+ * the LICENSE file found in the top-level directory of this
+ * distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+ * This file may not be copied, modified, propagated, or distributed
+ * except according to the terms contained in the LICENSE file.
+ */
+
+#ifndef _VERSION_H_
+#define _VERSION_H_
+
+#define VERSION "@VCS_TAG@"
+
+#endif
diff --git a/src/common/version.in b/src/common/version.in
new file mode 100644
index 00000000..42179405
--- /dev/null
+++ b/src/common/version.in
@@ -0,0 +1 @@
+@VCS_TAG@