| 1 |
/* |
| 2 |
* (C) Copyright 2023- ECMWF. |
| 3 |
* |
| 4 |
* This software is licensed under the terms of the Apache Licence Version 2.0 |
| 5 |
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 6 |
* In applying this licence, ECMWF does not waive the privileges and immunities |
| 7 |
* granted to it by virtue of its status as an intergovernmental organisation |
| 8 |
* nor does it submit to any jurisdiction. |
| 9 |
*/ |
| 10 |
|
| 11 |
#include "atlas-example-plugin/version.h" |
| 12 |
|
| 13 |
#define ATLAS_EXAMPLE_PLUGIN_MAJOR_VERSION @atlas-example-plugin_VERSION_MAJOR@ |
| 14 |
#define ATLAS_EXAMPLE_PLUGIN_MINOR_VERSION @atlas-example-plugin_VERSION_MINOR@ |
| 15 |
#define ATLAS_EXAMPLE_PLUGIN_PATCH_VERSION @atlas-example-plugin_VERSION_PATCH@ |
| 16 |
|
| 17 |
const char* atlas_example_plugin_git_sha1() { |
| 18 |
return "@atlas-example-plugin_GIT_SHA1@"; |
| 19 |
} |
| 20 |
|
| 21 |
const char* atlas_example_plugin_version() { |
| 22 |
return "@atlas-example-plugin_VERSION@"; |
| 23 |
} |
| 24 |
|
| 25 |
const char* atlas_example_plugin_version_str() { |
| 26 |
return "@atlas-example-plugin_VERSION_STR@"; |
| 27 |
} |
| 28 |
|
| 29 |
unsigned int atlas_example_plugin_version_int() { |
| 30 |
return 10000 * ATLAS_EXAMPLE_PLUGIN_MAJOR_VERSION + 100 * ATLAS_EXAMPLE_PLUGIN_MINOR_VERSION + 1 * ATLAS_EXAMPLE_PLUGIN_PATCH_VERSION; |
| 31 |
} |