1 | /** |
2 | * Copyright 2021 Alibaba, Inc. and its affiliates. All Rights Reserved. |
3 | * |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | * you may not use this file except in compliance with the License. |
6 | * You may obtain a copy of the License at |
7 | * |
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | * |
10 | * Unless required by applicable law or agreed to in writing, software |
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. |
15 | |
16 | * \author Haichao.chc |
17 | * \date Apr 2021 |
18 | * \brief Proxima BE version information |
19 | */ |
20 | |
21 | #include "version.h" |
22 | #include <ailego/version.i> |
23 | |
24 | #ifdef proxima_be_common_VERSION |
25 | #define PROXIMA_BE_VERSION_STRING proxima_be_common_VERSION |
26 | #else |
27 | #define PROXIMA_BE_VERSION_STRING "unknown" |
28 | #endif |
29 | |
30 | namespace proxima { |
31 | namespace be { |
32 | |
33 | static const char PROXIMA_BE_VERSION_DETAILS[] = AILEGO_VERSION_COMPILE_DETAILS( |
34 | "Proxima BE Version " PROXIMA_BE_VERSION_STRING |
35 | ".\nCopyright (C) Alibaba, Inc. and its affiliate. All rights reserved.\n" ); |
36 | |
37 | const char *Version::String() { |
38 | return PROXIMA_BE_VERSION_STRING; |
39 | } |
40 | |
41 | const char *Version::Details(void) { |
42 | return PROXIMA_BE_VERSION_DETAILS; |
43 | } |
44 | |
45 | } // namespace be |
46 | } // end namespace proxima |
47 | |