45 lines
1.5 KiB
Python
45 lines
1.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.
|
|
|
|
load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
|
|
load("@protobuf//bazel:java_proto_library.bzl", "java_proto_library")
|
|
load("@protobuf//bazel:proto_library.bzl", "proto_library")
|
|
load("@protobuf//bazel:py_proto_library.bzl", "py_proto_library")
|
|
|
|
package(default_visibility = [
|
|
"//ortools/math_opt:__subpackages__",
|
|
"//ortools/service:__subpackages__",
|
|
])
|
|
|
|
proto_library(
|
|
name = "optimization_proto",
|
|
srcs = ["optimization.proto"],
|
|
deps = [
|
|
"//ortools/service/v1/mathopt:model_parameters_proto",
|
|
"//ortools/service/v1/mathopt:model_proto",
|
|
"//ortools/service/v1/mathopt:parameters_proto",
|
|
"//ortools/service/v1/mathopt:result_proto",
|
|
"//ortools/service/v1/mathopt:solver_resources_proto",
|
|
],
|
|
)
|
|
|
|
py_proto_library(
|
|
name = "optimization_py_pb2",
|
|
deps = [":optimization_proto"],
|
|
)
|
|
|
|
cc_proto_library(
|
|
name = "optimization_cc_proto",
|
|
deps = [":optimization_proto"],
|
|
)
|