forked from voidstarHQ/voidstar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
103 lines (88 loc) · 3.22 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
workspace(name = "voidstar")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_upgradable",
strip_prefix = "bazel_upgradable-0.2.1",
url = "https://github.com/fenollp/bazel_upgradable/archive/0.2.1.zip",
)
load("@bazel_upgradable//:rule.bzl", "upgradable_repository")
upgradable_repository(
name = "rules_cc",
branch = "main",
remote = "git://github.com/bazelbuild/rules_cc.git",
)
upgradable_repository(
name = "khronos_opengl_registry",
branch = "main",
build_file = "@//third_party:gl.BUILD",
remote = "git://github.com/KhronosGroup/OpenGL-Registry.git",
)
upgradable_repository(
name = "glfw",
branch = "3.3-stable",
build_file = "@//third_party:glfw3.BUILD",
remote = "git://github.com/glfw/glfw.git",
)
upgradable_repository(
name = "glfw_osx",
build_file = "@//third_party:glfw3_osx.BUILD",
release = "glfw-{tag_digits}.bin.MACOS.zip",
remote = "git://github.com/glfw/glfw.git",
strip_prefix = "glfw-{tag_digits}.bin.MACOS",
tag = "~3",
)
upgradable_repository(
name = "glm",
build_file = "@//third_party:glm.BUILD",
remote = "git://github.com/g-truc/glm.git",
)
glew_version_constraint = "<=2"
upgradable_repository(
name = "glew",
build_file = "@//third_party:glew.BUILD",
release = "{tag}.tgz",
remote = "git://github.com/nigels-com/glew.git",
strip_prefix = "glew-{tag_digits}",
tag = glew_version_constraint,
type = "tar.gz",
)
upgradable_repository(
name = "glew_win64",
build_file = "@//third_party:glew_win64.BUILD",
release = "{tag}-win32.zip",
remote = "git://github.com/nigels-com/glew.git",
strip_prefix = "glew-{tag_digits}",
tag = glew_version_constraint,
)
upgradable_repository(
name = "mman_win32",
build_file = "@//third_party:mman_win32.BUILD",
remote = "git://github.com/klauspost/mman-win32.git",
)
upgradable_repository(
name = "getopt",
build_file = "@//third_party:getopt.BUILD",
remote = "git://github.com/skandhurkat/Getopt-for-Visual-Studio.git",
)
# From https://github.com/fmtlib/fmt/blob/1b193e7b3716f57d64fa2f98275eb1395fea4eff/support/bazel/README.md
upgradable_repository(
name = "fmt",
patch_cmds = [
"mv support/bazel/.bazelrc .bazelrc",
"mv support/bazel/.bazelversion .bazelversion",
"mv support/bazel/BUILD.bazel BUILD.bazel",
"mv support/bazel/WORKSPACE.bazel WORKSPACE.bazel",
],
# Windows-related patch commands are only needed in the case MSYS2 is not installed.
# More details about the installation process of MSYS2 on Windows systems can be found here:
# https://docs.bazel.build/versions/main/install-windows.html#installing-compilers-and-language-runtimes
# Even if MSYS2 is installed the Windows related patch commands can still be used.
patch_cmds_win = [
"Move-Item -Path support/bazel/.bazelrc -Destination .bazelrc",
"Move-Item -Path support/bazel/.bazelversion -Destination .bazelversion",
"Move-Item -Path support/bazel/BUILD.bazel -Destination BUILD.bazel",
"Move-Item -Path support/bazel/WORKSPACE.bazel -Destination WORKSPACE.bazel",
],
remote = "git://github.com/fmtlib/fmt.git",
tag = "~8",
)