-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
187 lines (160 loc) · 5.57 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
git_repository(
name = "bazel_skylib",
remote = "https://github.com/bazelbuild/bazel-skylib.git",
commit = "b2b4471332abdbf8979c89ca5e2cbb4f3a2bdc0f",
)
git_repository(
name = "third_party_ortools",
remote = "https://github.com/google/or-tools.git",
# branch="master",
#commit="c4aaa4321d270d5d1a32ed8948ef565dca2ee3ff",
commit = "39f44709bba203f5ff3bc18fab8098739f189a6d",
#commit = "f3fd201e68cf75b7720ff5c3cadc599a1d02b54b",
)
git_repository(
name = "com_github_gflags_gflags",
remote = "https://github.com/gflags/gflags.git",
commit = "28f50e0fed19872e0fd50dd23ce2ee8cd759338e",
)
git_repository(
name = "com_google_absl",
remote = "https://github.com/abseil/abseil-cpp.git",
# commit = "7c7754fb3ed9ffb57d35fe8658f3ba4d73a31e72",
#commit = "a02f62f456f2c4a7ecf2be3104fe0c6e16fbad9a",
commit = "e9324d926a9189e222741fce6e676f0944661a72",
)
git_repository(
name = "com_github_gflags_gflags",
commit = "28f50e0fed19872e0fd50dd23ce2ee8cd759338e",
remote = "https://github.com/gflags/gflags.git",
)
git_repository(
name = "com_github_glog_glog",
remote = "https://github.com/google/glog.git",
commit = "5c576f78c49b28d89b23fbb1fc80f54c879ec02e",
)
http_archive(
name = "com_google_protobuf",
urls = ["https://github.com/google/protobuf/archive/8e5ea65953f3c47e01bca360ecf3abdf2c8b1c33.zip"],
strip_prefix = "protobuf-8e5ea65953f3c47e01bca360ecf3abdf2c8b1c33",
# urls = ["https://github.com/google/protobuf/archive/b68a347f56137b4b1a746e8c7438495a6ac1bd91.zip"],
# strip_prefix = "protobuf-b68a347f56137b4b1a746e8c7438495a6ac1bd91",
)
http_archive(
name = "com_google_protobuf_cc",
urls = ["https://github.com/google/protobuf/archive/8e5ea65953f3c47e01bca360ecf3abdf2c8b1c33.zip"],
strip_prefix = "protobuf-8e5ea65953f3c47e01bca360ecf3abdf2c8b1c33",
# urls = ["https://github.com/google/protobuf/archive/b68a347f56137b4b1a746e8c7438495a6ac1bd91.zip"],
# strip_prefix = "protobuf-b68a347f56137b4b1a746e8c7438495a6ac1bd91",
)
http_archive(
name = "com_github_grpc_grpc",
urls = [
"https://github.com/grpc/grpc/archive/6354b810278409d57e2900dfb3532e656e96851d.tar.gz",
],
strip_prefix = "grpc-6354b810278409d57e2900dfb3532e656e96851d",
)
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
git_repository(
name = "gtest",
commit = "8b6d3f9c4a774bef3081195d422993323b6bb2e0",
remote = "https://github.com/google/googletest.git",
)
http_archive(
name = "glpk",
url = "http://ftp.gnu.org/gnu/glpk/glpk-4.65.tar.gz",
sha256 = "4281e29b628864dfe48d393a7bedd781e5b475387c20d8b0158f329994721a10",
build_file_content = """
cc_library(
name = "glpk",
srcs = glob([
"glpk-4.65/src/*.c",
"glpk-4.65/src/*/*.c",
"glpk-4.65/src/*.h",
"glpk-4.65/src/*/*.h",
], exclude = ["glpk-4.65/src/proxy/main.c"]),
hdrs = [
"glpk-4.65/src/glpk.h",
],
copts = [
"-Wno-error",
"-w",
"-Iexternal/glpk/glpk-4.65/src",
"-Iexternal/glpk/glpk-4.65/src/amd",
"-Iexternal/glpk/glpk-4.65/src/api",
"-Iexternal/glpk/glpk-4.65/src/bflib",
"-Iexternal/glpk/glpk-4.65/src/cglib",
"-Iexternal/glpk/glpk-4.65/src/colamd",
"-Iexternal/glpk/glpk-4.65/src/draft",
"-Iexternal/glpk/glpk-4.65/src/env",
"-Iexternal/glpk/glpk-4.65/src/minisat",
"-Iexternal/glpk/glpk-4.65/src/misc",
"-Iexternal/glpk/glpk-4.65/src/mpl",
"-Iexternal/glpk/glpk-4.65/src/npp",
"-Iexternal/glpk/glpk-4.65/src/proxy",
"-Iexternal/glpk/glpk-4.65/src/simplex",
"-Iexternal/glpk/glpk-4.65/src/zlib",
"-DHAVE_ZLIB",
],
includes=["glpk-4.65/src"],
visibility = ["//visibility:public"],
)
""",
)
http_archive(
name = "net_zlib",
build_file_content = """
licenses(["notice"]) # BSD/MIT-like license
filegroup(
name = "srcs",
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)
filegroup(
name = "embedded_tools",
srcs = glob(["*.c"]) + glob(["*.h"]) + ["BUILD"] + ["LICENSE.txt"],
visibility = ["//visibility:public"],
)
cc_library(
name = "zlib",
srcs = glob(["*.c"]),
hdrs = glob(["*.h"]),
# Use -Dverbose=-1 to turn off zlib's trace logging. (#3280)
copts = ["-w", "-Dverbose=-1"],
includes = ["."],
visibility = ["//visibility:public"],
)
""",
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
strip_prefix = "zlib-1.2.11",
urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
)
bind(
name = "zlib",
actual = "@net_zlib//:zlib",
)
###############################################################################
# Python stuff
###############################################################################
git_repository(
name = "subpar",
remote = "https://github.com/google/subpar",
commit = "0356bef3fbbabec5f0e196ecfacdeb6db62d48c0",
)
git_repository(
name = "io_bazel_rules_python",
remote = "https://github.com/bazelbuild/rules_python.git",
commit = "fa6ab781188972aa2710310b29a9bccaae7fd7fe",
)
load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories")
pip_repositories()
load("@io_bazel_rules_python//python:pip.bzl", "pip_import")
pip_import(
name = "external_python_deps",
requirements = "//:.python_external_deps",
)
load("@external_python_deps//:requirements.bzl", "pip_install")
pip_install()