Fixup bazel

This commit is contained in:
Corentin Le Molgat
2020-03-10 17:30:11 +01:00
parent cf2791b725
commit b220388578
2 changed files with 11 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ cc_library(
":graph",
"//ortools/base:hash",
"//ortools/base:map_util",
"@com_google_absl//absl/container:inlined_vector",
],
)

View File

@@ -10,6 +10,11 @@ config_setting(
values = {"define": "USE_CPLEX="},
)
config_setting(
name = "with_xpress",
values = {"define": "USE_XPRESS="},
)
config_setting(
name = "with_cbc",
values = {"define": "USE_CBC="},
@@ -57,6 +62,7 @@ cc_library(
srcs = [
"linear_expr.cc",
"linear_solver.cc",
"linear_solver_callback.cc",
"model_exporter.cc",
"model_validator.cc",
"glop_interface.cc",
@@ -74,6 +80,9 @@ cc_library(
}) + select({
":with_cplex": ["cplex_interface.cc"],
"//conditions:default": [],
}) + select({
":with_xpress": ["xpress_interface.cc"],
"//conditions:default": [],
}) + select({
":with_glpk": ["glpk_interface.cc"],
"//conditions:default": [],
@@ -86,6 +95,7 @@ cc_library(
"glop_utils.h",
"linear_expr.h",
"linear_solver.h",
"linear_solver_callback.h",
"model_exporter.h",
"model_validator.h",
"sat_proto_solver.h",