forked from semgrep/semgrep
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdune
145 lines (120 loc) · 2.98 KB
/
dune
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
; The default combination of flags is ':standard', which is made of the
; following options:
; -w @[email protected]@30..39@[email protected]@[email protected] -strict-sequence -strict-formats -short-paths -keep-locs
;
; We considered disabling the '-short-paths' option due to bad aliases
; being shown in type hints and error messages, but the alternative also
; picks arbitrary aliases. Instead, we use '-short-paths' and prefix
; our type aliases with 'a_' as a workaround.
; See issue https://github.com/ocaml/ocaml/issues/10432 for details.
;
(env
(dev
(flags (:standard -w -52-6)))
(release
(flags (:standard -O3))))
(dirs
src
libs
tools
languages
tests ; todo, should move out Test.ml out of the tests/ data dir
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Don't build executables for the submodules that we only use as libraries.
; - Saves a tiny bit of build time (about 3-4%).
; - Keeps the bin/ folder clean.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(subdir
semgrep-core/src/ocaml-tree-sitter-core/src/gen
(data_only_dirs bin)
)
; Unfortunately, 'subdir' doesn't expand wildcards.
;(subdir
; src/tree-sitter-lang/semgrep-*
; (data_only_dirs bin)
;)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-c
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-cpp
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-c-sharp
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-dockerfile
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-go
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-hack
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-hcl
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-html
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-java
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-javascript
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-kotlin
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-lua
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-ocaml
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-php
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-r
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-ruby
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-rust
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-sqlite
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-tsx
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-typescript
(data_only_dirs bin)
)
(subdir
semgrep-core/src/tree-sitter-lang/semgrep-vue
(data_only_dirs bin)
)