• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "7061d4b9662c33eed9646f54488fac370b7b3014",
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 = "dng_sdk",
45        build_file = ws + "//bazel/external/dng_sdk:BUILD.bazel",
46        commit = "c8d0c9b1d16bfda56f15165d39e0ffa360a11123",
47        remote = "https://android.googlesource.com/platform/external/dng_sdk.git",
48    )
49
50    new_git_repository(
51        name = "expat",
52        build_file = ws + "//bazel/external/expat:BUILD.bazel",
53        commit = "441f98d02deafd9b090aea568282b28f66a50e36",
54        remote = "https://chromium.googlesource.com/external/github.com/libexpat/libexpat.git",
55    )
56
57    new_git_repository(
58        name = "freetype",
59        build_file = ws + "//bazel/external/freetype:BUILD.bazel",
60        commit = "a46424228f0998a72c715f32e18dca8a7a764c1f",
61        remote = "https://chromium.googlesource.com/chromium/src/third_party/freetype2.git",
62    )
63
64    new_git_repository(
65        name = "harfbuzz",
66        build_file = ws + "//bazel/external/harfbuzz:BUILD.bazel",
67        commit = "b74a7ecc93e283d059df51ee4f46961a782bcdb8",
68        remote = "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git",
69    )
70
71    git_repository(
72        name = "highway",
73        commit = "424360251cdcfc314cfc528f53c872ecd63af0f0",
74        remote = "https://chromium.googlesource.com/external/github.com/google/highway.git",
75    )
76
77    new_git_repository(
78        name = "icu",
79        build_file = ws + "//bazel/external/icu:BUILD.bazel",
80        commit = "364118a1d9da24bb5b770ac3d762ac144d6da5a4",
81        remote = "https://chromium.googlesource.com/chromium/deps/icu.git",
82        patch_cmds = [
83            "rm source/i18n/BUILD.bazel",
84            "rm source/common/BUILD.bazel",
85            "rm source/stubdata/BUILD.bazel",
86        ],
87    )
88
89    new_git_repository(
90        name = "icu4x",
91        build_file = ws + "//bazel/external/icu4x:BUILD.bazel",
92        commit = "bcf4f7198d4dc5f3127e84a6ca657c88e7d07a13",
93        remote = "https://chromium.googlesource.com/external/github.com/unicode-org/icu4x.git",
94    )
95
96    new_git_repository(
97        name = "imgui",
98        build_file = ws + "//bazel/external/imgui:BUILD.bazel",
99        commit = "55d35d8387c15bf0cfd71861df67af8cfbda7456",
100        remote = "https://skia.googlesource.com/external/github.com/ocornut/imgui.git",
101    )
102
103    new_git_repository(
104        name = "libavif",
105        build_file = ws + "//bazel/external/libavif:BUILD.bazel",
106        commit = "55aab4ac0607ab651055d354d64c4615cf3d8000",
107        remote = "https://skia.googlesource.com/external/github.com/AOMediaCodec/libavif.git",
108    )
109
110    new_git_repository(
111        name = "libgav1",
112        build_file = ws + "//bazel/external/libgav1:BUILD.bazel",
113        commit = "5cf722e659014ebaf2f573a6dd935116d36eadf1",
114        remote = "https://chromium.googlesource.com/codecs/libgav1.git",
115    )
116
117    new_git_repository(
118        name = "libjpeg_turbo",
119        build_file = ws + "//bazel/external/libjpeg_turbo:BUILD.bazel",
120        commit = "ccfbe1c82a3b6dbe8647ceb36a3f9ee711fba3cf",
121        remote = "https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git",
122    )
123
124    new_git_repository(
125        name = "libjxl",
126        build_file = ws + "//bazel/external/libjxl:BUILD.bazel",
127        commit = "a205468bc5d3a353fb15dae2398a101dff52f2d3",
128        remote = "https://chromium.googlesource.com/external/gitlab.com/wg1/jpeg-xl.git",
129    )
130
131    new_git_repository(
132        name = "libpng",
133        build_file = ws + "//bazel/external/libpng:BUILD.bazel",
134        commit = "ed217e3e601d8e462f7fd1e04bed43ac42212429",
135        remote = "https://skia.googlesource.com/third_party/libpng.git",
136    )
137
138    new_git_repository(
139        name = "libwebp",
140        build_file = ws + "//bazel/external/libwebp:BUILD.bazel",
141        commit = "845d5476a866141ba35ac133f856fa62f0b7445f",
142        remote = "https://chromium.googlesource.com/webm/libwebp.git",
143    )
144
145    new_git_repository(
146        name = "libyuv",
147        build_file = ws + "//bazel/external/libyuv:BUILD.bazel",
148        commit = "d248929c059ff7629a85333699717d7a677d8d96",
149        remote = "https://chromium.googlesource.com/libyuv/libyuv.git",
150    )
151
152    new_git_repository(
153        name = "perfetto",
154        build_file = ws + "//bazel/external/perfetto:BUILD.bazel",
155        commit = "93885509be1c9240bc55fa515ceb34811e54a394",
156        remote = "https://android.googlesource.com/platform/external/perfetto",
157    )
158
159    new_git_repository(
160        name = "piex",
161        build_file = ws + "//bazel/external/piex:BUILD.bazel",
162        commit = "bb217acdca1cc0c16b704669dd6f91a1b509c406",
163        remote = "https://android.googlesource.com/platform/external/piex.git",
164    )
165
166    new_git_repository(
167        name = "vulkanmemoryallocator",
168        build_file = ws + "//bazel/external/vulkanmemoryallocator:BUILD.bazel",
169        commit = "a6bfc237255a6bac1513f7c1ebde6d8aed6b5191",
170        remote = "https://chromium.googlesource.com/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator",
171    )
172
173    new_git_repository(
174        name = "spirv_cross",
175        build_file = ws + "//bazel/external/spirv_cross:BUILD.bazel",
176        commit = "b8fcf307f1f347089e3c46eb4451d27f32ebc8d3",
177        remote = "https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Cross",
178    )
179
180    git_repository(
181        name = "spirv_headers",
182        commit = "2acb319af38d43be3ea76bfabf3998e5281d8d12",
183        remote = "https://skia.googlesource.com/external/github.com/KhronosGroup/SPIRV-Headers.git",
184    )
185
186    git_repository(
187        name = "spirv_tools",
188        commit = "bc28ac7c195f59b14535edec8472d97fd32a91ad",
189        remote = "https://skia.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git",
190    )
191
192    new_git_repository(
193        name = "vello",
194        build_file = ws + "//bazel/external/vello:BUILD.bazel",
195        commit = "6938a2893d6a2ba658709d1d04720f6c6033700f",
196        remote = "https://skia.googlesource.com/external/github.com/linebender/vello.git",
197    )
198
199    new_git_repository(
200        name = "vulkan_headers",
201        build_file = ws + "//bazel/external/vulkan_headers:BUILD.bazel",
202        commit = "8f034f6b48fd2d30f711396a021e1dc050c8941c",
203        remote = "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers",
204    )
205
206    new_git_repository(
207        name = "vulkan_tools",
208        build_file = ws + "//bazel/external/vulkan_tools:BUILD.bazel",
209        commit = "345af476e583366352e014ee8e43fc5ddf421ab9",
210        remote = "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Tools",
211    )
212
213    new_git_repository(
214        name = "vulkan_utility_libraries",
215        build_file = ws + "//bazel/external/vulkan_utility_libraries:BUILD.bazel",
216        commit = "1b07de9a3a174b853833f7f87a824f20604266b9",
217        remote = "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Utility-Libraries",
218    )
219
220    new_git_repository(
221        name = "wuffs",
222        build_file = ws + "//bazel/external/wuffs:BUILD.bazel",
223        commit = "e3f919ccfe3ef542cfc983a82146070258fb57f8",
224        remote = "https://skia.googlesource.com/external/github.com/google/wuffs-mirror-release-c.git",
225    )
226
227    new_git_repository(
228        name = "zlib_skia",
229        build_file = ws + "//bazel/external/zlib_skia:BUILD.bazel",
230        commit = "646b7f569718921d7d4b5b8e22572ff6c76f2596",
231        remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib",
232    )
233
234def bazel_deps():
235    maybe(
236        http_archive,
237        name = "bazel_skylib",
238        sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
239        urls = gcs_mirror_url(
240            sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
241            url = "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
242        ),
243    )
244
245    maybe(
246        http_archive,
247        name = "bazel_toolchains",
248        sha256 = "e52789d4e89c3e2dc0e3446a9684626a626b6bec3fde787d70bae37c6ebcc47f",
249        strip_prefix = "bazel-toolchains-5.1.1",
250        urls = gcs_mirror_url(
251            sha256 = "e52789d4e89c3e2dc0e3446a9684626a626b6bec3fde787d70bae37c6ebcc47f",
252            url = "https://github.com/bazelbuild/bazel-toolchains/archive/refs/tags/v5.1.1.tar.gz",
253        ),
254    )
255
256def header_based_configs():
257    maybe(
258        download_config_files,
259        name = "expat_config",
260        skia_revision = "7b730016006e6b66d24a6f94eefe8bec00ac1674",
261        files = {
262            "BUILD.bazel": "bazel/external/expat/config/BUILD.bazel",
263            "expat_config.h": "third_party/expat/include/expat_config/expat_config.h",
264        },
265    )
266    maybe(
267        download_config_files,
268        name = "freetype_config",
269        skia_revision = "7b730016006e6b66d24a6f94eefe8bec00ac1674",
270        files = {
271            "BUILD.bazel": "bazel/external/freetype/config/BUILD.bazel",
272            "android/freetype/config/ftmodule.h": "third_party/freetype2/include/freetype-android/freetype/config/ftmodule.h",
273            "android/freetype/config/ftoption.h": "third_party/freetype2/include/freetype-android/freetype/config/ftoption.h",
274            "no-type1/freetype/config/ftmodule.h": "third_party/freetype2/include/freetype-no-type1/freetype/config/ftmodule.h",
275            "no-type1/freetype/config/ftoption.h": "third_party/freetype2/include/freetype-no-type1/freetype/config/ftoption.h",
276        },
277    )
278    maybe(
279        download_config_files,
280        name = "harfbuzz_config",
281        skia_revision = "7b730016006e6b66d24a6f94eefe8bec00ac1674",
282        files = {
283            "BUILD.bazel": "bazel/external/harfbuzz/config/BUILD.bazel",
284            "config-override.h": "third_party/harfbuzz/config-override.h",
285        },
286    )
287    maybe(
288        download_config_files,
289        name = "icu_utils",
290        skia_revision = "7b730016006e6b66d24a6f94eefe8bec00ac1674",
291        files = {
292            "BUILD.bazel": "bazel/external/icu/utils/BUILD.bazel",
293            "icu/SkLoadICU.cpp": "third_party/icu/SkLoadICU.cpp",
294            "icu/SkLoadICU.h": "third_party/icu/SkLoadICU.h",
295            "icu/make_data_cpp.py": "third_party/icu/make_data_cpp.py",
296        },
297    )
298