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
27 lines (25 loc) · 738 Bytes
/
Copy pathcode_samples.bzl
File metadata and controls
27 lines (25 loc) · 738 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
def code_sample_cc(sample):
native.cc_binary(
name = sample,
srcs = [sample + ".cc"],
deps = [
"//ortools/base",
"//ortools/constraint_solver:cp",
"//ortools/constraint_solver:routing",
"//ortools/constraint_solver:routing_enums_cc_proto",
"//ortools/constraint_solver:routing_flags",
],
)
native.cc_test(
name = sample+"_test",
size = "small",
srcs = [sample + ".cc"],
deps = [
":"+sample,
"//ortools/base",
"//ortools/constraint_solver:cp",
"//ortools/constraint_solver:routing",
"//ortools/constraint_solver:routing_enums_cc_proto",
"//ortools/constraint_solver:routing_flags",
],
)