xref: /aosp_15_r20/external/skia/bazel/deps.bzl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1"""
2This file is auto-generated from //bazel/deps_parser
3DO NOT MODIFY BY HAND.
4Instead, do:
5    bazel run //bazel/deps_parser
6"""
7
8load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
9load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
10load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
11load("//bazel:download_config_files.bzl", "download_config_files")
12load("//bazel:gcs_mirror.bzl", "gcs_mirror_url")
13
14def c_plus_plus_deps(ws = "@skia"):
15    """A list of native Bazel git rules to download third party git repositories
16
17       These are in the order they appear in //DEPS.
18        https://bazel.build/rules/lib/repo/git
19
20    Args:
21      ws: The name of the Skia Bazel workspace. The default, "@", may be when used from within the
22          Skia workspace.
23    """
24    git_repository(
25        name = "brotli",
26        commit = "6d03dfbedda1615c4cba1211f8d81735575209c8",
27        remote = "https://skia.googlesource.com/external/github.com/google/brotli.git",
28    )
29
30    new_git_repository(
31        name = "dawn",
32        build_file = ws + "//bazel/external/dawn:BUILD.bazel",
33        commit = "22a8762fea90d2d9fbfc592d2bf2a438b66f22f4",
34        remote = "https://dawn.googlesource.com/dawn.git",
35    )
36
37    git_repository(
38        name = "abseil_cpp",
39        commit = "65a55c2ba891f6d2492477707f4a2e327a0b40dc",
40        remote = "https://skia.googlesource.com/external/github.com/abseil/abseil-cpp.git",
41    )
42
43    new_git_repository(
44        name = "delaunator",
45        build_file = ws + "//bazel/external/delaunator:BUILD.bazel",
46        commit = "98305ef6c4e862f7d48df9cc647b690d796fec68",
47        remote = "https://github.com/skia-dev/delaunator-cpp",
48    )
49
50    new_git_repository(
51        name = "dng_sdk",
52        build_file = ws + "//bazel/external/dng_sdk:BUILD.bazel",
53        commit = "c8d0c9b1d16bfda56f15165d39e0ffa360a11123",
54        remote = "https://android.googlesource.com/platform/external/dng_sdk.git",
55    )
56
57    new_git_repository(
58        name = "expat",
59        build_file = ws + "//bazel/external/expat:BUILD.bazel",
60        commit = "624da0f593bb8d7e146b9f42b06d8e6c80d032a3",
61        remote = "https://chromium.googlesource.com/external/github.com/libexpat/libexpat.git",
62    )
63
64    new_git_repository(
65        name = "freetype",
66        build_file = ws + "//bazel/external/freetype:BUILD.bazel",
67        commit = "83af801b552111e37d9466a887e1783a0fb5f196",
68        remote = "https://chromium.googlesource.com/chromium/src/third_party/freetype2.git",
69    )
70
71    new_git_repository(
72        name = "harfbuzz",
73        build_file = ws + "//bazel/external/harfbuzz:BUILD.bazel",
74        commit = "a070f9ebbe88dc71b248af9731dd49ec93f4e6e6",
75        remote = "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git",
76    )
77
78    git_repository(
79        name = "highway",
80        commit = "424360251cdcfc314cfc528f53c872ecd63af0f0",
81        remote = "https://chromium.googlesource.com/external/github.com/google/highway.git",
82    )
83
84    new_git_repository(
85        name = "icu",
86        build_file = ws + "//bazel/external/icu:BUILD.bazel",
87        commit = "364118a1d9da24bb5b770ac3d762ac144d6da5a4",
88        remote = "https://chromium.googlesource.com/chromium/deps/icu.git",
89        patch_cmds = [
90            "rm source/i18n/BUILD.bazel",
91            "rm source/common/BUILD.bazel",
92            "rm source/stubdata/BUILD.bazel",
93        ],
94        patch_cmds_win = [
95            "del source/i18n/BUILD.bazel",
96            "del source/common/BUILD.bazel",
97            "del source/stubdata/BUILD.bazel",
98        ],
99    )
100
101    new_git_repository(
102        name = "icu4x",
103        build_file = ws + "//bazel/external/icu4x:BUILD.bazel",
104        commit = "bcf4f7198d4dc5f3127e84a6ca657c88e7d07a13",
105        remote = "https://chromium.googlesource.com/external/github.com/unicode-org/icu4x.git",
106    )
107
108    new_git_repository(
109        name = "imgui",
110        build_file = ws + "//bazel/external/imgui:BUILD.bazel",
111        commit = "55d35d8387c15bf0cfd71861df67af8cfbda7456",
112        remote = "https://skia.googlesource.com/external/github.com/ocornut/imgui.git",
113    )
114
115    new_git_repository(
116        name = "libavif",
117        build_file = ws + "//bazel/external/libavif:BUILD.bazel",
118        commit = "55aab4ac0607ab651055d354d64c4615cf3d8000",
119        remote = "https://skia.googlesource.com/external/github.com/AOMediaCodec/libavif.git",
120    )
121
122    new_git_repository(
123        name = "libgav1",
124        build_file = ws + "//bazel/external/libgav1:BUILD.bazel",
125        commit = "5cf722e659014ebaf2f573a6dd935116d36eadf1",
126        remote = "https://chromium.googlesource.com/codecs/libgav1.git",
127    )
128
129    new_git_repository(
130        name = "libjpeg_turbo",
131        build_file = ws + "//bazel/external/libjpeg_turbo:BUILD.bazel",
132        commit = "ccfbe1c82a3b6dbe8647ceb36a3f9ee711fba3cf",
133        remote = "https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git",
134    )
135
136    new_git_repository(
137        name = "libjxl",
138        build_file = ws + "//bazel/external/libjxl:BUILD.bazel",
139        commit = "a205468bc5d3a353fb15dae2398a101dff52f2d3",
140        remote = "https://chromium.googlesource.com/external/gitlab.com/wg1/jpeg-xl.git",
141    )
142
143    new_git_repository(
144        name = "libpng",
145        build_file = ws + "//bazel/external/libpng:BUILD.bazel",
146        commit = "ed217e3e601d8e462f7fd1e04bed43ac42212429",
147        remote = "https://skia.googlesource.com/third_party/libpng.git",
148    )
149
150    new_git_repository(
151        name = "libwebp",
152        build_file = ws + "//bazel/external/libwebp:BUILD.bazel",
153        commit = "845d5476a866141ba35ac133f856fa62f0b7445f",
154        remote = "https://chromium.googlesource.com/webm/libwebp.git",
155    )
156
157    new_git_repository(
158        name = "libyuv",
159        build_file = ws + "//bazel/external/libyuv:BUILD.bazel",
160        commit = "d248929c059ff7629a85333699717d7a677d8d96",
161        remote = "https://chromium.googlesource.com/libyuv/libyuv.git",
162    )
163
164    new_git_repository(
165        name = "perfetto",
166        build_file = ws + "//bazel/external/perfetto:BUILD.bazel",
167        commit = "93885509be1c9240bc55fa515ceb34811e54a394",
168        remote = "https://android.googlesource.com/platform/external/perfetto",
169    )
170
171    new_git_repository(
172        name = "piex",
173        build_file = ws + "//bazel/external/piex:BUILD.bazel",
174        commit = "bb217acdca1cc0c16b704669dd6f91a1b509c406",
175        remote = "https://android.googlesource.com/platform/external/piex.git",
176    )
177
178    new_git_repository(
179        name = "vulkanmemoryallocator",
180        build_file = ws + "//bazel/external/vulkanmemoryallocator:BUILD.bazel",
181        commit = "a6bfc237255a6bac1513f7c1ebde6d8aed6b5191",
182        remote = "https://chromium.googlesource.com/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator",
183    )
184
185    new_git_repository(
186        name = "spirv_cross",
187        build_file = ws + "//bazel/external/spirv_cross:BUILD.bazel",
188        commit = "b8fcf307f1f347089e3c46eb4451d27f32ebc8d3",
189        remote = "https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Cross",
190    )
191
192    git_repository(
193        name = "spirv_headers",
194        commit = "3f17b2af6784bfa2c5aa5dbb8e0e74a607dd8b3b",
195        remote = "https://skia.googlesource.com/external/github.com/KhronosGroup/SPIRV-Headers.git",
196    )
197
198    git_repository(
199        name = "spirv_tools",
200        commit = "4d2f0b40bfe290dea6c6904dafdf7fd8328ba346",
201        remote = "https://skia.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git",
202    )
203
204    new_git_repository(
205        name = "vello",
206        build_file = ws + "//bazel/external/vello:BUILD.bazel",
207        commit = "3ee3bea02164c5a816fe6c16ef4e3a810edb7620",
208        remote = "https://skia.googlesource.com/external/github.com/linebender/vello.git",
209    )
210
211    new_git_repository(
212        name = "vulkan_headers",
213        build_file = ws + "//bazel/external/vulkan_headers:BUILD.bazel",
214        commit = "6a74a7d65cafa19e38ec116651436cce6efd5b2e",
215        remote = "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers",
216    )
217
218    new_git_repository(
219        name = "vulkan_tools",
220        build_file = ws + "//bazel/external/vulkan_tools:BUILD.bazel",
221        commit = "2744de9936755fea6912d47e7a0a8857d8a4fdee",
222        remote = "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Tools",
223    )
224
225    new_git_repository(
226        name = "vulkan_utility_libraries",
227        build_file = ws + "//bazel/external/vulkan_utility_libraries:BUILD.bazel",
228        commit = "5a72ae0208f1bf116af74ef31cc6f6c7ff4acec6",
229        remote = "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Utility-Libraries",
230    )
231
232    new_git_repository(
233        name = "wuffs",
234        build_file = ws + "//bazel/external/wuffs:BUILD.bazel",
235        commit = "e3f919ccfe3ef542cfc983a82146070258fb57f8",
236        remote = "https://skia.googlesource.com/external/github.com/google/wuffs-mirror-release-c.git",
237    )
238
239    new_git_repository(
240        name = "zlib_skia",
241        build_file = ws + "//bazel/external/zlib_skia:BUILD.bazel",
242        commit = "646b7f569718921d7d4b5b8e22572ff6c76f2596",
243        remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib",
244    )
245
246def bazel_deps():
247    maybe(
248        http_archive,
249        name = "bazel_skylib",
250        sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
251        urls = gcs_mirror_url(
252            sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
253            url = "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
254        ),
255    )
256
257    maybe(
258        http_archive,
259        name = "bazel_toolchains",
260        sha256 = "e52789d4e89c3e2dc0e3446a9684626a626b6bec3fde787d70bae37c6ebcc47f",
261        strip_prefix = "bazel-toolchains-5.1.1",
262        urls = gcs_mirror_url(
263            sha256 = "e52789d4e89c3e2dc0e3446a9684626a626b6bec3fde787d70bae37c6ebcc47f",
264            url = "https://github.com/bazelbuild/bazel-toolchains/archive/refs/tags/v5.1.1.tar.gz",
265        ),
266    )
267
268def header_based_configs():
269    skia_revision = "d211141c45c9171437fa8e6e07989edb5bffa17a"
270    maybe(
271        download_config_files,
272        name = "expat_config",
273        skia_revision = skia_revision,
274        files = {
275            "BUILD.bazel": "third_party/expat/include/BUILD.bazel",
276            "expat_config/expat_config.h": "third_party/expat/include/expat_config/expat_config.h",
277        },
278    )
279    maybe(
280        download_config_files,
281        name = "freetype_config",
282        skia_revision = skia_revision,
283        files = {
284            "BUILD.bazel": "third_party/freetype2/include/BUILD.bazel",
285            "freetype-android/freetype/config/ftmodule.h": "third_party/freetype2/include/freetype-android/freetype/config/ftmodule.h",
286            "freetype-android/freetype/config/ftoption.h": "third_party/freetype2/include/freetype-android/freetype/config/ftoption.h",
287            "freetype-no-type1/freetype/config/ftmodule.h": "third_party/freetype2/include/freetype-no-type1/freetype/config/ftmodule.h",
288            "freetype-no-type1/freetype/config/ftoption.h": "third_party/freetype2/include/freetype-no-type1/freetype/config/ftoption.h",
289        },
290    )
291    maybe(
292        download_config_files,
293        name = "harfbuzz_config",
294        skia_revision = skia_revision,
295        files = {
296            "BUILD.bazel": "third_party/harfbuzz/BUILD.bazel",
297            "config-override.h": "third_party/harfbuzz/config-override.h",
298        },
299    )
300    maybe(
301        download_config_files,
302        name = "icu_utils",
303        skia_revision = skia_revision,
304        files = {
305            "BUILD.bazel": "third_party/icu/BUILD.bazel",
306            "SkLoadICU.cpp": "third_party/icu/SkLoadICU.cpp",
307            "SkLoadICU.h": "third_party/icu/SkLoadICU.h",
308            "make_data_cpp.py": "third_party/icu/make_data_cpp.py",
309        },
310    )
311