forked from ocsigen/lwt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_oasis
453 lines (399 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
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
# +-------------------------------------------------------------------+
# | Package parameters |
# +-------------------------------------------------------------------+
OASISFormat: 0.3
OCamlVersion: >= 3.12
Name: lwt
Version: 2.4.4
LicenseFile: COPYING
License: LGPL-2.1 with OCaml linking exception
Authors:
Jérôme Vouillon,
Vincent Balat,
Nataliya Guts,
Pierre Clairambault,
Stéphane Glondu,
Jérémie Dimino,
Warren Harris,
Pierre Chambart,
Mauricio Fernandez
Homepage: http://ocsigen.org/lwt/
BuildTools: ocamlbuild
Plugins: DevFiles (0.3), META (0.3)
XDevFilesEnableMakefile: false
PostConfCommand: ocaml discover.ml -ocamlc $ocamlc -ext-obj $ext_obj -exec-name $default_executable_name -use-libev $libev -os-type $os_type -use-glib $glib -ccomp-type $ccomp_type -use-pthread $pthread -use-unix $unix -android-target $android_target -libev_default $libev_default
PostDistCleanCommand: $rm src/unix/lwt_config.h src/unix/lwt_config.ml src/unix/lwt_unix_jobs_generated.ml src/unix/jobs-unix/*
Synopsis: Lightweight thread library for OCaml
Description:
Lwt is a library of cooperative threads implemented in monadic
style. With respect to preemptive threads, cooperative threads are
not using a scheduler to distribute processor time between
threads. Instead of this, each thread must tell the others that he
wants to let them work.
# +-------------------------------------------------------------------+
# | Flags |
# +-------------------------------------------------------------------+
Flag android_target
Description: Compiles for Android
Default: false
Flag all
Description: build and install everything
Default: false
Flag syntax
Description: Build the syntax extension
Default: true
Flag unix
Description: Unix support
Default: true
Flag react
Description: React helpers
Default$: flag(all)
Flag glib
Description: Glib integration
Default$: flag(all)
Flag ssl
Description: SSL support
Default$: flag(all)
Flag text
Description: Text mode utilities (deprecated)
Default$: flag(all)
Flag preemptive
Description: Preemptive threads support
Default$: flag(unix) && !flag(android_target)
Flag extra
Description: Asynchronous unix functions
Default$: flag(preemptive)
Flag toplevel
Description: Enhanced toplevel
Default$: flag(all)
Flag libev
Description: Compile with libev support
Default$: !os_type(Win32) && !flag(android_target)
Flag libev_default
Description: Use the libev backend by default
Default$: system(linux) || system(linux_elf) || system(linux_aout) || system(linux_eabi) || system(linux_eabihf)
Flag pthread
Description: Use pthread
Default$: !os_type(Win32)
# +-------------------------------------------------------------------+
# | Libraries |
# +-------------------------------------------------------------------+
Library "optcomp"
Install: false
Build$: flag(syntax) || flag(all)
Path: syntax
Modules: Pa_optcomp
BuildDepends: camlp4, camlp4.quotations.o
Library "lwt"
Path: src/core
Modules:
Lwt_condition,
Lwt_list,
Lwt,
Lwt_mutex,
Lwt_mvar,
Lwt_pool,
Lwt_sequence,
Lwt_stream,
Lwt_switch,
Lwt_util,
Lwt_pqueue
XMETADescription: Lightweight thread library for OCaml (core library)
Library "lwt-log"
FindlibName: log
FindlibParent: lwt
Path: src/logger
Modules: Lwt_log_core, Lwt_log_rules
BuildDepends: lwt
XMETADescription: Logger for lwt
Library "lwt-unix"
Build$: flag(unix) || flag(all)
Install$: flag(unix) || flag(all)
FindlibName: unix
FindlibParent: lwt
Path: src/unix
Modules:
Lwt_chan,
Lwt_daemon,
Lwt_gc,
Lwt_io,
Lwt_log,
Lwt_main,
Lwt_process,
Lwt_throttle,
Lwt_timeout,
Lwt_unix,
Lwt_sys,
Lwt_engine,
Lwt_bytes
InternalModules:
Lwt_unix_jobs_generated
BuildDepends: lwt, lwt.log, unix, bigarray
XMETADescription: Unix support for lwt
CSources:
lwt_config.h,
lwt_unix.h,
lwt_unix_stubs.c,
lwt_libev_stubs.c,
lwt_process_stubs.c,
jobs-unix/lwt_unix_job_access.c,
jobs-unix/lwt_unix_job_chdir.c,
jobs-unix/lwt_unix_job_chmod.c,
jobs-unix/lwt_unix_job_chown.c,
jobs-unix/lwt_unix_job_chroot.c,
jobs-unix/lwt_unix_job_close.c,
jobs-unix/lwt_unix_job_fchmod.c,
jobs-unix/lwt_unix_job_fchown.c,
jobs-unix/lwt_unix_job_fdatasync.c,
jobs-unix/lwt_unix_job_fsync.c,
jobs-unix/lwt_unix_job_ftruncate.c,
jobs-unix/lwt_unix_job_link.c,
jobs-unix/lwt_unix_job_lseek.c,
jobs-unix/lwt_unix_job_mkdir.c,
jobs-unix/lwt_unix_job_mkfifo.c,
jobs-unix/lwt_unix_job_rename.c,
jobs-unix/lwt_unix_job_rmdir.c,
jobs-unix/lwt_unix_job_symlink.c,
jobs-unix/lwt_unix_job_tcdrain.c,
jobs-unix/lwt_unix_job_tcflow.c,
jobs-unix/lwt_unix_job_tcflush.c,
jobs-unix/lwt_unix_job_tcsendbreak.c,
jobs-unix/lwt_unix_job_truncate.c,
jobs-unix/lwt_unix_job_unlink.c
if os_type(Win32) && ccomp_type(msvc)
CCLib+: ws2_32.lib
else if os_type(Win32)
CCLib+: -lws2_32
Library "lwt-simple-top"
Build$: flag(unix) || flag(all)
Install$: flag(unix) || flag(all)
FindlibName: simple-top
FindlibParent: lwt
Path: src/simple_top
InternalModules: Lwt_simple_top
BuildDepends: lwt, lwt.unix
XMETADescription: Unix support for lwt
Library "lwt-react"
Build$: flag(react) || flag(all)
Install$: flag(react) || flag(all)
FindlibName: react
FindlibParent: lwt
Path: src/react
Modules: Lwt_event, Lwt_signal, Lwt_react
BuildDepends: lwt, react
XMETADescription: Reactive programming helpers
Library "lwt-preemptive"
Build$: flag(preemptive) || flag(all)
Install$: flag(preemptive) || flag(all)
FindlibName: preemptive
FindlibParent: lwt
Path: src/preemptive
Modules: Lwt_preemptive
BuildDepends: lwt, lwt.unix, threads
XMETADescription: Preemptive threads support for Lwt
Library "lwt-extra"
Build$: flag(extra) || flag(all)
Install$: flag(extra) || flag(all)
FindlibName: extra
FindlibParent: lwt
Path: src/extra
Modules: Lwt_lib
BuildDepends: lwt, lwt.preemptive
XMETADescription: Unix functions for Lwt using Lwt_preemptive
Library "lwt-glib"
Build$: flag(glib) || flag(all)
Install$: flag(glib) || flag(all)
FindlibName: glib
FindlibParent: lwt
Path: src/glib
Modules: Lwt_glib
CSources: lwt_glib_stubs.c
BuildDepends: lwt, lwt.unix
XMETADescription: Glib integration
Library "lwt-ssl"
Build$: flag(ssl) || flag(all)
Install$: flag(ssl) || flag(all)
FindlibName: ssl
FindlibParent: lwt
Path: src/ssl
Modules: Lwt_ssl
BuildDepends: ssl, lwt.unix
XMETADescription: SSL support for Lwt
Library "lwt-text"
Build$: flag(text) || flag(all)
Install$: flag(text) || flag(all)
FindlibName: text
FindlibParent: lwt
Path: src/text
Modules: Lwt_text, Lwt_term, Lwt_read_line
BuildDepends: lwt, lwt.unix, lwt.react, text, text.bigarray
XMETADescription: Text mode utilities (deprecated)
CSources: lwt_text_stubs.c
Library "lwt-top"
Build$: flag(text) || flag(all)
Install$: flag(text) || flag(all)
FindlibName: top
FindlibParent: lwt
Path: src/top
Modules: Lwt_top
InternalModules: Lwt_ocaml_completion
BuildDepends: lwt, lwt.text, findlib
XMETADescription: Line-editing in the toplevel (deprecated)
Library "lwt-syntax"
Build$: flag(syntax) || flag(all)
Install$: flag(syntax) || flag(all)
FindlibName: syntax
FindlibParent: lwt
Path: syntax
Modules: Pa_lwt
BuildDepends: camlp4, camlp4.quotations.o, camlp4.extend
XMETAType: syntax
XMETADescription: Syntactic sugars for Lwt
XMETARequires: camlp4, lwt.syntax.options
Library "lwt-syntax-options"
Build$: flag(syntax) || flag(all)
Install$: flag(syntax) || flag(all)
FindlibName: options
FindlibParent: lwt-syntax
Path: syntax
InternalModules: Pa_lwt_options
BuildDepends: camlp4
XMETAType: syntax
XMETADescription: Options for syntax extensions
XMETARequires: camlp4
Library "lwt-syntax-log"
Build$: flag(syntax) || flag(all)
Install$: flag(syntax) || flag(all)
FindlibName: log
FindlibParent: lwt-syntax
Path: syntax
Modules: Pa_lwt_log
BuildDepends: camlp4, camlp4.quotations.o
XMETAType: syntax
XMETADescription: Syntactic sugars for logging
XMETARequires: camlp4, lwt.syntax.options
# +-------------------------------------------------------------------+
# | Toplevel |
# +-------------------------------------------------------------------+
Executable "lwt-toplevel"
Build$: flag(toplevel) || flag(all)
Install$: flag(toplevel) || flag(all)
Path: src/top
CompiledObject: byte
MainIs: lwt_toplevel.ml
BuildDepends: lwt, lwt.top, lwt.text, lwt.react, text, findlib, unix
# +-------------------------------------------------------------------+
# | Doc |
# +-------------------------------------------------------------------+
Document "lwt-manual"
Title: Lwt user manual
Type: custom (0.3)
Install: true
XCustom: make -C manual manual.pdf
DataFiles: manual/manual.pdf
InstallDir: $pdfdir
Document "lwt-api"
Title: API reference for Lwt
Type: ocamlbuild (0.3)
Install: true
InstallDir: $htmldir/api
DataFiles: utils/style.css
BuildTools: ocamldoc
XOCamlbuildPath: ./
XOCamlbuildLibraries:
lwt,
lwt.extra,
lwt.glib,
lwt.preemptive,
lwt.react,
lwt.ssl,
lwt.text,
lwt.top,
lwt.log,
lwt.unix,
lwt.syntax,
lwt.syntax.log
# +-------------------------------------------------------------------+
# | Examples |
# +-------------------------------------------------------------------+
Executable logging
Path: examples/unix
Build$: flag(unix)
Install: false
MainIs: logging.ml
BuildDepends: lwt.unix, lwt.syntax
CompiledObject: best
Executable relay
Path: examples/unix
Build$: flag(unix)
Install: false
MainIs: relay.ml
BuildDepends: lwt.unix, lwt.syntax
CompiledObject: best
Executable parallelize
Path: examples/unix
Build$: flag(unix)
Install: false
MainIs: parallelize.ml
BuildDepends: lwt.unix, lwt.syntax
CompiledObject: best
# +-------------------------------------------------------------------+
# | Tests |
# +-------------------------------------------------------------------+
Library test
Path: tests
Modules: Test
Install: false
Build$: flag(tests) && (flag(unix) || flag(all))
BuildDepends: lwt, unix, lwt.unix
Executable test_core
Path: tests/core
Build$: flag(tests) && (flag(unix) || flag(all))
Install: false
CompiledObject: best
MainIs: main.ml
BuildDepends: test, lwt, unix, lwt.unix
Executable test_unix
Path: tests/unix
Build$: flag(tests) && (flag(unix) || flag(all))
Install: false
CompiledObject: best
MainIs: main.ml
BuildDepends: test, lwt, unix, lwt.unix
Executable test_react
Path: tests/react
Build$: flag(tests) && ((flag(unix) && flag(react)) || flag(all))
Install: false
CompiledObject: best
MainIs: main.ml
BuildDepends: test, lwt, unix, lwt.unix, react, lwt.react
Executable test_preemptive
Path: tests/preemptive
Build$: flag(tests) && ((flag(preemptive) && flag(unix)) || flag(all))
Install: false
CompiledObject: best
MainIs: main.ml
BuildDepends: test, lwt, unix, lwt.unix, lwt.preemptive, threads
Test core
Command: $test_core
TestTools: test_core
Run$: flag(tests) && (flag(unix) || flag(all))
Test unix
Command: $test_unix
TestTools: test_unix
Run$: flag(tests) && (flag(unix) || flag(all))
Test react
Command: $test_react
TestTools: test_react
Run$: flag(tests) && ((flag(unix) && flag(react)) || flag(all))
Test preemptive
Command: $test_preemptive
TestTools: test_preemptive
Run$: flag(tests) && ((flag(preemptive) && flag(unix)) || flag(all))
# +-------------------------------------------------------------------+
# | Misc |
# +-------------------------------------------------------------------+
SourceRepository head
Type: darcs
Location: http://ocsigen.org/darcs/lwt
Browser: http://ocsigen.org/darcsweb/?r=lwt;a=summary