Skip to content

Commit bec5794

Browse files
author
Jeremie Dimino
committed
allow to not build examples
1 parent c7c5eec commit bec5794

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

_oasis

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Description:
3030

3131
FilesAB: src/lTerm_config.h.ab
3232

33+
Flag examples
34+
Description: build examples
35+
Default: true
36+
3337
# +-------------------------------------------------------------------+
3438
# | The library |
3539
# +-------------------------------------------------------------------+
@@ -92,83 +96,94 @@ Executable events
9296
CompiledObject: best
9397
MainIs: events.ml
9498
BuildDepends: lambda-term
99+
Build$: flag(examples)
95100

96101
Executable colors
97102
Path: examples
98103
Install: false
99104
CompiledObject: best
100105
MainIs: colors.ml
101106
BuildDepends: lambda-term
107+
Build$: flag(examples)
102108

103109
Executable colors_256
104110
Path: examples
105111
Install: false
106112
CompiledObject: best
107113
MainIs: colors_256.ml
108114
BuildDepends: lambda-term
115+
Build$: flag(examples)
109116

110117
Executable rgb
111118
Path: examples
112119
Install: false
113120
CompiledObject: best
114121
MainIs: rgb.ml
115122
BuildDepends: lambda-term
123+
Build$: flag(examples)
116124

117125
Executable move
118126
Path: examples
119127
Install: false
120128
CompiledObject: best
121129
MainIs: move.ml
122130
BuildDepends: lambda-term
131+
Build$: flag(examples)
123132

124133
Executable hello
125134
Path: examples
126135
Install: false
127136
CompiledObject: best
128137
MainIs: hello.ml
129138
BuildDepends: lambda-term
139+
Build$: flag(examples)
130140

131141
Executable clock
132142
Path: examples
133143
Install: false
134144
CompiledObject: best
135145
MainIs: clock.ml
136146
BuildDepends: lambda-term
147+
Build$: flag(examples)
137148

138149
Executable buttons
139150
Path: examples
140151
Install: false
141152
CompiledObject: best
142153
MainIs: buttons.ml
143154
BuildDepends: lambda-term
155+
Build$: flag(examples)
144156

145157
Executable focus
146158
Path: examples
147159
Install: false
148160
CompiledObject: best
149161
MainIs: focus.ml
150162
BuildDepends: lambda-term
163+
Build$: flag(examples)
151164

152165
Executable scroll
153166
Path: examples
154167
Install: false
155168
CompiledObject: best
156169
MainIs: scroll.ml
157170
BuildDepends: lambda-term
171+
Build$: flag(examples)
158172

159173
Executable scroll_debug
160174
Path: examples
161175
Install: false
162176
CompiledObject: best
163177
MainIs: scroll_debug.ml
164178
BuildDepends: lambda-term
179+
Build$: flag(examples)
165180

166181
Flag images
167182
Description: Build ascii art example (requires camlimages)
168183
Default: false
169184

170185
Executable asciiart
171-
Build$: flag(images)
186+
Build$: flag(images) && flag(examples)
172187
Path: examples
173188
Install: false
174189
CompiledObject: best
@@ -181,55 +196,63 @@ Executable checkbuttons
181196
CompiledObject: best
182197
MainIs: checkbuttons.ml
183198
BuildDepends: lambda-term
199+
Build$: flag(examples)
184200

185201
Executable radiobuttons
186202
Path: examples
187203
Install: false
188204
CompiledObject: best
189205
MainIs: radiobuttons.ml
190206
BuildDepends: lambda-term
207+
Build$: flag(examples)
191208

192209
Executable shell
193210
Path: examples
194211
Install: false
195212
CompiledObject: best
196213
MainIs: shell.ml
197214
BuildDepends: lambda-term, str
215+
Build$: flag(examples)
198216

199217
Executable repl
200218
Path: examples
201219
Install: false
202220
CompiledObject: best
203221
MainIs: repl.ml
204222
BuildDepends: lambda-term
223+
Build$: flag(examples)
205224

206225
Executable modal
207226
Path: examples
208227
Install: false
209228
CompiledObject: best
210229
MainIs: modal.ml
211230
BuildDepends: lambda-term
231+
Build$: flag(examples)
212232

213233
Executable "read-password"
214234
Path: examples
215235
Install: false
216236
CompiledObject: best
217237
MainIs: read_password.ml
218238
BuildDepends: lambda-term
239+
Build$: flag(examples)
219240

220241
Executable "read-yes-no"
221242
Path: examples
222243
Install: false
223244
CompiledObject: best
224245
MainIs: read_yes_no.ml
225246
BuildDepends: lambda-term
247+
Build$: flag(examples)
226248

227249
Executable "editor"
228250
Path: examples
229251
Install: false
230252
CompiledObject: best
231253
MainIs: editor.ml
232254
BuildDepends: lambda-term
255+
Build$: flag(examples)
233256

234257
# +-------------------------------------------------------------------+
235258
# | Utils |
@@ -252,6 +275,7 @@ Executable "history-stress-test"
252275
CompiledObject: best
253276
MainIs: history_stress_test.ml
254277
BuildDepends: lambda-term
278+
Build$: flag(tests)
255279

256280
# +-------------------------------------------------------------------+
257281
# | Doc |

opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ bug-reports: "https://github.com/diml/lambda-term/issues"
66
dev-repo: "git://github.com/diml/lambda-term.git"
77
license: "BSD3"
88
build: [
9-
["./configure" "--prefix" prefix]
9+
["./configure" "--prefix" prefix --disable-examples]
1010
[make]
1111
]
1212
install: [[make "install"]]

0 commit comments

Comments
 (0)