From d6622a1156929294b909d08273fd227c7d817bb9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 22 Aug 2021 13:09:30 -0500 Subject: add meson build files Closes #116. Closes #171. Closes #172. Closes #175. --- src/common/meson.build | 6 ++++++ src/common/version.h.in | 18 ++++++++++++++++++ src/common/version.in | 1 + 3 files changed, 25 insertions(+) create mode 100644 src/common/meson.build create mode 100644 src/common/version.h.in create mode 100644 src/common/version.in (limited to 'src/common') 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@ -- cgit v1.2.3