94 lines
2.5 KiB
Python
94 lines
2.5 KiB
Python
# Copyright 2010-2025 Google LLC
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# This directory contains scheduling libraries to solve different types of
|
|
# scheduling problem.
|
|
|
|
load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
|
|
load("@protobuf//bazel:proto_library.bzl", "proto_library")
|
|
load("@protobuf//bazel:py_proto_library.bzl", "py_proto_library")
|
|
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
### RCPSP ###
|
|
proto_library(
|
|
name = "rcpsp_proto",
|
|
srcs = ["rcpsp.proto"],
|
|
)
|
|
|
|
cc_proto_library(
|
|
name = "rcpsp_cc_proto",
|
|
deps = [":rcpsp_proto"],
|
|
)
|
|
|
|
py_proto_library(
|
|
name = "rcpsp_py_pb2",
|
|
deps = [":rcpsp_proto"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "rcpsp_parser",
|
|
srcs = ["rcpsp_parser.cc"],
|
|
hdrs = ["rcpsp_parser.h"],
|
|
deps = [
|
|
":rcpsp_cc_proto",
|
|
"//ortools/base:path",
|
|
"//ortools/util:filelineiter",
|
|
"@abseil-cpp//absl/log",
|
|
"@abseil-cpp//absl/log:check",
|
|
"@abseil-cpp//absl/strings",
|
|
],
|
|
)
|
|
|
|
### Jobshop Scheduling ###
|
|
proto_library(
|
|
name = "jobshop_scheduling_proto",
|
|
srcs = ["jobshop_scheduling.proto"],
|
|
deps = ["@protobuf//:wrappers_proto"],
|
|
)
|
|
|
|
cc_proto_library(
|
|
name = "jobshop_scheduling_cc_proto",
|
|
deps = [":jobshop_scheduling_proto"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "jobshop_scheduling_parser",
|
|
srcs = ["jobshop_scheduling_parser.cc"],
|
|
hdrs = ["jobshop_scheduling_parser.h"],
|
|
deps = [
|
|
":jobshop_scheduling_cc_proto",
|
|
"//ortools/base",
|
|
"//ortools/base:path",
|
|
"//ortools/base:types",
|
|
"//ortools/util:filelineiter",
|
|
"@abseil-cpp//absl/base:core_headers",
|
|
"@abseil-cpp//absl/flags:flag",
|
|
"@abseil-cpp//absl/log:check",
|
|
"@abseil-cpp//absl/strings",
|
|
"@protobuf//:wrappers_cc_proto",
|
|
],
|
|
)
|
|
|
|
### Course Scheduling ###
|
|
proto_library(
|
|
name = "course_scheduling_proto",
|
|
srcs = ["course_scheduling.proto"],
|
|
)
|
|
|
|
cc_proto_library(
|
|
name = "course_scheduling_cc_proto",
|
|
deps = [":course_scheduling_proto"],
|
|
)
|