routing: Fix bazel build

This commit is contained in:
Mizux Seiha
2024-03-19 13:46:02 +01:00
parent 5500060707
commit 1d285459ec
3 changed files with 16 additions and 4 deletions

View File

@@ -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",

View File

@@ -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.

View File

@@ -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,