forked from ErlangZ/PublicCourse
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWORKSPACE
executable file
·147 lines (130 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
135
136
137
138
139
140
141
142
143
144
145
146
workspace(name = "ponyai_public_course")
load("//utils/bazel:pony_http_archive.bzl", "pony_http_archive")
# gtest
pony_http_archive(
name = "googletest",
build_file = "utils/bazel/googletest.BUILD",
sha256 = "58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8",
strip_prefix = "googletest-release-1.8.0",
urls = ["https://github.com/google/googletest/archive/release-1.8.0.tar.gz"],
)
# glog
pony_http_archive(
name = "glog",
build_file = "utils/bazel/glog.BUILD",
sha256 = "7580e408a2c0b5a89ca214739978ce6ff480b5e7d8d7698a2aa92fadc484d1e0",
strip_prefix = "glog-0.3.5",
urls = ["https://github.com/google/glog/archive/v0.3.5.tar.gz"],
)
# gflags
pony_http_archive(
name = "gflags",
sha256 = "ae27cdbcd6a2f935baa78e4f21f675649271634c092b1be01469440495609d0e",
strip_prefix = "gflags-2.2.1",
urls = ["https://github.com/gflags/gflags/archive/v2.2.1.tar.gz"],
)
# eigen
pony_http_archive(
name = "eigen",
build_file = "utils/bazel/eigen.BUILD",
sha256 = "4286e8f1fabbd74f7ec6ef8ef31c9dbc6102b9248a8f8327b04f5b68da5b05e1",
strip_prefix = "eigen-eigen-5a0156e40feb",
urls = ["http://bitbucket.org/eigen/eigen/get/3.3.4.tar.gz"],
)
# boost
pony_http_archive(
name = "boost",
build_file = "utils/bazel/boost.BUILD",
sha256 = "a004d9b3fa95e956383693b86fce1b68805a6f71c2e68944fa813de0fb8c8102",
strip_prefix = "boost_1_58_0",
urls = [
"https://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.gz",
],
)
# opencv
new_local_repository(
name = "opencv",
build_file = "utils/bazel/opencv.BUILD",
path = "/usr",
)
# Qt5
new_local_repository(
name = "qt",
build_file = "utils/bazel/qt.BUILD",
path = "/usr",
)
# protobuf
pony_http_archive(
name = "com_google_protobuf",
patch_file = "utils/bazel/protobuf.patch",
sha256 = "8e0236242106e680b4f9f576cc44b8cd711e948b20a9fc07769b0a20ceab9cc4",
strip_prefix = "protobuf-3.4.1",
urls = ["https://github.com/google/protobuf/archive/v3.4.1.tar.gz"],
)
# GLM
pony_http_archive(
name = "glm",
build_file = "utils/bazel/glm.BUILD",
sha256 = "9f9f520ec7fb8c20c69d6b398ed928a2448c6a3245cbedb8631a56a987c38660",
strip_prefix = "glm",
urls = [
"https://github.com/g-truc/glm/releases/download/0.9.8.5/glm-0.9.8.5.zip",
],
)
# opengl
new_local_repository(
name = "opengl",
build_file = "utils/bazel/opengl.BUILD",
path = "/usr",
)
# png
pony_http_archive(
name = "png",
build_file = "utils/bazel/png.BUILD",
sha256 = "d5bc743ac338bd454e330279f70534f5a31ea4c2cd3ee3ce76fd6e7f17fd3950",
strip_prefix = "libpng-1.2.59",
urls = [
"https://github.com/glennrp/libpng/archive/v1.2.59.tar.gz",
],
)
# jpeg-turbo
pony_http_archive(
name = "jpeg_turbo",
build_file = "utils/bazel/jpeg-turbo.BUILD",
sha256 = "1a17020f859cb12711175a67eab5c71fc1904e04b587046218e36106e07eabde",
strip_prefix = "libjpeg-turbo-1.5.3",
urls = [
"https://github.com/libjpeg-turbo/libjpeg-turbo/archive/1.5.3.tar.gz",
],
)
# zlib
pony_http_archive(
name = "zlib",
build_file = "utils/bazel/zlib.BUILD",
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
strip_prefix = "zlib-1.2.11",
urls = [
"https://zlib.net/zlib-1.2.11.tar.gz",
],
)
# fmt
pony_http_archive(
name = "fmt",
build_file = "utils/bazel/fmt.BUILD",
sha256 = "46628a2f068d0e33c716be0ed9dcae4370242df135aed663a180b9fd8e36733d",
strip_prefix = "fmt-4.1.0",
urls = [
"https://github.com/fmtlib/fmt/archive/4.1.0.tar.gz",
],
)
# nanoflann
pony_http_archive(
name = "nanoflann",
build_file = "utils/bazel/nanoflann.BUILD",
patch_file = "utils/bazel/nanoflann.patch",
sha256 = "5ef4dfb23872379fe9eb306aabd19c9df4cae852b72a923af01aea5e8d7a59c3",
urls = [
"https://github.com/jlblancoc/nanoflann/archive/v1.2.3.tar.gz",
],
strip_prefix = "nanoflann-1.2.3",
)