-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWORKSPACE
49 lines (37 loc) · 1.52 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
# BAZEL Build System
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
######################################################################
# GoogleTest
git_repository(
name = "com_google_googletest",
remote = "https://github.com/google/googletest",
commit = "18f8200e3079b0e54fa00cb7ac55d4c39dcf6da6",
)
######################################################################
# Verilator
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_verilator",
strip_prefix = "rules_verilator-0.1-rc4",
sha256 = "c0d7a13f586336ab12ea60cbfca226b660a39c6e8235ac1099e39dd2ace3166f",
url = "https://github.com/kkiningh/rules_verilator/archive/v0.1-rc4.zip",
)
http_archive(
name = "gtestverilog",
strip_prefix = "gtestverilog-0.1-rc9",
url="https://github.com/JimKnowler/gtestverilog/archive/v0.1-rc9.zip"
)
load(
"@rules_verilator//verilator:repositories.bzl",
"rules_verilator_dependencies",
"rules_verilator_toolchains",
)
rules_verilator_dependencies()
rules_verilator_toolchains()
# Register toolchain dependencies
load("@rules_m4//m4:m4.bzl", "m4_register_toolchains")
m4_register_toolchains()
load("@rules_flex//flex:flex.bzl", "flex_register_toolchains")
flex_register_toolchains()
load("@rules_bison//bison:bison.bzl", "bison_register_toolchains")
bison_register_toolchains()