Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
121 lines (102 loc) · 4.35 KB
/
Copy pathMODULE.bazel
File metadata and controls
121 lines (102 loc) · 4.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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
module(
name = "ift_encoder",
repo_name = "ift_encoder",
)
# Bazel Modules
bazel_dep(name = "rules_cc", version = "0.2.16")
bazel_dep(name = "rules_python", version = "1.8.0")
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
bazel_dep(name = "abseil-cpp", version = "20260107.0")
bazel_dep(name = "protobuf", version = "33.4")
bazel_dep(name = "riegeli", version = "0.0.0-20250822-9f2744d")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_rust", version = "0.68.1")
bazel_dep(name = "glib", version = "2.82.2.bcr.7")
bazel_dep(name = "brotli", version = "1.2.0")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
# Frequency Data
bazel_dep(name = "ift_encoder_data", version = "git")
git_override(module_name = "ift_encoder_data", remote = "https://github.com/w3c/ift-encoder-data.git", commit = "4d2f4f175c65e01dcb7ef2a8a326e9252e5831d6")
# Non Bazel Modules
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
# Unicode Data
http_file(
name = "unicode_data",
integrity = "sha256-Lh78HctZxXXu31zK5g+VIp9wbubQMYNSR9hDwR2WRww=",
urls = ["https://www.unicode.org/Public/17.0.0/ucd/UnicodeData.txt"],
)
http_file(
name = "derived_normalization_props",
integrity = "sha256-cf1qIGosDN1B/ra39laqMQkdtF6c7ckmmF1xg5f55Ig=",
urls = ["https://www.unicode.org/Public/17.0.0/ucd/DerivedNormalizationProps.txt"],
)
# WOFF2 Encoder/Decoder
http_archive(
name = "woff2",
build_file = "//third_party:woff2.BUILD",
sha256 = "730b7f9de381c7b5b09c81841604fa10c5dd67628822fa377b776ab7929fe18c",
strip_prefix = "woff2-c8c0d339131e8f1889ae8aac0075913d98d9a722",
url = "https://github.com/google/woff2/archive/c8c0d339131e8f1889ae8aac0075913d98d9a722.zip",
)
# Harfbuzz
http_archive(
name = "harfbuzz",
build_file = "//third_party:harfbuzz.BUILD",
strip_prefix = "harfbuzz-c5eda499b4bcc310095b19faec99c9749dabdb52",
integrity = "sha256-4yNdOLuwFK+A9zea2Ykvo1EZbfb+On36/7k7LaXFZYg=",
urls = ["https://github.com/harfbuzz/harfbuzz/archive/c5eda499b4bcc310095b19faec99c9749dabdb52.zip"],
)
# Base 32 Hex
http_archive(
name = "cppcodec",
build_file = "//third_party:cppcodec.BUILD",
integrity = "sha256-abpzBt/WJEKA0os255vhquwnQd2njfw6RryLFWsMRU0=",
strip_prefix = "cppcodec-8019b8b580f8573c33c50372baec7039dfe5a8ce",
url = "https://github.com/tplgy/cppcodec/archive/8019b8b580f8573c33c50372baec7039dfe5a8ce.zip",
)
# IFT Specification - for Feature Registry
http_archive(
name = "ift_spec",
build_file = "//third_party:ift_spec.BUILD",
sha256 = "6c634d76b49ff3a66bd908f81a892517b83c6c356be0bdf2977e66acd51f8498",
strip_prefix = "IFT-1bb61e0e69860143ffc7f4daa8e9f109fac746dd",
urls = ["https://github.com/w3c/IFT/archive/1bb61e0e69860143ffc7f4daa8e9f109fac746dd.zip"],
)
# Fontations
http_archive(
name = "fontations",
urls = ["https://github.com/googlefonts/fontations/archive/f95a2db5b2367ddbe752884c39e13b62a2ea39bd.zip"],
strip_prefix = "fontations-f95a2db5b2367ddbe752884c39e13b62a2ea39bd",
build_file = "//third_party:fontations.BUILD",
integrity = "sha256-ge23kFnixCUiaDdsgf2SZ1v9sqPdduEjss5rjrgUbUs=",
)
# Rust Deps Config
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
crate.from_cargo(
name = "fontations_deps",
cargo_lockfile = "//fontations:Cargo.lock",
manifests = [
"@fontations//:Cargo.toml",
"@fontations//:fauntlet/Cargo.toml",
"@fontations//:font-codegen/Cargo.toml",
"@fontations//:font-test-data/Cargo.toml",
"@fontations//:font-types/Cargo.toml",
"@fontations//:fuzz/Cargo.toml",
"@fontations//:incremental-font-transfer/Cargo.toml",
"@fontations//:skera/Cargo.toml",
"@fontations//:otexplorer/Cargo.toml",
"@fontations//:read-fonts/Cargo.toml",
"@fontations//:shared-brotli-patch-decoder/Cargo.toml",
"@fontations//:skrifa/Cargo.toml",
"@fontations//:write-fonts/Cargo.toml",
],
)
use_repo(crate, "fontations_deps")
# Hedron - for generating compiles_commands.json
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
commit = "f5fbd4cee671d8d908f37c83abaf70fba5928fc7",
)