-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
executable file
·61 lines (49 loc) · 1.98 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
workspace(name = "pecomp")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# Raspberry Pi (begin)
# This also sets up --compiler=clang
load("//tools/workspace:default.bzl", "add_default_repositories")
add_default_repositories()
load(
"@rpi_bazel//tools/workspace:default.bzl",
rpi_bazel_add = "add_default_repositories",
)
rpi_bazel_add()
# Raspberry Pi (end)
# Building with cmake and b2 (begin)
http_archive(
name = "rules_foreign_cc",
strip_prefix = "rules_foreign_cc-master",
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/master.zip",
)
load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")
rules_foreign_cc_dependencies()
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
# Building with cmake and b2 (end)
# Boost
http_archive(
name = "boost",
build_file_content = all_content,
strip_prefix = "boost_1_65_0",
urls = ["https://sourceforge.net/projects/boost/files/boost/1.65.0/boost_1_65_0.tar.gz"],
)
# Google Test
http_archive(
name = "com_google_googletest",
strip_prefix = "googletest-master",
url = "https://github.com/google/googletest/archive/master.zip",
# sha256 = "d21ba93d7f193a9a0ab80b96e8890d520b25704a6fac976fe9da81fffb3392e3",
# strip_prefix = "googletest-8b6d3f9c4a774bef3081195d422993323b6bb2e0",
# urls = ["https://github.com/google/googletest/archive/8b6d3f9c4a774bef3081195d422993323b6bb2e0.zip"], # 2019-03-05
)
# GENIVI/vsomeip
http_archive(
name = "vsomeip",
build_file_content = all_content,
strip_prefix = "vsomeip-master",
urls = ["https://github.com/GENIVI/vsomeip/archive/master.zip"],
# sha256 = "211fc6264f38508a16da28904829b7e3d2b37e6c8e8265341b0d21a09e7d92d5",
# strip_prefix = "vsomeip-2.10.21",
# urls = ["https://github.com/GENIVI/vsomeip/archive/2.10.21.zip"], # 2018-05-22
)