1 /*
2  * Copyright (c) 2017, NVIDIA CORPORATION.  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 
17 #include "gbldefs.h"
18 #include "release.h"
19 #include "version.h"
20 
21 #ifndef LANGUAGE
22 #define LANGUAGE "F90"
23 #endif
24 
25 #define PRODUCT ""
26 
27 /* COPYRIGHT is extern to make it easy to find in symbol table */
28 /* it also has extra space to patch in interesting stuff */
29 const char COPYRIGHT[128] =
30     "";
31 
32 VERSION version = {LANGUAGE, VHOST, VSN, BLD, DVSN, TARGET, PRODUCT, COPYRIGHT};
33 
34 const char *
get_version_string(void)35 get_version_string(void)
36 {
37   static char buf[128];
38   snprintf(buf, 128, "%s%s", version.vsn, version.bld);
39   return buf;
40 }
41