-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrepositories.bzl
42 lines (33 loc) · 1004 Bytes
/
repositories.bzl
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
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
def libnetfilter_conntrack_repositories():
BUILD = """
cc_library(
name = "libnetfilter_conntrack",
includes = ["."],
visibility = ["//visibility:public"],
)
"""
# This requires libnetfilter-conntrack-dev to be installed on Ubuntu/Debian
native.new_local_repository(
name = "libnetfilter_conntrack",
path = "/usr/include",
build_file_content = BUILD,
)
def argagg_repositories():
BUILD = """
cc_library(
name = "argagg",
hdrs = ["include/argagg/argagg.hpp"],
includes = ["include"],
visibility = ["//visibility:public"],
)
"""
new_git_repository(
name = "argagg",
remote = "https://github.com/vietjtnguyen/argagg.git",
commit = "4c8c86180cfafb1448f583ed0973da8c2f559dd6",
build_file_content = BUILD,
)
def conntrack_exporter_dependencies():
libnetfilter_conntrack_repositories()
argagg_repositories()