export from google3

This commit is contained in:
Mizux Seiha
2022-06-21 11:35:03 +02:00
parent 1af55b2be3
commit 7a823314eb
35 changed files with 140 additions and 133 deletions

View File

@@ -14,24 +14,24 @@
"""Helper macro to compile and test code samples."""
def code_sample_cc(name):
native.cc_binary(
name = name,
srcs = [name + ".cc"],
deps = [
"//ortools/base",
"//ortools/glop:lp_solver",
"//ortools/lp_data",
],
)
native.cc_binary(
name = name,
srcs = [name + ".cc"],
deps = [
"//ortools/base",
"//ortools/glop:lp_solver",
"//ortools/lp_data",
],
)
native.cc_test(
name = name+"_test",
size = "small",
srcs = [name + ".cc"],
deps = [
":"+name,
"//ortools/base",
"//ortools/glop:lp_solver",
"//ortools/lp_data",
],
)
native.cc_test(
name = name + "_test",
size = "small",
srcs = [name + ".cc"],
deps = [
":" + name,
"//ortools/base",
"//ortools/glop:lp_solver",
"//ortools/lp_data",
],
)