Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Davide Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2014-2020, Regents of the University of California |
Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 4 | * |
Davide Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 5 | * NAC library is free software: you can redistribute it and/or modify it under the |
Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 6 | * 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 Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 9 | * NAC library is distributed in the hope that it will be useful, but WITHOUT ANY |
Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 10 | * 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 Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 14 | * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see |
Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 15 | * <http://www.gnu.org/licenses/>. |
| 16 | * |
Davide Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 17 | * See AUTHORS.md for complete list of NAC library authors and contributors. |
Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 18 | */ |
| 19 | |
Davide Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 20 | #ifndef NDN_NAC_VERSION_HPP |
| 21 | #define NDN_NAC_VERSION_HPP |
Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 22 | |
| 23 | namespace ndn { |
Davide Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 24 | namespace nac { |
Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 25 | |
| 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 Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 65 | } // namespace nac |
Alexander Afanasyev | 2b57aeb | 2018-06-15 18:32:28 -0400 | [diff] [blame] | 66 | } // namespace ndn |
| 67 | |
Davide Pesavento | ba3f689 | 2020-12-08 22:18:35 -0500 | [diff] [blame] | 68 | #endif // NDN_NAC_VERSION_HPP |