forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
134 lines (116 loc) · 3.49 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
workspace(name = "com_google_ortools")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
# Bazel Skylib rules.
git_repository(
name = "bazel_skylib",
tag = "1.2.1",
remote = "https://github.com/bazelbuild/bazel-skylib.git",
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
# Bazel Platforms rules.
git_repository(
name = "platforms",
tag = "0.0.5",
remote = "https://github.com/bazelbuild/platforms.git",
)
# Abseil-cpp
git_repository(
name = "com_google_absl",
tag = "20211102.0",
remote = "https://github.com/abseil/abseil-cpp.git",
)
# Protobuf
git_repository(
name = "com_google_protobuf",
tag = "v3.19.4",
remote = "https://github.com/protocolbuffers/protobuf.git",
)
# Load common dependencies.
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
# 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",
)
git_repository(
name = "com_google_re2",
tag = "2022-04-01",
remote = "https://github.com/google/re2.git",
)
git_repository(
name = "com_google_googletest",
tag = "release-1.11.0",
remote = "https://github.com/google/googletest.git",
)
http_archive(
name = "glpk",
build_file = "//bazel:glpk.BUILD",
sha256 = "4a1013eebb50f728fc601bdd833b0b2870333c3b3e5a816eeba921d95bec6f15",
url = "http://ftp.gnu.org/gnu/glpk/glpk-5.0.tar.gz",
)
http_archive(
name = "bliss",
build_file = "//bazel:bliss.BUILD",
patches = ["//bazel:bliss-0.73.patch"],
sha256 = "f57bf32804140cad58b1240b804e0dbd68f7e6bf67eba8e0c0fa3a62fd7f0f84",
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",
)
new_git_repository(
name = "scip",
build_file = "//bazel:scip.BUILD",
patches = ["//bazel:scip.patch"],
patch_args = ["-p1"],
tag = "v800",
remote = "https://github.com/scipopt/scip.git",
)
# Eigen has no Bazel build.
new_git_repository(
name = "eigen",
tag = "3.4.0",
remote = "https://gitlab.com/libeigen/eigen.git",
build_file_content =
"""
cc_library(
name = 'eigen3',
srcs = [],
includes = ['.'],
hdrs = glob(['Eigen/**']),
visibility = ['//visibility:public'],
)
"""
)
# Python
## Bazel Python rules.
git_repository(
name = "rules_python",
tag = "0.8.1",
remote = "https://github.com/bazelbuild/rules_python.git",
)
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",
patches = ["//patches:pybind11_bazel.patch"], # see pybind/pybind11_bazel#38
patch_args = ["-p1"],
remote = "https://github.com/pybind/pybind11_bazel.git",
)
new_git_repository(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11.BUILD",
tag = "v2.9.2",
remote = "https://github.com/pybind/pybind11.git",
)
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
python_configure(name = "local_config_python", python_version = "3")