forked from jupp0r/prometheus-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE.example
66 lines (63 loc) · 1.38 KB
/
WORKSPACE.example
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
new_git_repository(
name = "prometheus_client_model",
remote = "https://github.com/prometheus/client_model.git",
commit = "e2da43a",
build_file_content = """
cc_library(
name = "prometheus_client_model",
srcs = [
"cpp/metrics.pb.cc",
],
hdrs = [
"cpp/metrics.pb.h",
],
includes = [
"cpp",
],
visibility = ["//visibility:public"],
deps = ["@protobuf//:protobuf"],
)
""",
)
git_repository(
name = "protobuf",
remote = "https://github.com/google/protobuf.git",
tag = "v3.0.0",
)
new_git_repository(
name = "civetweb",
remote = "https://github.com/civetweb/civetweb.git",
commit = "fbdee74",
build_file_content = """
cc_library(
name = "civetweb",
srcs = [
"src/civetweb.c",
"src/CivetServer.cpp",
],
hdrs = [
"include/civetweb.h",
"include/CivetServer.h",
"src/md5.inl",
"src/handle_form.inl",
],
includes = [
"include",
],
copts = [
"-DUSE_IPV6",
"-DNDEBUG",
"-DNO_CGI",
"-DNO_CACHING",
"-DNO_SSL",
"-DNO_FILES",
],
visibility = ["//visibility:public"],
)
"""
)
git_repository(
name = "prometheus_cpp",
remote = "https://github.com/jupp0r/prometheus-cpp.git",
commit = "9c865b1c1a4234fa063e91225bb228111ee922ac",
)