forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__ocaml_common.soy
79 lines (71 loc) · 2.07 KB
/
__ocaml_common.soy
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
{namespace ocaml_common}
/***/
{template .supported_language_version}
Note: Buck is currently tested with 4.X OCaml series.
{/template}
/***/
{template .deps_arg}
{call buck.arg}
{param name : 'deps' /}
{param default : '[]' /}
{param desc}
The set of dependencies of this rule. It could include references to ocaml_library and cxx_library rules.
{/param}
{/call}
{/template}
/***/
{template .srcs_arg}
{call buck.arg}
{param name : 'srcs' /}
{param desc}
<p>
The set of source files to be compiled by this rule. It supports *.ml, *.mli, *.mly, *.mll, and *.c files.
(see <a href="https://github.com/facebook/buck/test/com/facebook/buck/ocaml/testdata/ocaml/clib/BUCK.fixture"> this test </a> as C interop example and
<a href="https://github.com/facebook/buck/test/com/facebook/buck/ocaml/testdata/ocaml/calc/BUCK.fixture"> this test </a> as parser and lexer example).
</p>
{/param}
{/call}
{/template}
/***/
{template .compiler_flags_arg}
{call buck.arg}
{param name : 'compiler_flags' /}
{param default : '[]' /}
{param desc}
The set of additional compiler flags to pass to ocaml compiler. It supports
specifying ppx (see <a
href="https://github.com/facebook/buck/test/com/facebook/buck/ocaml/testdata/compiler_flag_macros/BUCK.fixture">
for example</a>).
{/param}
{/call}
{/template}
/***/
{template .bytecode_only_arg}
{call buck.arg}
{param name : 'bytecode_only' /}
{param default : 'False' /}
{param desc}
Produce only bytecode outputs.
{/param}
{/call}
{/template}
/***/
{template .native_plugin_arg}
{call buck.arg}
{param name: 'native_plugin' /}
{param default: 'False' /}
{param desc}
Pass <code>True</code> to create native plugin. See <a
href="https://github.com/facebook/buck/test/com/facebook/buck/ocaml/testdata/ocaml/ocaml_native_plugin/BUCK.fixture">
this test</a> for example.
{/param}
{/call}
{/template}
/***/
{template .more_examples}
<p>
For more examples, check out our <a
href="https://github.com/facebook/buck/tree/master/test/com/facebook/buck/ocaml/testdata/">
integration tests</a>.
</p>
{/template}