-
Notifications
You must be signed in to change notification settings - Fork 0
/
myocamlbuild.ml
58 lines (51 loc) · 1.49 KB
/
myocamlbuild.ml
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
open Printf
open Solvuu_build.Std
open Solvuu_build.Util
let project_name = "streaming_benchmark"
let version = "dev"
let annot = ()
let bin_annot = ()
let g = ()
let short_paths = ()
let thread = ()
let w = "A-4-33-41-42-44-45-48"
let lib ?findlib_deps ?internal_deps ?ml_files lib_name
: Project.item
=
Project.lib (sprintf "%s_%s" project_name lib_name)
~annot ~bin_annot ~g ~short_paths ~thread ~w
~install:(`Findlib (sprintf "%s.%s" project_name lib_name))
~dir:(sprintf "lib/%s" lib_name)
~style:(`Pack (sprintf "%s_%s" project_name lib_name))
~build_plugin:false (* solvuu-build doesn't implement plugin
compilation in case there are C files,
which is the case of biocaml_unix. Since
most other libs depend on it, we simply
refrain from compiling plugins for now. *)
?findlib_deps
?internal_deps
?ml_files
let app ?internal_deps name : Project.item =
Project.app name
~annot ~bin_annot ~g ~short_paths ~thread ~w
~file:(sprintf "app/%s.ml" name)
?internal_deps
let unix = lib "unix" ~findlib_deps:[
"angstrom.unix" ;
"batteries" ;
"biocaml.base" ;
"biocaml.unix" ;
"containers" ;
"core_bench" ;
"gen" ;
"pipes.unix" ;
"sequence" ;
"sosa"
]
let streaming_benchmark = app "streaming_benchmark"
~internal_deps:[unix]
let () =
Project.basic1
~project_name
~version
[ unix ; streaming_benchmark ]