forked from google/visqol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
134 lines (119 loc) · 3.94 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
########################
# Platform Independent #
########################
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# GoogleTest/GoogleMock framework.
http_archive(
name = "com_google_googletest",
strip_prefix = "googletest-4e4df226fc197c0dda6e37f5c8c3845ca1e73a49",
# Google Test has not produced a recent release, so instead depending on a recent stable commit.
url = "https://github.com/google/googletest/archive/4e4df226fc197c0dda6e37f5c8c3845ca1e73a49.zip",
sha256 = "d4179caf54410968d1fff0b869e7d74803dd30209ee6645ccf1ca65ab6cf5e5a",
)
# proto_library, cc_proto_library, and java_proto_library rules implicitly
# depend on @com_google_protobuf for protoc and proto runtimes.
# This statement defines the @com_google_protobuf repo.
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-3.11.1",
url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.11.1/protobuf-all-3.11.1.tar.gz",
sha256 = "761bfffc7d53cd01514fa237ca0d3aba5a3cfd8832a71808c0ccc447174fd0da",
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
# Google Abseil Libs
git_repository(
name = "com_google_absl",
remote = "https://github.com/abseil/abseil-cpp.git",
tag = "20200225.2",
)
# LIBSVM
http_archive(
name = "svm_lib",
strip_prefix = "libsvm-324",
# Depending on a recent stable version.
urls = ["https://github.com/cjlin1/libsvm/archive/v324.zip"],
sha256 = "401a60bd828bce8870b9eebf5023602028c7751b0db928a6a3bc351560b8b618",
build_file_content = """
cc_library(
name = "libsvm",
srcs = glob(["svm.cpp"]),
hdrs = glob(["svm.h"]),
visibility = ["//visibility:public"],
)
""",
)
# Armadillo Headers
http_archive(
name = "armadillo_headers",
strip_prefix = "armadillo-9.860.2",
urls = ["http://sourceforge.net/projects/arma/files/armadillo-9.860.2.tar.xz"],
sha256 = "d856ea58c18998997bcae6689784d2d3eeb5daf1379d569fddc277fe046a996b",
build_file_content = """
cc_library(
name = "armadillo_header",
hdrs = glob(["include/armadillo", "include/armadillo_bits/*.hpp"]),
includes = ["include/"],
visibility = ["//visibility:public"],
)
""",
)
##################
# Platform Linux #
##################
# PFFFT - Linux
new_git_repository(
name = "pffft_lib_linux",
remote = "https://bitbucket.org/jpommier/pffft.git",
branch = "master",
build_file_content = """
cc_library(
name = "pffft_linux",
srcs = glob(["pffft.c"]),
hdrs = glob(["pffft.h"]),
visibility = ["//visibility:public"],
)
""",
)
####################
# Platform Windows #
####################
# PFFFT - Windows
new_git_repository(
name = "pffft_lib_win",
remote = "https://bitbucket.org/jpommier/pffft.git",
branch = "master",
build_file_content = """
cc_library(
name = "pffft_win",
srcs = glob(["pffft.c"]),
hdrs = glob(["pffft.h"]),
copts = [
"/D_USE_MATH_DEFINES",
"/W0",
],
visibility = ["//visibility:public"],
)
""",
)
http_archive(
name = "bazel_skylib",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
],
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "com_github_nelhage_rules_boost",
commit = "9f9fb8b2f0213989247c9d5c0e814a8451d18d7f",
remote = "https://github.com/nelhage/rules_boost",
shallow_since = "1570056263 -0700",
)
load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
boost_deps()