2021-06-18 09:01:00 +02:00
|
|
|
workspace(name = "com_google_ortools")
|
|
|
|
|
|
2019-02-10 18:51:36 +01:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
2021-07-27 01:43:59 +02:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
|
2019-02-10 18:51:36 +01:00
|
|
|
|
2022-02-02 11:29:27 +01:00
|
|
|
# Bazel Skylib rules.
|
|
|
|
|
git_repository(
|
|
|
|
|
name = "bazel_skylib",
|
2022-03-11 17:48:16 +01:00
|
|
|
tag = "1.2.1",
|
2022-02-02 11:29:27 +01:00
|
|
|
remote = "https://github.com/bazelbuild/bazel-skylib.git",
|
|
|
|
|
)
|
|
|
|
|
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
|
|
|
|
bazel_skylib_workspace()
|
|
|
|
|
|
2022-02-02 11:45:47 +01:00
|
|
|
# Bazel Platforms rules.
|
|
|
|
|
git_repository(
|
|
|
|
|
name = "platforms",
|
2022-03-11 17:48:16 +01:00
|
|
|
tag = "0.0.5",
|
2022-02-02 11:45:47 +01:00
|
|
|
remote = "https://github.com/bazelbuild/platforms.git",
|
|
|
|
|
)
|
|
|
|
|
|
2022-03-11 17:48:16 +01:00
|
|
|
# Abseil-cpp
|
|
|
|
|
git_repository(
|
|
|
|
|
name = "com_google_absl",
|
|
|
|
|
tag = "20211102.0",
|
|
|
|
|
remote = "https://github.com/abseil/abseil-cpp.git",
|
2020-06-30 20:24:06 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Protobuf
|
2019-03-29 08:26:54 +01:00
|
|
|
git_repository(
|
2017-03-21 10:24:39 -04:00
|
|
|
name = "com_google_protobuf",
|
2022-03-11 17:48:16 +01:00
|
|
|
tag = "v3.19.4",
|
2019-03-29 08:26:54 +01:00
|
|
|
remote = "https://github.com/protocolbuffers/protobuf.git",
|
2017-03-21 10:24:39 -04:00
|
|
|
)
|
2019-03-29 11:55:59 +01:00
|
|
|
# Load common dependencies.
|
2021-11-19 13:39:48 +01:00
|
|
|
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
|
2019-03-29 11:55:59 +01:00
|
|
|
protobuf_deps()
|
|
|
|
|
|
2022-03-11 17:48:16 +01:00
|
|
|
# ZLIB
|
|
|
|
|
new_git_repository(
|
|
|
|
|
name = "zlib",
|
|
|
|
|
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
|
|
|
|
|
tag = "v1.2.11",
|
|
|
|
|
remote = "https://github.com/madler/zlib.git",
|
2017-03-21 10:24:39 -04:00
|
|
|
)
|
2017-03-30 14:50:36 +02:00
|
|
|
|
2021-11-19 09:24:08 +01:00
|
|
|
git_repository(
|
|
|
|
|
name = "com_google_re2",
|
2022-04-11 13:43:56 +02:00
|
|
|
tag = "2022-04-01",
|
2021-11-19 09:24:08 +01:00
|
|
|
remote = "https://github.com/google/re2.git",
|
|
|
|
|
)
|
|
|
|
|
|
2021-06-18 08:55:19 +02:00
|
|
|
git_repository(
|
|
|
|
|
name = "com_google_googletest",
|
2022-03-11 17:48:16 +01:00
|
|
|
tag = "release-1.11.0",
|
2021-06-18 08:55:19 +02:00
|
|
|
remote = "https://github.com/google/googletest.git",
|
2019-02-10 18:51:36 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
http_archive(
|
2017-04-11 15:03:01 +02:00
|
|
|
name = "glpk",
|
2017-04-20 14:21:27 +02:00
|
|
|
build_file = "//bazel:glpk.BUILD",
|
2021-11-19 13:39:48 +01:00
|
|
|
sha256 = "4a1013eebb50f728fc601bdd833b0b2870333c3b3e5a816eeba921d95bec6f15",
|
|
|
|
|
url = "http://ftp.gnu.org/gnu/glpk/glpk-5.0.tar.gz",
|
2017-04-11 15:03:01 +02:00
|
|
|
)
|
2020-06-30 12:21:14 +02:00
|
|
|
|
2020-07-03 09:37:57 +02:00
|
|
|
http_archive(
|
|
|
|
|
name = "bliss",
|
|
|
|
|
build_file = "//bazel:bliss.BUILD",
|
2020-07-03 10:34:45 +02:00
|
|
|
patches = ["//bazel:bliss-0.73.patch"],
|
2020-07-03 09:37:57 +02:00
|
|
|
sha256 = "f57bf32804140cad58b1240b804e0dbd68f7e6bf67eba8e0c0fa3a62fd7f0f84",
|
2021-06-30 11:10:02 +02:00
|
|
|
url = "https://github.com/google/or-tools/releases/download/v9.0/bliss-0.73.zip",
|
|
|
|
|
#url = "http://www.tcs.hut.fi/Software/bliss/bliss-0.73.zip",
|
2020-07-03 09:37:57 +02:00
|
|
|
)
|
|
|
|
|
|
2021-07-27 01:43:59 +02:00
|
|
|
new_git_repository(
|
2020-06-30 12:21:14 +02:00
|
|
|
name = "scip",
|
|
|
|
|
build_file = "//bazel:scip.BUILD",
|
2020-11-27 09:56:23 +01:00
|
|
|
patches = ["//bazel:scip.patch"],
|
2022-02-04 15:32:19 +01:00
|
|
|
patch_args = ["-p1"],
|
2022-02-02 12:12:37 +01:00
|
|
|
tag = "v800",
|
2021-07-27 01:43:59 +02:00
|
|
|
remote = "https://github.com/scipopt/scip.git",
|
2020-06-30 12:21:14 +02:00
|
|
|
)
|
2022-02-09 10:48:30 +01:00
|
|
|
|
|
|
|
|
# Eigen has no Bazel build.
|
2022-03-11 17:48:16 +01:00
|
|
|
new_git_repository(
|
2022-02-09 10:48:30 +01:00
|
|
|
name = "eigen",
|
2022-03-11 17:48:16 +01:00
|
|
|
tag = "3.4.0",
|
|
|
|
|
remote = "https://gitlab.com/libeigen/eigen.git",
|
2022-02-09 10:48:30 +01:00
|
|
|
build_file_content =
|
|
|
|
|
"""
|
|
|
|
|
cc_library(
|
|
|
|
|
name = 'eigen3',
|
|
|
|
|
srcs = [],
|
|
|
|
|
includes = ['.'],
|
|
|
|
|
hdrs = glob(['Eigen/**']),
|
|
|
|
|
visibility = ['//visibility:public'],
|
|
|
|
|
)
|
|
|
|
|
"""
|
|
|
|
|
)
|
2022-03-29 17:59:36 +02:00
|
|
|
|
2022-04-12 15:48:21 +02:00
|
|
|
# Python
|
|
|
|
|
## Bazel Python rules.
|
|
|
|
|
git_repository(
|
2022-03-29 17:59:36 +02:00
|
|
|
name = "rules_python",
|
2022-04-12 15:48:21 +02:00
|
|
|
tag = "0.8.0",
|
|
|
|
|
remote = "https://github.com/bazelbuild/rules_python.git",
|
2022-03-29 17:59:36 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
load("@rules_python//python:pip.bzl", "pip_install")
|
|
|
|
|
|
|
|
|
|
# Create a central external repo, @ortools_deps, that contains Bazel targets for all the
|
|
|
|
|
# third-party packages specified in the python_deps.txt file.
|
|
|
|
|
pip_install(
|
|
|
|
|
name = "ortools_deps",
|
|
|
|
|
requirements = "//bazel:python_deps.txt",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
git_repository(
|
|
|
|
|
name = "pybind11_bazel",
|
|
|
|
|
commit = "72cbbf1fbc830e487e3012862b7b720001b70672",
|
2022-04-12 15:48:21 +02:00
|
|
|
patches = ["//patches:pybind11_bazel.patch"], # see pybind/pybind11_bazel#38
|
|
|
|
|
patch_args = ["-p1"],
|
2022-03-29 17:59:36 +02:00
|
|
|
remote = "https://github.com/pybind/pybind11_bazel.git",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
new_git_repository(
|
|
|
|
|
name = "pybind11",
|
2022-04-11 13:43:56 +02:00
|
|
|
build_file = "@pybind11_bazel//:pybind11.BUILD",
|
2022-04-12 15:48:21 +02:00
|
|
|
tag = "v2.9.2",
|
2022-03-29 17:59:36 +02:00
|
|
|
remote = "https://github.com/pybind/pybind11.git",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
|
|
|
|
|
python_configure(name = "local_config_python", python_version = "3")
|