forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE.in
318 lines (273 loc) · 7.32 KB
/
WORKSPACE.in
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
workspace(name = "apollo")
# googletest (GTest and GMock)
new_http_archive(
name = "com_google_googletest",
build_file = "third_party/gtest.BUILD",
sha256 = "58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8",
strip_prefix = "googletest-release-1.8.0",
url = "file:///home/tmp/googletest-release-1.8.0.tar.gz",
)
# TODO(xiaoxq): Alias to help migrate legacy code in other repos. Will remove
# very soon.
new_local_repository(
name = "gtest",
build_file_content = """
package(default_visibility = ["//visibility:public"])
cc_library(name = "gtest", deps = ["@com_google_googletest//:gtest"])
cc_library(name = "main", deps = ["@com_google_googletest//:gtest_main"])
""",
path = "/home/tmp",
)
# gflags
new_local_repository(
name = "com_github_gflags_gflags",
build_file = "third_party/gflags.BUILD",
path = "/usr/local/include/gflags",
)
# glog
new_local_repository(
name = "com_google_glog",
build_file = "third_party/glog.BUILD",
path = "/usr/local/include/glog",
)
# Google Benchmark
new_http_archive(
name = "benchmark",
build_file = "third_party/benchmark.BUILD",
sha256 = "e7334dd254434c6668e33a54c8f839194c7c61840d52f4b6258eee28e9f3b20e",
strip_prefix = "benchmark-1.1.0",
url = "file:///home/tmp/benchmark-1.1.0.tar.gz",
)
# cpplint from google style guide
new_local_repository(
name = "google_styleguide",
build_file = "third_party/google_styleguide.BUILD",
path = "/home/tmp/google_styleguide",
)
# ad-rss-lib
new_http_archive(
name = "ad_rss_lib",
build_file = "third_party/rss_lib.BUILD",
strip_prefix = "ad-rss-lib-1.1.0",
url = "file:///home/tmp/ad_rss_lib-1.1.0.tar.gz",
)
# eigen
new_http_archive(
name = "eigen",
build_file = "third_party/eigen.BUILD",
sha256 = "ba4f95f9082ce99012d5ff320472a0e9fd0be921a20f11912f0bf7e6ca93f240",
strip_prefix = "eigen-git-mirror-3.2.10",
url = "file:///home/tmp/eigen-3.2.10.tar.gz",
)
# CivetWeb (web server)
new_http_archive(
name = "civetweb",
build_file = "third_party/civetweb.BUILD",
sha256 = "de7d5e7a2d9551d325898c71e41d437d5f7b51e754b242af897f7be96e713a42",
strip_prefix = "civetweb-1.11",
url = "file:///home/tmp/v1.11.tar.gz",
)
#ros
new_local_repository(
name = "ros",
build_file = "third_party/ros.BUILD",
path = "/home/tmp/ros",
)
# PCL 1.9
new_local_repository(
name = "pcl",
build_file = "third_party/pcl.BUILD",
path = "/usr/local/include/pcl-1.9",
)
new_local_repository(
name = "glew",
build_file = "third_party/glew.BUILD",
path = "/usr/include",
)
new_local_repository(
name = "qt",
build_file = "third_party/qt.BUILD",
path = "/usr/local/qt5/include",
)
new_local_repository(
name = "opengl",
build_file = "third_party/opengl.BUILD",
path = "/usr/include",
)
new_local_repository(
name = "glfw",
build_file = "third_party/glfw.BUILD",
path = "/usr/include",
)
new_local_repository(
name = "vtk",
build_file = "third_party/vtk.BUILD",
path = "/usr/include/vtk-VTK_VERSION",
)
# Caffe
new_local_repository(
name = "caffe",
build_file = "third_party/caffe.BUILD",
path = "/usr/include/caffe",
)
## tensorrt
new_local_repository(
name = "tensorrt",
build_file = "third_party/tensorrt.BUILD",
path = "/usr/include/tensorrt",
)
# YAML-CPP
new_http_archive(
name = "com_github_jbeder_yaml_cpp",
build_file = "third_party/yaml_cpp.BUILD",
strip_prefix = "yaml-cpp-yaml-cpp-0.5.3",
url = "file:///home/tmp/yaml-cpp-0.5.3.zip",
)
new_http_archive(
name = "qpOASES",
build_file = "third_party/qpOASES.BUILD",
sha256 = "e70b49586b58b8f5fd348e951f3c3094ed0ad371a96097a499f343a7aeec7dbe",
strip_prefix = "qp-oases-3.2.1-1",
url = "file:///home/tmp/qp-oases-3.2.1-1.zip",
)
# OSQP
new_local_repository(
name = "osqp",
build_file = "third_party/osqp.BUILD",
path = "/usr/local/include/osqp/include",
)
# IpOpt
new_local_repository(
name = "ipopt",
build_file = "third_party/ipopt.BUILD",
path = "/usr/local/ipopt/include",
)
# ADOL-C
new_local_repository(
name = "adolc",
build_file = "third_party/adolc.BUILD",
path = "/usr/local/adolc/include",
)
# Cuda
new_local_repository(
name = "cuda",
build_file = "third_party/cuda.BUILD",
path = "/usr/local/cuda",
)
# Local-integ
new_local_repository(
name = "local_integ",
build_file = "third_party/local_integ.BUILD",
path = "/usr/local/apollo/local_integ",
)
# paddlepaddle
new_local_repository(
name = "paddlepaddle",
build_file = "third_party/paddlepaddle.BUILD",
path = "/usr/local/apollo/paddlepaddle",
)
# mkldnn
new_local_repository(
name = "mkldnn",
build_file = "third_party/mkldnn.BUILD",
path = "/usr/local/apollo/local_third_party/mkldnn",
)
# mklml
new_local_repository(
name = "mklml",
build_file = "third_party/mklml.BUILD",
path = "/usr/local/apollo/local_third_party/mklml",
)
# Proj.4
new_http_archive(
name = "proj4",
build_file = "third_party/proj4.BUILD",
strip_prefix = "proj.4-4.9.3",
url = "file:///home/tmp/proj.4-4.9.3.zip",
)
# tinyxml2
new_http_archive(
name = "tinyxml2",
build_file = "third_party/tinyxml2.BUILD",
strip_prefix = "tinyxml2-5.0.1",
url = "file:///home/tmp/tinyxml2-5.0.1.zip",
)
#protobuf 3.3
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-3.3.0",
url = "file:///home/tmp/protobuf-3.3.0.tar.gz",
)
#jsoncpp .so for adv_plat
new_local_repository(
name = "jsoncpp",
build_file = "third_party/jsoncpp.BUILD",
path = "/usr/local/apollo/jsoncpp/",
)
#xxhash
new_local_repository(
name = "xxhash",
build_file = "third_party/xxhash.BUILD",
path = "/usr/local/apollo/paddlepaddle_dep/xxhash",
)
#snappystream
new_local_repository(
name = "snappystream",
build_file = "third_party/snappystream.BUILD",
path = "/usr/local/apollo/paddlepaddle_dep/snappystream",
)
#adv_plat
new_http_archive(
name = "adv_plat",
build_file = "third_party/adv_plat.BUILD",
sha256 = "0a58dadab924b520d5b5a58ef82fc0f76c2aa4feaaabd49ec9873228c125d513",
url = "https://github.com/ApolloAuto/apollo-contrib/releases/download/v3.0.0/plat-sw-3.0.0.1.zip",
)
new_local_repository(
name = "fastrtps",
build_file = "third_party/fastrtps.BUILD",
path = "/usr/local/fast-rtps",
)
# grpc
http_archive(
name = "com_github_grpc_grpc",
strip_prefix = "grpc-1.14.2",
url = "file:///home/tmp/v1.14.2.tar.gz",
)
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
# python
new_local_repository(
name = "python27",
build_file = "third_party/python27.BUILD",
path = "/usr",
)
# PyTorch
new_local_repository(
name = "pytorch",
build_file = "third_party/pytorch.BUILD",
path = "/usr/local/apollo/libtorch",
)
# PyTorch GPU
new_local_repository(
name = "pytorch_gpu",
build_file = "third_party/pytorch_gpu.BUILD",
path = "/usr/local/apollo/libtorch_gpu",
)
# ffmpeg
new_local_repository(
name = "ffmpeg",
build_file = "third_party/ffmpeg.BUILD",
path = "/usr/local/apollo/ffmpeg",
)
# boost
new_local_repository(
name = "boost",
build_file = "third_party/boost.BUILD",
path = "/usr/local/apollo/boost/include",
)
new_local_repository(
name = "opencv",
build_file = "third_party/opencv.BUILD",
path = "/usr/include",
)