Skip to content

Commit cfbd691

Browse files
committed
feat: add build rules for 3 separate versions of ICU
1 parent 8d07bed commit cfbd691

File tree

10 files changed

+3963
-25
lines changed

10 files changed

+3963
-25
lines changed

WORKSPACE

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ http_archive(
1212
patches = [
1313
# ICU has a nascent bazel build, which messes up our build based on
1414
# the configure_make rule from rules_foreign_cc. So we remove them.
15-
"//third_party/icu_74:remove-build-files.patch",
15+
"//third_party/icu_74:0001-fix-removes-BUILD-files.patch",
1616
],
1717
patch_args = [
1818
"-p1",
@@ -21,3 +21,39 @@ http_archive(
2121
"--remove-empty-files",
2222
]
2323
)
24+
25+
http_archive(
26+
name = "icu_73",
27+
strip_prefix = "icu-release-73-1",
28+
integrity = "sha256-57a1QMiB6D0kC0oSty+8l+9frTDY0A8u9nS6GOO/NkA=",
29+
build_file = "//third_party/icu_73:icu.BUILD.bazel",
30+
urls = [
31+
"https://github.com/unicode-org/icu/archive/refs/tags/release-73-1.tar.gz",
32+
"https://github.com/unicode-org/icu/archive/refs/tags/release-73-1.zip",
33+
],
34+
patches = [
35+
"//third_party/icu_73:0001-fix-removes-BUILD-files.patch",
36+
],
37+
patch_args = [
38+
"-p1",
39+
"--remove-empty-files",
40+
]
41+
)
42+
43+
http_archive(
44+
name = "icu_72",
45+
strip_prefix = "icu-release-72-1",
46+
integrity = "sha256-Q8utYo2Y83o/lfbDRXn5FE70veYCSPpgBKTwBtdIfmk=",
47+
build_file = "//third_party/icu_72:icu.BUILD.bazel",
48+
urls = [
49+
"https://github.com/unicode-org/icu/archive/refs/tags/release-72-1.tar.gz",
50+
"https://github.com/unicode-org/icu/archive/refs/tags/release-72-1.zip",
51+
],
52+
patches = [
53+
"//third_party/icu_72:0001-fix-removes-BUILD-files.patch",
54+
],
55+
patch_args = [
56+
"-p1",
57+
"--remove-empty-files",
58+
]
59+
)

third_party/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
# ICU patches
3+
4+
All ICU versions have been edited to remove existing bazel's BUILD files.
5+
This is because BUILD files will affect how `rules_foreign_cc` builds.

0 commit comments

Comments
 (0)