routing: Fix bazel build
This commit is contained in:
@@ -11,8 +11,21 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_proto_library")
|
||||
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
proto_library(
|
||||
name = "capacity_planning_proto",
|
||||
srcs = ["capacity_planning.proto"],
|
||||
)
|
||||
|
||||
cc_proto_library(
|
||||
name = "capacity_planning_cc_proto",
|
||||
deps = [":capacity_planning_proto"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "simple_graph",
|
||||
srcs = ["simple_graph.cc"],
|
||||
@@ -331,6 +344,7 @@ cc_library(
|
||||
srcs = ["dow_parser.cc"],
|
||||
hdrs = ["dow_parser.h"],
|
||||
deps = [
|
||||
":capacity_planning_cc_proto",
|
||||
"//ortools/base",
|
||||
"//ortools/constraint_solver:routing",
|
||||
"//ortools/util:random_engine",
|
||||
|
||||
@@ -11,12 +11,10 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
edition = "2023";
|
||||
syntax = "proto3";
|
||||
|
||||
package operations_research;
|
||||
|
||||
option features.enum_type = CLOSED;
|
||||
|
||||
// This is the proto for describing the multicommodity fixed-charged network
|
||||
// design problem.
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ class FileLines {
|
||||
// Please prefer the other constructor combined with file::Open() in new code
|
||||
// so that missing files are properly detected. This version would only print
|
||||
// a warning and act as if the file was empty.
|
||||
explicit FileLines(const std::string& filename,
|
||||
explicit FileLines(absl::string_view filename,
|
||||
int options = FileLineIterator::DEFAULT)
|
||||
: FileLines(
|
||||
filename,
|
||||
|
||||
Reference in New Issue
Block a user