-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathfobos
More file actions
185 lines (161 loc) · 5.34 KB
/
Copy pathfobos
File metadata and controls
185 lines (161 loc) · 5.34 KB
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[project]
name = StringiFor
version = VERSION
summary = Strings Fortran Manipulator with steroids
repository = https://github.com/szaghi/StringiFor
website = https://szaghi.github.io/StringiFor
email = stefano.zaghi@gmail.it
authors = Stefano Zaghi
[dependencies]
deps_dir = src/third_party
BeFoR64 = https://github.com/szaghi/BeFoR64
FACE = https://github.com/szaghi/FACE
PENF = https://github.com/szaghi/PENF
[modes]
modes = tests-gnu tests-gnu-debug
tests-intel tests-intel-debug
stringifor-static-gnu stringifor-shared-gnu
stringifor-static-intel stringifor-shared-intel
[common-variables]
$CSHARED_GNU = -c -fPIC -frealloc-lhs -std=f2008 -fall-intrinsics
$CSHARED_INT = -c -fPIC -assume realloc_lhs -standard-semantics -std08
$LSHARED = -shared
$CSTATIC_GNU = -c -frealloc-lhs -std=f2008 -fall-intrinsics
$CSTATIC_INT = -c -assume realloc_lhs -standard-semantics -std08
$DEBUG_GNU = -Og -g3 -Warray-bounds -Wcharacter-truncation -Wline-truncation -Wimplicit-interface -Wimplicit-procedure -Wunderflow -fcheck=all -fmodule-private -ffree-line-length-132 -fimplicit-none -fbacktrace -fdump-core -finit-real=nan
$DEBUG_INT = -O0 -check arg_temp_created -check format -check assume -check format -check output_conversion -check pointers -check stack -check uninit -debug all -warn all -extend-source 132 -traceback
$OPTIMIZE = -O2
$EXDIRS = BeFoR64/src/tests/ BeFoR64/src/third_party/ PENF/src/tests/
# main modes
[tests-gnu]
template = template-static-gnu
build_dir = exe
[tests-gnu-debug]
template = template-static-gnu-debug
build_dir = exe
[tests-intel]
template = template-static-intel
build_dir = exe
[tests-intel-debug]
template = template-static-intel-debug
build_dir = exe
[stringifor-static-gnu]
template = template-static-gnu
build_dir = lib
target = stringifor.F90
output = libstringifor.a
mklib = static
[stringifor-shared-gnu]
template = template-shared-gnu
build_dir = lib
target = stringifor.F90
output = libstringifor.so
mklib = shared
[stringifor-static-intel]
template = template-static-intel
build_dir = lib
target = stringifor.F90
output = libstringifor.a
mklib = static
[stringifor-shared-intel]
template = template-shared-intel
build_dir = lib
target = stringifor.F90
output = libstringifor.so
mklib = shared
# templates
[template-static-gnu]
compiler = gnu
exclude_dirs = $EXDIRS
src = src/
cflags = $CSTATIC_GNU $OPTIMIZE
lflags = $OPTIMIZE
cflags_heritage = True
colors = True
quiet = False
log = True
jobs = 10
[template-static-gnu-debug]
compiler = gnu
exclude_dirs = $EXDIRS
src = src/
cflags = $CSTATIC_GNU $DEBUG_GNU
lflags = $DEBUG_GNU
cflags_heritage = True
colors = True
quiet = False
log = True
jobs = 10
[template-shared-gnu]
compiler = gnu
exclude_dirs = $EXDIRS
src = src/
cflags = $CSHARED_GNU $OPTIMIZE
lflags = $LSHARED $OPTIMIZE
cflags_heritage = True
colors = True
quiet = False
log = True
jobs = 10
[template-static-intel]
compiler = intel
exclude_dirs = $EXDIRS
src = src/
cflags = $CSTATIC_INT $OPTIMIZE
lflags = $OPTIMIZE
cflags_heritage = True
colors = True
quiet = False
log = True
jobs = 10
[template-static-intel-debug]
compiler = intel
exclude_dirs = $EXDIRS
src = src/
cflags = $CSTATIC_INT $DEBUG_INT
lflags = $DEBUG_INT
cflags_heritage = True
colors = True
quiet = False
log = True
jobs = 10
[template-shared-intel]
compiler = intel
exclude_dirs = $EXDIRS
src = src/
cflags = $CSHARED_INT $OPTIMIZE
lflags = $LSHARED $OPTIMIZE
cflags_heritage = True
colors = True
quiet = False
log = True
jobs = 10
# rules
[rule-makedoc]
help = Build documentation with formal + VitePress
rule_1 = formal generate --mirror-sources --diagrams --project docs/ford.md --output docs/api
rule_2 = cd docs && npm ci && npm run docs:build
[rule-deldoc]
help = Delete documentation build artifacts
rule = rm -rf docs/.vitepress/dist/ docs/.vitepress/cache/ docs/api/
[rule-delexe]
help = Delete exes
rule = rm -rf exe/
[rule-clean]
help = Clean the project tree
rule_1 = FoBiS.py rule -ex deldoc
rule_2 = FoBiS.py rule -ex delexe
rule_3 = rm -f *.gcov
[rule-maketar]
help = Make tar archive of the project
rule = tar --xform="s%^%StringiFor/%" -czf StringiFor.tar.gz *
[rule-makecoverage]
help = Perform coverage analysis
rule_1 = FoBiS.py doctests -mode tests-gnu-debug -coverage --exclude_from_doctests penf.F90 --exclude_from_doctests penf_b_size.F90 --exclude_from_doctests penf_stringify.F90 --exclude_from_doctests befor64_pack_data_m.F90 --exclude_from_doctests befor64.F90 -keep_volatile_doctests -doctests_preprocessor fpp
rule_2 = rm -f exe/obj/befor64* exe/obj/face* exe/obj/penf*
rule_3 = ./scripts/compute-coverage.sh
[rule-makecoverage-analysis]
help = Perform coverage analysis and saving reports in markdown
rule_1 = FoBiS.py rule -ex makecoverage
rule_2 = FoBiS.py rule --gcov-analyzer docs/guide/ --gcov-analyzer coverage-analysis
rule_3 = rm -f *.gcov parsed.xml source.xml