-
Notifications
You must be signed in to change notification settings - Fork 45
/
_oasis
411 lines (373 loc) · 12.2 KB
/
_oasis
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
OASISFormat: 0.4
Name: oasis
Version: 0.4.12
OCamlVersion: >= 3.12.1
FindlibVersion: >= 1.3.1
LicenseFile: COPYING.txt
License: LGPL-2.1 with OCaml linking exception
BuildType: ocamlbuild (0.4)
Authors: Sylvain Le Gall
Maintainers: Sylvain Le Gall <sylvain@le-gall.net>
Copyrights: (C) 2011-2016 Sylvain Le Gall
(C) 2008-2010 OCamlCore SARL
Homepage: https://github.com/ocaml/oasis
Plugins: DevFiles (0.4), StdFiles (0.4), META (0.4)
FilesAB: src/oasis/OASISConf.ml.ab
BuildTools: ocamlbuild, make
AlphaFeatures: source_patterns, stdfiles_markdown
BugReports: https://github.com/ocaml/oasis/issues
ImplementationPatterns+:
${module}.mlify
Synopsis: Tooling for building OCaml libraries and applications
Description:
OASIS generates a full configure, build and install system for your
application. It starts with a simple `_oasis` file at the toplevel of your
project and creates everything required.
.
OASIS leverages existing OCaml tooling to perform most of it's work. In fact,
it might be more appropriate to think of it as simply the glue that binds
these other subsystems together and coordinates the work that they do. It
should support the following tools:
.
* OCamlbuild
* OMake
* OCamlMakefile (todo),
* ocaml-autoconf (todo)
.
It also features a do-it-yourself command line invocation and an internal
configure/install scheme. Libraries are managed through findlib. It has been
tested on GNU Linux and Windows.
.
It also allows to have standard entry points and description. It helps to
integrates your libraries and software with third parties tools like OPAM.
Flag libraries
Description: Install OASIS and base libraries, for plugins development
Flag devel
Description: Build OASIS tools for development
Default: false
Flag quickstart_tests
Description: Build test-quickstart
Default: true
Flag omake_tests
Description: Build test-omake
Default: false
Flag devel_tests
Description: Build test-devel
Default: false
Library oasis
Path: src/oasis
Modules: FormatExt,
PropList,
OASISUtils,
OASISUnixPath,
OASISFileSystem,
OASISContext,
OASISSourcePatterns,
OASISGettext,
OASISMessage,
OASISText,
OASISTypes,
OASISParse,
OASISValues,
OASISExpr,
OASISVersion,
OASISLicense,
OASISFileTemplate,
OASISBuildSection,
OASISDocument,
OASISExecutable,
OASISFlag,
OASISSetupUpdate,
OASISLibrary,
OASISObject,
OASISPackage,
OASISSourceRepository,
OASISTest,
OASISPlugin,
OASISFindlib,
OASISSchema,
OASISSection,
OASISData,
OASISString,
OASISExec,
OASISFileUtil,
OASISHostPath,
OASISGraph,
OASISFeatures,
OASISDataNotation
InternalModules: OASISMutex,
OASISVersion_types,
OASISVersion_lexer,
OASISVersion_parser,
OASISLicense_types,
OASISLicense_lexer,
OASISLicense_parser,
OASISValues_lexer,
OASISConf,
OASISAst_types,
OASISAst_lexer,
OASISAst_parser,
OASISAst,
OASISCheck,
OASISCustom,
OASISQuickstart,
OASISHelp,
OASISFormat,
OASISSection_intern,
OASISBuildSection_intern,
OASISDocument_intern,
OASISExecutable_intern,
OASISFlag_intern,
OASISLibrary_intern,
OASISObject_intern,
OASISPackage_intern,
OASISSourceRepository_intern,
OASISTest_intern,
OASISSchema_intern,
OASISPath_intern
CompiledObject: Best
BuildDepends: unix
BuildTools+: ocamlmod, ocamlyacc, ocamllex, ocamlify
XMETADescription: _oasis file functions
Install$: flag(libraries)
Library base
Path: src/base
Modules: BaseArgExt,
BaseBuilt,
BaseCheck,
BaseCustom,
BaseData,
BaseDoc,
BaseEnvLight,
BaseEnv,
BaseFileAB,
BaseGenerate,
BaseLog,
BaseOCamlcConfig,
BaseSetup,
BaseStandardVar,
BaseTest,
BaseDynVar,
BaseMessage,
BaseContext,
BaseCompat
CompiledObject: Best
BuildDepends: oasis
BuildTools+: ocamlmod, ocamlify
FindlibParent: oasis
XMETADescription: 'setup.ml' modules for OASIS
Install$: flag(libraries)
Library "builtin-plugins"
Path: src
Modules: OASISBuiltinPlugins,
plugins/extra/META/METAPlugin,
plugins/internal/InternalConfigurePlugin,
plugins/internal/InternalInstallPlugin,
plugins/none/NonePlugin,
plugins/ocamlbuild/OCamlbuildPlugin,
plugins/ocamlbuild/OCamlbuildDocPlugin,
plugins/ocamlbuild/OCamlbuildCommon,
plugins/custom/CustomPlugin,
plugins/extra/devfiles/DevFilesPlugin,
plugins/extra/stdfiles/StdFilesPlugin,
plugins/omake/OMakePlugin
InternalModules: plugins/none/NoneData,
plugins/internal/InternalData,
plugins/internal/InternalId,
plugins/ocamlbuild/OCamlbuildData,
plugins/ocamlbuild/OCamlbuildId,
plugins/ocamlbuild/MyOCamlbuildBase,
plugins/ocamlbuild/MyOCamlbuildFindlib,
plugins/custom/CustomData,
plugins/extra/META/METAData,
plugins/extra/devfiles/DevFilesData,
plugins/extra/stdfiles/StdFilesData,
plugins/omake/OMakeData,
plugins/omake/OMakeFields,
plugins/omake/OMakeEquip,
plugins/omake/OMakeFormat
CompiledObject: Best
BuildDepends: oasis, oasis.base, ocamlbuild
FindlibParent: oasis
Library cli
Path: src/cli
Modules: CLISubCommand,
CLIArgExt,
CLICommon,
CLIPager
InternalModules: CLIData, CLIPluginsLoaded, CLIPluginLoader
CompiledObject: byte
BuildDepends: oasis, oasis.base, plugin-loader
FindlibParent: oasis
XMETADescription: 'setup.ml' modules for OASIS
Install$: flag(libraries)
Library dynrun
Path: src/dynrun
Modules: OASISDynRun
CompiledObject: best
BuildDepends: oasis.base, oasis.builtin-plugins
FindlibParent: oasis
Executable oasis
Path: src/cli
MainIs: Main.ml
BuildDepends: oasis, oasis.base, oasis.cli, oasis.builtin-plugins
CompiledObject: best
Document manual
Type: custom (0.4)
Title: OASIS User Manual
XCustom: $oasis -ignore-plugins manual -o doc/MANUAL.mkd
XCustomClean: $rm doc/MANUAL.mkd
DataFiles: doc/MANUAL.mkd
Document "api-oasis"
Title: API reference for OASIS
Type: OCamlbuild (0.4)
InstallDir: $htmldir/oasis
BuildTools+: ocamldoc
XOCamlbuildPath: src/
XOCamlbuildLibraries: oasis, oasis.base, oasis.cli
SourceRepository head
Type: git
Location: git://github.com/ocaml/oasis.git
Browser: https://github.com/ocaml/oasis
#
# Tests.
#
Library "test-common"
Path: test/test-common
Modules: TestCommon, TestFullUtils
Install: false
CompiledObject: best
Build$: flag(tests)
BuildDepends: oUnit (>= 2.0.0), oasis.base, fileutils, pcre
Executable "fake-ocamlfind"
Path: test/fake-ocamlfind
MainIs: FakeOCamlfind.ml
Install: false
CompiledObject: best
Build$: flag(tests)
BuildDepends: unix
Executable "test-main"
Path: test/test-main
MainIs: Test.ml
Install: false
CompiledObject: best
Build$: flag(tests)
BuildDepends: oUnit (>= 2.0.0), findlib, fileutils (>= 0.4.2), oasis,
oasis.base, oasis.builtin-plugins, test-common
Test main
Type: custom (0.4)
Command: $test_main -oasis $oasis -is-native $is_native -native-dynlink $native_dynlink -ocamlmod $ocamlmod -fake-ocamlfind $fake_ocamlfind -ext-lib $ext_lib -ext-dll $ext_dll
WorkingDirectory: test
TestTools: oasis, test-main, ocamlmod, fake-ocamlfind, ocamlbuild
Executable "test-omake"
Path: test/test-omake
MainIs: TestOMake.ml
Install: false
CompiledObject: best
Build$: flag(tests) && flag(omake_tests)
BuildDepends: oUnit (>= 2.0.0), findlib, fileutils (>= 0.4.2), oasis,
oasis.base, oasis.builtin-plugins, test-common
Test omake
Type: custom (0.4)
Command: $test_omake -oasis $oasis -is-native $is_native -native-dynlink $native_dynlink -ocamlmod $ocamlmod -fake-ocamlfind $fake_ocamlfind -ext-lib $ext_lib -ext-dll $ext_dll
WorkingDirectory: test
Run$: flag(omake_tests)
TestTools: oasis, test-omake, ocamlmod, fake-ocamlfind, omake
Executable "test-quickstart"
Path: test/test-quickstart
MainIs: TestQuickstart.ml
Install: false
CompiledObject: best
Build$: flag(tests) && flag(quickstart_tests)
BuildDepends: oUnit (>= 2.0.0), findlib, fileutils (>= 0.4.2),
expect.pcre (>= 0.0.4), oasis, oasis.builtin-plugins,
test-common
Test quickstart
Type: custom (0.4)
Command: $test_quickstart -oasis $oasis -is-native $is_native -native-dynlink $native_dynlink -ocamlmod $ocamlmod -fake-ocamlfind $fake_ocamlfind
WorkingDirectory: test
Run$: flag(quickstart_tests)
TestTools: oasis, test-quickstart
Executable "test-devel"
Path: test/test-devel
MainIs: TestDevel.ml
Install: false
CompiledObject: best
Build$: flag(tests) && flag(devel_tests)
BuildDepends: oUnit (>= 2.0.0), oasis, test-common
Test devel
Type: custom (0.4)
Command: $test_devel
WorkingDirectory: test
Run$: flag(devel_tests)
TestTools: oasis, test-devel
#
# Tools.
#
Executable bench
Path: src/tools/bench
MainIs: Bench.ml
Install: false
CompiledObject: best
Build$: flag(devel)
BuildDepends: benchmark (>= 1.2), oasis, oasis.base, oasis.builtin-plugins
#
# Third party: plugin-loader.
#
Library "plugin-loader"
Path: src/ext/plugin-loader/src
Modules: PluginLoader
BuildDepends: dynlink, findlib
XMETADescription: OCaml plugin management using findlib
Library "pluginloaderLib"
Path: src/ext/plugin-loader/test/data/findlib/pluginloaderLib
Modules: PluginloaderLib
Build$: flag(tests)
Install: false
XMETADescription: test library loader
Library "plugin1"
Path: src/ext/plugin-loader/test/data/findlib/plugin1
Modules: Plugin1
Install: false
Build$: flag(tests)
BuildDepends: pluginloaderLib
XMETADescription: test library number 1
XMETAExtraLines: plugin_system = "pluginloader"
plugin_name = "plugin1"
plugin_synopsis = "first plugin"
Library "plugin2"
Path: src/ext/plugin-loader/test/data/findlib/plugin2
Modules: Plugin2
Install: false
Build$: flag(tests)
BuildDepends: pluginloaderLib, plugin1
XMETADescription: test library number 2
XMETAExtraLines: plugin_system = "pluginloader"
plugin_name = "plugin2"
plugin_synopsis = "second plugin"
Library "plugin3"
Path: src/ext/plugin-loader/test/data/findlib/plugin3
Modules: Plugin3
Install: false
Build$: flag(tests)
BuildDepends: pluginloaderLib
XMETADescription: test library number 3
XMETAExtraLines: plugin_system = "pluginloader"
plugin_name = "plugin3"
plugin_synopsis = "third plugin"
Executable "pluginloader"
Path: src/ext/plugin-loader/test/data
MainIs: PluginLoaderMain.ml
Install: false
Build$: flag(tests)
BuildDepends: pluginloaderLib, plugin-loader
Executable "test_loader"
Path: src/ext/plugin-loader/test
MainIs: TestLoader.ml
BuildDepends: plugin-loader, fileutils, oUnit
Build$: flag(tests)
Install: false
Test main_loader
Type: custom (0.4)
Command: $test_loader -pluginloader $pluginloader
TestTools: test_loader, pluginloader