forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAMReX_buildInfo.cpp.in
163 lines (115 loc) · 2.78 KB
/
AMReX_buildInfo.cpp.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
namespace amrex {
const char* buildInfoGetBuildDate() {
static const char BUILD_DATE[] = @BUILD_DATE@;
return BUILD_DATE;
}
const char* buildInfoGetBuildDir() {
static const char BUILD_DIR[] = "@BUILD_DIR@";
return BUILD_DIR;
}
const char* buildInfoGetBuildMachine() {
static const char BUILD_MACHINE[] = "@BUILD_MACHINE@";
return BUILD_MACHINE;
}
const char* buildInfoGetAMReXDir() {
static const char AMREX_DIR[] = "@AMREX_TOP_DIR@";
return AMREX_DIR;
}
const char* buildInfoGetComp() {
static const char COMP[] = "@CMAKE_CXX_COMPILER_ID@";
return COMP;
}
const char* buildInfoGetCompVersion() {
static const char COMP_VERSION[] = "@CMAKE_CXX_COMPILER_VERSION@";
return COMP_VERSION;
}
// deprecated
const char* buildInfoGetFcomp() {
static const char FCOMP[] = "@CMAKE_Fortran_COMPILER_ID@";
return FCOMP;
}
// deprecated
const char* buildInfoGetFcompVersion() {
static const char FCOMP_VERSION[] = "@CMAKE_Fortran_COMPILER_VERSION@";
return FCOMP_VERSION;
}
const char* buildInfoGetCXXName() {
static const char CXX_comp_name[] = "@CMAKE_CXX_COMPILER@";
return CXX_comp_name;
}
const char* buildInfoGetFName() {
static const char F_comp_name[] = "@CMAKE_Fortran_COMPILER@";
return F_comp_name;
}
const char* buildInfoGetCXXFlags() {
static const char CXX_flags[] = "@CXX_FLAGS@";
return CXX_flags;
}
const char* buildInfoGetFFlags() {
static const char F_flags[] = "@Fortran_FLAGS@";
return F_flags;
}
const char* buildInfoGetLinkFlags() {
static const char link_flags[] = "@LINK_FLAGS@";
return link_flags;
}
const char* buildInfoGetLibraries() {
static const char libraries[] = "@LIBRARIES@";
return libraries;
}
const char* buildInfoGetAux(int i) {
//static const char AUX1[] = "${AUX[1]}";
@AUX_DECLS@
static const char EMPT[] = "";
switch(i)
{
@AUX_CASE@
default: return EMPT;
}
}
int buildInfoGetNumModules() {
// int num_modules = X;
@NUM_MODULES@
return num_modules;
}
const char* buildInfoGetModuleName(int i) {
//static const char MNAME1[] = "${MNAME[1]}";
@MNAME_DECLS@
static const char EMPT[] = "";
switch(i)
{
@MNAME_CASE@
default: return EMPT;
}
}
const char* buildInfoGetModuleVal(int i) {
//static const char MVAL1[] = "${MVAL[1]}";
@MVAL_DECLS@
static const char EMPT[] = "";
switch(i)
{
@MVAL_CASE@
default: return EMPT;
}
}
const char* buildInfoGetGitHash(int i) {
//static const char HASH1[] = "${GIT[1]}";
@GIT_DECLS@
static const char EMPT[] = "";
switch(i)
{
@GIT_CASE@
default: return EMPT;
}
}
const char* buildInfoGetBuildGitHash() {
//static const char HASH[] = "${GIT}";
@BUILDGIT_DECLS@
return HASH;
}
const char* buildInfoGetBuildGitName() {
//static const char NAME[] = "";
@BUILDGIT_NAME@
return NAME;
}
}