blob: 2f002c98ae54136f471b06eefe89ca5e6be368f3 [file] [log] [blame]
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -04001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Davide Pesaventoba3f6892020-12-08 22:18:35 -05002/*
3 * Copyright (c) 2014-2020, Regents of the University of California
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -04004 *
Davide Pesaventoba3f6892020-12-08 22:18:35 -05005 * NAC library is free software: you can redistribute it and/or modify it under the
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -04006 * terms of the GNU Lesser General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option) any later version.
8 *
Davide Pesaventoba3f6892020-12-08 22:18:35 -05009 * NAC library is distributed in the hope that it will be useful, but WITHOUT ANY
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -040010 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
12 *
13 * You should have received copies of the GNU General Public License and GNU Lesser
Davide Pesaventoba3f6892020-12-08 22:18:35 -050014 * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -040015 * <http://www.gnu.org/licenses/>.
16 *
Davide Pesaventoba3f6892020-12-08 22:18:35 -050017 * See AUTHORS.md for complete list of NAC library authors and contributors.
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -040018 */
19
Davide Pesaventoba3f6892020-12-08 22:18:35 -050020#ifndef NDN_NAC_VERSION_HPP
21#define NDN_NAC_VERSION_HPP
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -040022
23namespace ndn {
Davide Pesaventoba3f6892020-12-08 22:18:35 -050024namespace nac {
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -040025
26/** ndn-nac version follows Semantic Versioning 2.0.0 specification
27 * http://semver.org/
28 */
29
30/** \brief ndn-nac version represented as an integer
31 *
32 * MAJOR*1000000 + MINOR*1000 + PATCH
33 */
34#define NDN_NAC_VERSION @VERSION@
35
36/** \brief ndn-nac version represented as a string
37 *
38 * MAJOR.MINOR.PATCH
39 */
40#define NDN_NAC_VERSION_STRING "@VERSION_STRING@"
41
42/** \brief ndn-nac version string, including git commit information, if ndn-nac is build from
43 * specific git commit
44 *
45 * NDN_NAC_VERSION_BUILD_STRING is obtained using the following command (`ndn-nac-` prefix is
46 * afterwards removed):
47 *
48 * `git describe --match 'ndn-nac-*'`
49 *
50 * When ndn-nac is built not from git, NDN_NAC_VERSION_BUILD_STRING equals NDN_NAC_VERSION_STRING
51 *
52 * MAJOR.MINOR.PATCH(-release-candidate-tag)(-(number-of-commits-since-tag)-COMMIT-HASH)
53 *
54 * Example, 0.1.0-rc1-1-g5c86570
55 */
56#define NDN_NAC_VERSION_BUILD_STRING "@VERSION_BUILD@"
57
58/// MAJOR version
59#define NDN_NAC_VERSION_MAJOR @VERSION_MAJOR@
60/// MINOR version
61#define NDN_NAC_VERSION_MINOR @VERSION_MINOR@
62/// PATCH version
63#define NDN_NAC_VERSION_PATCH @VERSION_PATCH@
64
Davide Pesaventoba3f6892020-12-08 22:18:35 -050065} // namespace nac
Alexander Afanasyev2b57aeb2018-06-15 18:32:28 -040066} // namespace ndn
67
Davide Pesaventoba3f6892020-12-08 22:18:35 -050068#endif // NDN_NAC_VERSION_HPP