-
Notifications
You must be signed in to change notification settings - Fork 12
/
WORKSPACE
100 lines (87 loc) · 2.79 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
workspace(name = "com_github_nitnelave_lru_cache")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# rules for c++
http_archive(
name = "rules_cc",
urls = ["https://github.com/bazelbuild/rules_cc/archive/4c3e410486a078d6492baeaebb406ce4d20e3164.tar.gz"],
strip_prefix = "rules_cc-4c3e410486a078d6492baeaebb406ce4d20e3164",
sha256 = "abe679f9a6513a72d73f09f96318b0060770fdc93695a6cd766550b492ce6ef1",
)
# abseil-cpp
http_archive(
name = "com_google_absl",
urls = ["https://github.com/abseil/abseil-cpp/archive/c512f118dde6ffd51cb7d8ac8804bbaf4d266c3a.zip"],
strip_prefix = "abseil-cpp-c512f118dde6ffd51cb7d8ac8804bbaf4d266c3a",
sha256 = "8400c511d64eb4d26f92c5ec72535ebd0f843067515244e8b50817b0786427f9",
)
# catch2
http_archive(
name = "com_github_catchorg_catch2",
build_file_content = """
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "catch2",
hdrs = ["single_include/catch2/catch.hpp"],
visibility = ["//visibility:public"],
includes = ["single_include/"],
)""",
urls = ["https://github.com/catchorg/Catch2/archive/v2.12.1.tar.gz"],
strip_prefix = "Catch2-2.12.1",
sha256 = "e5635c082282ea518a8dd7ee89796c8026af8ea9068cd7402fb1615deacd91c3",
)
# For Benchmarks
# lamerman/cpp-lru-cache
http_archive(
name = "com_github_lamerman",
build_file_content = """
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "cpp_lru_cache",
hdrs = ["include/lrucache.hpp"],
visibility = ["//visibility:public"],
includes = ["include/"],
)""",
urls = ["https://github.com/lamerman/cpp-lru-cache/archive/master.zip"],
strip_prefix = "cpp-lru-cache-master",
)
# mohaps/lrucache11
http_archive(
name = "com_github_mohaps",
build_file_content = """
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "lrucache11",
hdrs = ["LRUCache11.hpp"],
visibility = ["//visibility:public"],
)""",
urls = ["https://github.com/mohaps/lrucache11/archive/master.zip"],
strip_prefix = "lrucache11-master",
)
# vpetrigo/caches
http_archive(
name = "com_github_vpetrigo",
build_file_content = """
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "caches",
hdrs = glob(["include/**/*.hpp"]),
visibility = ["//visibility:public"],
includes = ["include/"],
)""",
urls = ["https://github.com/vpetrigo/caches/archive/master.zip"],
strip_prefix = "caches-master",
)
# goldsborough/lru-cache
http_archive(
name = "com_github_goldsborough",
build_file_content = """
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "lru-cache",
hdrs = glob(["include/lru/**/*.hpp"]),
visibility = ["//visibility:public"],
includes = ["include/"],
)""",
urls = ["https://github.com/goldsborough/lru-cache/archive/master.zip"],
strip_prefix = "lru-cache-master",
)