forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode_samples.bzl
More file actions
29 lines (27 loc) · 734 Bytes
/
Copy pathcode_samples.bzl
File metadata and controls
29 lines (27 loc) · 734 Bytes
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
def code_sample_cc(sample):
native.cc_binary(
name = sample,
srcs = [sample + ".cc"],
deps = [
"//ortools/base",
"//ortools/graph:min_cost_flow",
"//ortools/graph:max_flow",
"//ortools/graph:shortestpaths",
"//ortools/graph:ebert_graph",
"//ortools/graph:linear_assignment",
],
)
native.cc_test(
name = sample+"_test",
size = "small",
srcs = [sample + ".cc"],
deps = [
":"+sample,
"//ortools/base",
"//ortools/graph:min_cost_flow",
"//ortools/graph:max_flow",
"//ortools/graph:shortestpaths",
"//ortools/graph:ebert_graph",
"//ortools/graph:linear_assignment",
],
)