-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
173 lines (140 loc) · 5.77 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
workspace(name = "murtis_monovo")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
###############################
# murtis maintained external bazel projects
###############################
http_archive(
name = "murtis_bazel_tools",
sha256 = "099798213986aa96d7dc1bdc6f7b0841eeefe5408f6ede85f5530638a9aff1bf",
strip_prefix = "bazel_tools-47f50405eb76f8320dc16c11509595254af98a4d",
urls = ["https://github.com/curtismuntz/bazel_tools/archive/47f50405eb76f8320dc16c11509595254af98a4d.tar.gz"],
)
load("@murtis_bazel_tools//tools:github_repo.bzl", "github_repo")
load("@murtis_bazel_tools//tools:deps.bzl", "google_cpp_dependencies", "linter_dependencies")
linter_dependencies()
http_archive(
name = "murtis_bazel_compilers",
sha256 = "16865fc175a3f64f5179c484d47b80170e7635093348ce51743c1eb261413246",
strip_prefix = "bazel_compilers-0.4.0",
urls = ["https://github.com/curtismuntz/bazel_compilers/archive/v0.4.0.tar.gz"],
)
load("@murtis_bazel_compilers//compilers:dependencies.bzl", "cross_compiler_dependencies")
cross_compiler_dependencies()
###############################
# c++
###############################
http_archive(
name = "opencv_archive",
build_file = "//third_party:opencv.BUILD",
sha256 = "f3b160b9213dd17aa15ddd45f6fb06017fe205359dbd1f7219aad59c98899f15",
strip_prefix = "opencv-3.1.0",
url = "https://github.com/opencv/opencv/archive/3.1.0.tar.gz",
)
http_archive(
name = "libjpeg_archive",
build_file = "//third_party:jpeg.BUILD",
sha256 = "75c3ec241e9996504fe02a9ed4d12f16b74ade713972f3db9e65ce95cd27e35d",
strip_prefix = "jpeg-6b",
urls = [
"https://svwh.dl.sourceforge.net/project/libjpeg/libjpeg/6b/jpegsrc.v6b.tar.gz",
],
)
http_archive(
name = "libpng_archive",
build_file = "//third_party:png.BUILD",
sha256 = "e30bf36cd5882e017c23a5c6a79a9aa1a744dd5841bb45ff7035ec6e3b3096b8",
strip_prefix = "libpng-1.6.29",
url = "http://download.sourceforge.net/libpng/libpng-1.6.29.tar.gz",
)
bind(
name = "png",
actual = "@libpng_archive//:libpng",
)
http_archive(
name = "zlib_git",
build_file = "//third_party:zlib.BUILD",
sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
strip_prefix = "zlib-1.2.11",
url = "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
)
bind(
name = "myzlib",
actual = "@zlib_git//:zlib",
)
http_archive(
name = "com_github_ben-strasser_fast-cpp-csv-parser",
build_file = "//third_party:fast-cpp-csv-parser.BUILD",
strip_prefix = "fast-cpp-csv-parser-78f413248fdeea27368481c4a1d48c059ac36680",
# sha256 = "",
url = "https://github.com/ben-strasser/fast-cpp-csv-parser/archive/78f413248fdeea27368481c4a1d48c059ac36680.tar.gz",
)
###############################
# protobuf
###############################
http_archive(
name = "build_stack_rules_proto",
sha256 = "9c9fc051189dd87bd643cf69e82e3b08de03114fc03155de784ba60bd0cef4b6",
strip_prefix = "rules_proto-609362dd9b08110b7a95bfa26b5e3aac3cd06905",
urls = ["https://github.com/stackb/rules_proto/archive/609362dd9b08110b7a95bfa26b5e3aac3cd06905.tar.gz"],
)
load("@build_stack_rules_proto//cpp:deps.bzl", "cpp_grpc_library")
cpp_grpc_library()
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
###############################
# Buildifier
# This section allows buildifier to exist as part of the bazel project. Simply run the following
# command to run buildifier on all bazel BUILD/starlark targets.
# bazel run //:buildifier
###############################
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# buildifier is written in Go and hence needs rules_go to be built.
# See https://github.com/bazelbuild/rules_go for the up to date setup instructions.
http_archive(
name = "io_bazel_rules_go",
sha256 = "ade51a315fa17347e5c31201fdc55aa5ffb913377aa315dceb56ee9725e620ee",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.16.6/rules_go-0.16.6.tar.gz",
)
http_archive(
name = "com_github_bazelbuild_buildtools",
sha256 = "e8792ae37bfa82eb4efa3e2d93a5b4dcc43d681d13f6d00f183d2ef34a4bc828",
strip_prefix = "buildtools-4bcdbd1064fcc48180fa30400e39f7a940fdb8f9",
url = "https://github.com/bazelbuild/buildtools/archive/4bcdbd1064fcc48180fa30400e39f7a940fdb8f9.zip",
)
load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")
go_rules_dependencies()
go_register_toolchains()
buildifier_dependencies()
###############################
# rust
###############################
http_archive(
name = "io_bazel_rules_rust",
sha256 = "c82118824b2448b77146f1dae97b6eaa717babedad0822aca4879f3cbbf2b7b5",
strip_prefix = "rules_rust-3228ccd3814c2ad0d7307d2f87fb8ff9616149d7",
urls = [
# Master branch as of 2018-12-11
"https://github.com/bazelbuild/rules_rust/archive/3228ccd3814c2ad0d7307d2f87fb8ff9616149d7.tar.gz",
],
)
http_archive(
name = "libc",
build_file = "@//:libc.BUILD",
sha256 = "e686c0710e6dc4e3e1ba96333151052331b1dbfee24b29319b1a0f6ecbbd0e09",
strip_prefix = "libc-0.2.133",
urls = [
"https://mirror.bazel.build/github.com/rust-lang/libc/archive/0.2.133.zip",
"https://github.com/rust-lang/libc/archive/0.2.133.zip",
],
)
http_archive(
name = "bazel_skylib",
sha256 = "eb5c57e4c12e68c0c20bc774bfbc60a568e800d025557bc4ea022c6479acc867",
strip_prefix = "bazel-skylib-0.6.0",
url = "https://github.com/bazelbuild/bazel-skylib/archive/0.6.0.tar.gz",
)
load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories")
rust_repositories()
load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version")
bazel_version(name = "bazel_version")