forked from ocaml/oasis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_oasis
315 lines (287 loc) · 9.25 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
OASISFormat: 0.3
OCamlVersion: >= 3.11.0
Name: oasis
Version: 0.3.1
LicenseFile: COPYING.txt
License: LGPL-2.1 with OCaml linking exception
BuildType: ocamlbuild (0.3)
Authors: Sylvain Le Gall
Copyrights: (C) 2008-2010 OCamlCore SARL
Homepage: http://oasis.forge.ocamlcore.org/
Plugins: DevFiles (0.3), StdFiles (0.3), META (0.3)
FilesAB: src/oasis/OASISConf.ml.ab
BuildTools: ocamlbuild, make
Synopsis: Architecture 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.
.
It uses external tools like OCamlbuild and it can be considered as the glue
between various subsystems that do the job. It should support the following
tools:
.
- OCamlbuild
- OMake (todo)
- 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 GODI.
Flag libraries
Description: Install oasis and base libraries, for plugins development
Flag gettext
Description: Use ocaml-gettext for i18n
Default: false
if flag(gettext)
PostBuildCommand: $make -C po all
PostCleanCommand: $make -C po clean
PostInstallCommand: $make -C po install PODIR=$prefix/share/locale
PostUninstallCommand: $make -C po install PODIR=$prefix/share/locale
Library oasis
Path: src/oasis
Modules: FormatExt,
FormatMarkdown,
ODNFunc,
PropList,
OASISUtils,
OASISUnixPath,
OASISContext,
OASISGettext,
OASISMessage,
OASISTypes,
OASISParse,
OASISValues,
OASISExpr,
OASISVersion,
OASISLicense,
OASISFileTemplate,
OASISBuildSection,
OASISDocument,
OASISExecutable,
OASISFlag,
OASISLibrary,
OASISObject,
OASISPackage,
OASISSourceRepository,
OASISTest,
OASISPlugin,
OASISFindlib,
OASISSchema,
OASISSection,
OASISData,
OASISString,
OASISExec,
OASISFileUtil,
OASISHostPath,
OASISGraph
InternalModules: OASISVersion_types,
OASISVersion_lexer,
OASISVersion_parser,
OASISLicense_types,
OASISLicense_lexer,
OASISLicense_parser,
OASISValues_lexer,
OASISSchema,
OASISConf,
OASISAst,
OASISCheck,
OASISRecDescParser,
OASISCustom,
OASISQuickstart,
OASISHelp,
OASISFormat,
OASISSection_intern,
OASISBuildSection_intern,
OASISDocument_intern,
OASISExecutable_intern,
OASISFlag_intern,
OASISLibrary_intern,
OASISPackage_intern,
OASISSourceRepository_intern,
OASISTest_intern,
OASISSchema_intern,
OASISPath_intern
CompiledObject: Best
BuildDepends: unix, odn (>= 0.0.3)
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
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
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
CompiledObject: Best
BuildDepends: oasis, oasis.base
FindlibParent: oasis
Library cli
Path: src/cli
Modules: SubCommand,
ArgExt,
Pager
InternalModules: CLIData
CompiledObject: byte
BuildDepends: oasis, oasis.base
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, plugin-loader
Executable test
Path: test
MainIs: test.ml
Install: false
CompiledObject: byte
Build$: flag(tests)
BuildDepends: oUnit (>= 1.1.0), findlib, fileutils (>= 0.4.2), expect.pcre (>= 0.0.2),
oasis, oasis.base, oasis.builtin-plugins
Test main
Type: custom (0.3)
Command: $test -oasis-exec $oasis -has-ocamlopt $is_native
WorkingDirectory: test
TestTools: oasis, test
Document manual
Type: custom (0.3)
Title: OASIS User Manual
if flag(gettext)
XCustom: env LANG=C $oasis manual > doc/MANUAL.mkd
else
XCustom: $oasis 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.3)
InstallDir: $htmldir/oasis
BuildTools+: ocamldoc
XOCamlbuildPath: src/
XOCamlbuildLibraries: oasis, oasis.base, oasis.cli
SourceRepository head
Type: git
Location: git://github.com/gildor478/oasis.git
Browser: https://github.com/gildor478/oasis
# Third party: plugin-loader
Library "plugin-loader"
Path: src/ext/plugin-loader/src
Modules: PluginLoader
BuildDepends: dynlink, findlib
Library "pluginloaderLib"
Path: src/ext/plugin-loader/test/data/findlib/pluginloaderLib
Modules: PluginloaderLib
Build$: flag(tests)
Install: false
Library "plugin1"
Path: src/ext/plugin-loader/test/data/findlib/plugin1
Modules: Plugin1
Install: false
Build$: flag(tests)
BuildDepends: pluginloaderLib
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
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
XMETAExtraLines: plugin_system = "pluginloader"
plugin_name = "plugin3"
plugin_synopsis = "third plugin"
Executable "pluginloader"
Path: src/ext/plugin-loader/test/data
MainIs: pluginloader.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.3)
Command: $test_loader --pluginloader $pluginloader
TestTools: test_loader, pluginloader
# Third party: user-conf
Library "userconf"
Path: src/ext/userconf/src
Modules: UserConf
Executable "test_userconf"
Path: src/ext/userconf/test
MainIs: TestUserConf.ml
BuildDepends: userconf, oUnit
Build$: flag(tests)
Install: false
Test main_userconf
Type: custom (0.3)
Command: $test_userconf
TestTools: test_userconf