-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathworkspace.bzl
More file actions
73 lines (66 loc) · 2.35 KB
/
workspace.bzl
File metadata and controls
73 lines (66 loc) · 2.35 KB
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
72
73
" Workspace setup for dependent repositories "
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
def krpc_core_workspace():
http_file(
name = "csharp_krpc_io_ports",
url = "https://github.com/krpc/krpc-io-ports/releases/download/v1.0.0/KRPC.IO.Ports.dll",
sha256 = "558b0c1649fbc44b518d9de8957fe30e7c9c42d73c62d63d165f6f136fab3ec5",
downloaded_file_path = "KRPC.IO.Ports.dll",
)
http_archive(
name = "csharp_protobuf_unity",
url = "https://www.nuget.org/api/v2/package/Google.Protobuf/3.10.1",
sha256 = "17eb7c37e702750d3aa53823571be7662a87a2111c6b2c844ba1c20641424084",
type = "zip",
build_file_content = "exports_files(['lib/net45/Google.Protobuf.dll'])",
)
http_archive(
name = "csharp_ndesk_options",
url = "https://www.nuget.org/api/v2/package/NDesk.Options/0.2.1",
sha256 = "0fa76d0ed1eb9fba757b0aa677903e1b8873735eec136a51dde24eda57d10c61",
type = "zip",
build_file_content = "exports_files(['lib/NDesk.Options.dll'])",
)
def krpc_core_prebuilt_protoc():
http_archive(
name = "prebuilt_protoc_linux",
build_file_content = """
filegroup(
name = "protoc",
srcs = ["bin/protoc"],
visibility = ["//visibility:public"],
)
""",
sha256 = "0c97a75c8f8fafc55323599053626a0a822e5b66299f6643a2b086f859b56afd",
urls = [
"https://github.com/google/protobuf/releases/download/v3.10.1/protoc-3.10.1-linux-x86_64.zip",
],
)
http_archive(
name = "prebuilt_protoc_osx",
build_file_content = """
filegroup(
name = "protoc",
srcs = ["bin/protoc"],
visibility = ["//visibility:public"],
)
""",
sha256 = "ee3f4051e55830596729efe48183218bdb44cf2f83b188460859bd63b2a09576",
urls = [
"https://github.com/google/protobuf/releases/download/v3.10.1/protoc-3.10.1-osx-x86_64.zip",
],
)
http_archive(
name = "prebuilt_protoc_windows",
build_file_content = """
filegroup(
name = "protoc",
srcs = ["bin/protoc.exe"],
visibility = ["//visibility:public"],
)
""",
sha256 = "964f055db26372e46d8232a09fe6d661de3ca1b82fbbc1ede33696b1e379a11b",
urls = [
"https://github.com/google/protobuf/releases/download/v3.10.1/protoc-3.10.1-win32.zip",
],
)