forked from ParAlg/gbbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
71 lines (61 loc) · 1.93 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
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
load("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure")
cc_configure()
GRAPHSETINTER_BUILD = """
genrule(
name = "intersection_genrule",
srcs = glob(["src/set_operation.cpp", "src/set_operation.hpp"]),
outs = ["set_operation.o"],
cmd = "cd external/graphsetinter/src; make set_operation.o; cd ../../..; cp external/graphsetinter/src/set_operation.o $(location set_operation.o)",
)
cc_library(
name = "intersectiondeps",
hdrs = glob(["src/*.hpp"]),
visibility = ["//visibility:public"],
)
cc_library(
name = "intersection",
srcs = ["set_operation.o"],
hdrs = ["src/set_operation.hpp"],
deps = ["//:intersectiondeps"],
visibility = ["//visibility:public"],
)
"""
new_git_repository(
name = "graphsetinter",
remote = "https://github.com/jeshi96/GraphSetIntersection.git",
commit = "ca7e88ae14b804f1ec6889b989544053d842b1c9",
build_file_content = GRAPHSETINTER_BUILD,
)
SIMDINTER_BUILD = """
genrule(
name = "intersection_genrule",
srcs = glob(["src/intersection.cpp", "include/intersection.h"]),
outs = ["intersection.o"],
cmd = "cd external/simdinter; make intersection.o; cd ../..; cp external/simdinter/intersection.o $(location intersection.o)",
)
cc_library(
name = "intersectiondeps",
hdrs = glob(["include/*.h"]),
visibility = ["//visibility:public"],
)
cc_library(
name = "intersection",
srcs = ["intersection.o"],
hdrs = ["include/intersection.h"],
deps = ["//:intersectiondeps"],
visibility = ["//visibility:public"],
)
"""
new_git_repository(
name = "simdinter",
remote = "https://github.com/lemire/SIMDCompressionAndIntersection.git",
commit = "f002db1d47f252dd17daa8206e3ebbbeee9e4d9b",
build_file_content = SIMDINTER_BUILD,
)
git_repository(
name = "googletest",
remote = "https://github.com/google/googletest",
tag = "release-1.8.1",
)