forked from frenetic-lang/frenetic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_oasis
245 lines (232 loc) · 5.32 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
OASISFormat: 0.4
OCamlVersion: >= 4.03.0
Name: frenetic
Version: 4.0.0
Synopsis: The Frenetic Compiler and Runtime System
Authors: https://github.com/frenetic-lang/frenetic/contributors
License: LGPL
Plugins: META (0.4)
BuildTools:
ocamlbuild,
ocamldoc,
menhir,
cppo
BetaFeatures:
findlib_extra_files
AlphaFeatures:
ocamlbuild_more_args,
source_patterns
XOCamlbuildExtraArgs:
# SJS: importing these here ensures they are run last, after ppx_import
-package ppx_deriving,ppx_deriving.eq,ppx_deriving.enum,ppx_deriving.show,ppx_jane
-use-menhir
# see https://caml.inria.fr/pub/docs/manual-ocaml/native.html
-cflags -w,@5+8@11@12-40,-short-paths
# generate standard parser, syntax extension parser, and tokens from common file
PreBuildCommand:
cppo -n \
lib/Frenetic_NetKAT_Generated_Parser.cppo.mly \
-o lib/Frenetic_NetKAT_Generated_Parser.mly
cppo -n \
ppx/PPX_NetKAT_Parser.cppo.mly \
-o ppx/PPX_NetKAT_Parser.mly
menhir --only-tokens ppx/PPX_NetKAT_Parser.mly \
--base lib/Frenetic_NetKAT_Tokens
PostBuildCommand:
rm -f ppx/PPX_NetKAT_Parser.mly
rm -f lib/Frenetic_NetKAT_Generated_Parser.mly
# do not delete so ocamldoc is happy!
# rm -f lib/Frenetic_NetKAT_Tokens*
ImplementationPatterns:
${module}.cppo.mly
Library frenetic
Path: lib
Findlibname: frenetic
BuildDepends:
base64 (>= 2.0.0),
core,
cstruct,
ocamlgraph (>= 1.8.7),
str,
tcpip,
yojson,
ipaddr,
ppx_import,
sedlex,
menhirLib,
threads,
compiler-libs.common
InternalModules:
LexBuffer,
Frenetic_NetKAT_Lexer,
Frenetic_NetKAT_Generated_Parser
Modules:
Frenetic_Hashcons,
Frenetic_Bits,
Frenetic_Fdd,
Frenetic_OpenFlow0x04,
Frenetic_GroupTable0x04,
Frenetic_NetKAT,
Frenetic_NetKAT_Tokens,
Frenetic_NetKAT_Parser,
Frenetic_NetKAT_Optimize,
Frenetic_NetKAT_Json,
Frenetic_NetKAT_Compiler,
Frenetic_NetKAT_FabricGen,
Frenetic_NetKAT_Virtual_Compiler,
Frenetic_NetKAT_Net,
Frenetic_NetKAT_Pretty,
Frenetic_NetKAT_Semantics,
Frenetic_Network,
Frenetic_OpenFlow,
Frenetic_OpenFlow_Header,
Frenetic_OpenFlow0x01,
Frenetic_Packet,
Frenetic_Topology,
Frenetic_Util,
Frenetic_Vlr
Library ppx
Findlibparent: frenetic
# need custom meta file
XMETAEnable: false
Path: ppx
BuildDepends:
ppx_tools, # (> 5.0) once available
ppx_tools.metaquot,
frenetic
InternalModules:
PPX_NetKAT_Parser
Modules:
PPX_NetKAT
FindlibExtraFiles:
../ppx.native
Executable ppx
Path: ppx
BuildDepends:
frenetic.ppx
MainIs: ppx.ml
CompiledObject: best
Install: false
# just for testing and experimentation
Executable ppx_standalone
# don't build by default
Build: false
Path: ppx
BuildDepends:
frenetic.ppx
MainIs: ppx_standalone.ml
CompiledObject: best
Install: false
Library async
Findlibparent: frenetic
Findlibname: async
Path: async
BuildDepends:
async,
cohttp,
cohttp.async,
core,
cstruct,
cstruct.async,
frenetic,
mparser,
mparser.re,
ppx_sexp_conv,
str
InternalModules:
Frenetic_Common,
Frenetic_DynGraph
Modules:
Frenetic_Compile_Server,
Frenetic_Log,
Frenetic_Http_Controller,
Frenetic_OpenFlow0x01_Plugin,
Frenetic_NetKAT_Controller,
Frenetic_Ox
Executable frenetic
Path: frenetic
MainIs: frenetic.ml
Install: true
CompiledObject: native
BuildDepends:
async,
core,
frenetic,
frenetic.async,
async_extended
Executable openflow
Path: frenetic
MainIs: openflow.ml
Install: true
CompiledObject: native
BuildDepends:
async,
core,
frenetic,
frenetic.async,
async_extended
Library test_frenetic
Findlibparent: frenetic
Findlibname: test
Path: lib_test/lib
Build$: flag(tests)
Install: false
BuildDepends:
frenetic,
quickcheck
Modules:
Arbitrary_Base,
Arbitrary_Frenetic_NetKAT,
Arbitrary_Frenetic_OpenFlow,
Arbitrary_Frenetic_OpenFlow0x01,
Arbitrary_Frenetic_OpenFlow0x04,
Arbitrary_Frenetic_OpenFlow_Header,
Arbitrary_Frenetic_Packet,
Flowterp
Executable testtool
Path: lib_test
MainIs: Test.ml
Install: false
Build$: flag(tests)
BuildDepends:
ppx_inline_test,
frenetic.test,
frenetic,
frenetic.async
Test all_tests
Run$: flag(tests)
Command: $testtool inline-test-runner frenetic
TestTools: testtool
Executable benchmark
Install: false
Path: bench/src
CompiledObject: best
MainIs: Main.ml
BuildDepends:
core,
threads,
frenetic
Document frenetic
Title: Frenetic API docs
Type: ocamlbuild (0.4)
BuildTools+: ocamldoc
Install: true
Format: html
PreCommand:
cppo -n \
lib/Frenetic_NetKAT_Generated_Parser.cppo.mly \
-o lib/Frenetic_NetKAT_Generated_Parser.mly
cppo -n \
ppx/PPX_NetKAT_Parser.cppo.mly \
-o ppx/PPX_NetKAT_Parser.mly
menhir --only-tokens ppx/PPX_NetKAT_Parser.mly \
--base lib/Frenetic_NetKAT_Tokens
# This is needed because travis.docgen expects docs to be in _build/frenetic.docdir
PostCommand:
mv _build/lib/frenetic.docdir _build
rm -f ppx/PPX_NetKAT_Parser.mly
rm -f lib/Frenetic_NetKAT_Generated_Parser.mly
rm -f lib/Frenetic_NetKAT_Tokens*
Index: index.html
XOCamlbuildPath: lib
XOCamlbuildLibraries: frenetic