forked from jupp0r/prometheus-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
116 lines (110 loc) · 2.61 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
new_git_repository(
name = "googletest",
remote = "https://github.com/google/googletest.git",
tag = "release-1.8.0",
build_file_content = """
cc_library(
name = "gmock",
srcs = [
"googletest/src/gtest-all.cc",
"googlemock/src/gmock-all.cc",
],
hdrs = glob([
"googletest/**/*.h",
"googlemock/**/*.h",
"googletest/src/*.cc",
"googlemock/src/*.cc",
]),
includes = [
"googlemock",
"googletest",
"googletest/include",
"googlemock/include",
],
linkopts = ["-pthread"],
visibility = ["//visibility:public"],
)
cc_library(
name = "main",
srcs = ["googlemock/src/gmock_main.cc"],
linkopts = ["-pthread"],
visibility = ["//visibility:public"],
deps = [":gmock"],
)
""",
)
new_git_repository(
name = "prometheus_client_model",
remote = "https://github.com/prometheus/client_model.git",
commit = "e2da43a",
build_file_content = """
load("@protobuf//:protobuf.bzl", "cc_proto_library")
cc_proto_library(
name = "prometheus_client_model",
srcs = ["metrics.proto"],
protoc = "@protobuf//:protoc",
default_runtime = "@protobuf//:protobuf",
visibility = ["//visibility:public"],
)
""",
)
git_repository(
name = "protobuf",
remote = "https://github.com/google/protobuf.git",
tag = "v3.2.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",
],
textual_hdrs = [
"src/md5.inl",
"src/handle_form.inl",
],
includes = [
"include",
],
copts = [
"-DUSE_IPV6",
"-DNDEBUG",
"-DNO_CGI",
"-DNO_CACHING",
"-DNO_SSL",
"-DNO_FILES",
],
visibility = ["//visibility:public"],
)
"""
)
new_git_repository(
name = "googlebenchmark",
remote = "https://github.com/google/benchmark.git",
commit = "57a22c69b382b3f010ec4042c9574ea3fd8dcbb4",
build_file_content = """
cc_library(
name = "googlebenchmark",
srcs = glob(["src/*.cc"],
exclude = ["src/re_posix.cc", "src/gnuregex.cc"]),
hdrs = glob(["src/*.h", "include/benchmark/*.h"],
exclude = ["src/re_posix.h", "src/gnuregex.h"]),
includes = [
"include",
],
visibility = ["//visibility:public"],
copts = [
"-DHAVE_STD_REGEX"
],
)
"""
)