forked from ramblehead/cpp-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
47 lines (39 loc) · 969 Bytes
/
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
# Hey Emacs, this is -*- coding: utf-8; mode: bazel -*-
workspace(name = "cpp_utils")
metaPath = __workspace_dir__ + "/.meta"
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "bazel_utils",
remote = "git@github.com:ramblehead/bazel-utils.git",
branch = "master",
)
# local_repository(
# name = "bazel_utils",
# path = metaPath + "/bazel-utils",
# )
load(
"@bazel_utils//:index.bzl",
select_repository = "select_repository_local")
select_repository(
name = "compdb",
repositories = {
"remote": {
"rule": git_repository,
"kwargs": {
"remote": "git@github.com:ramblehead/bazel-compdb.git",
"branch": "master",
},
},
"local": {
"rule": local_repository,
"kwargs": {
"path": metaPath + "/bazel-compdb",
},
},
},
)
new_local_repository(
name = "system",
path = "/usr/lib/x86_64-linux-gnu",
build_file = "system.BUILD",
)