-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMODULE.bazel
More file actions
76 lines (67 loc) · 2.81 KB
/
MODULE.bazel
File metadata and controls
76 lines (67 loc) · 2.81 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
74
75
76
module(
name = "void-battery",
version = "0.0.0",
)
bazel_dep(name = "toolchains_chromium", version = "0.0.1")
bazel_dep(name = "rules_cc", version = "0.2.14")
bazel_dep(name = "libsodium", version = "1.0.19")
bazel_dep(name = "simde", version = "0.8.2")
bazel_dep(name = "rules_go", version = "0.60.0")
bazel_dep(name = "gazelle", version = "0.47.0")
bazel_dep(name = "ooz", version = "0")
bazel_dep(name = "libunistring", version = "1.3")
bazel_dep(name = "rules_python", version = "1.9.0")
bazel_dep(name = "rules_pkg", version = "1.2.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "gamedata", version = "0")
git_override(
module_name = "toolchains_chromium",
remote = "https://github.com/google/toolchains_chromium.git",
commit = "1cc2c49e1e120e42349ad643dc3e09cda2f2fbcb",
)
git_override(
module_name = "ooz",
remote = "https://github.com/zao/ooz.git",
commit = "6307b387e45c6b2283d622d82d2713a38e25e503",
build_file = "//third_party:ooz.BUILD",
init_submodules = False,
patches = ["//third_party/patches:ooz_add_module.patch"],
patch_strip = 0,
)
archive_override(
module_name = "libunistring",
urls = ["https://mirrors.kernel.org/gnu/libunistring/libunistring-1.3.tar.gz"],
sha256 = "8ea8ccf86c09dd801c8cac19878e804e54f707cf69884371130d20bde68386b7",
strip_prefix = "libunistring-1.3",
build_file = "//third_party:libunistring.BUILD",
patches = ["//third_party/patches:libunistring_bazel.patch"],
patch_strip = 1,
patch_cmds = [
# Generate public headers from .in.h templates.
# All @...@ substitutions are DLL_VARIABLE markers, empty on Linux.
"for f in lib/unistr.in.h lib/unicase.in.h lib/unitypes.in.h lib/uninorm.in.h lib/unictype.in.h lib/unistring/woe32dll.in.h; do sed -e 's/@HAVE_UNISTRING_WOE32DLL_H@/0/g' -e 's/@[A-Za-z0-9_]*@//g' \"$f\" > \"${f%.in.h}.h\"; done",
# Generate unistring/stdint.h (just wraps system <stdint.h>).
"echo '#include <stdint.h>' > lib/unistring/stdint.h",
# special-casing.in.h is identical to special-casing.h for our purposes.
"cp lib/unicase/special-casing.in.h lib/unicase/special-casing.h",
],
)
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//patcher:go.mod")
use_repo(
go_deps,
"com_github_google_go_cmp",
"com_github_pierrec_lz4_v4",
"com_github_spf13_pflag",
"org_golang_x_text",
)
local_path_override(
module_name = "gamedata",
path = "third_party/empty_gamedata",
)
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.12")
chromium = use_extension("@toolchains_chromium//:extensions.bzl", "chromium")
chromium.toolchain()
use_repo(chromium, "chromium_toolchain")
register_toolchains("@chromium_toolchain//:all")