blob: 36c7feddcbeb376c87468e4244f78cba2a0e48c7 [file] [log] [blame]
Kevin Lubick4d413042021-10-20 16:20:42 -04001workspace(name = "skia")
Mike Kleinc1cc1d82020-09-11 11:11:33 -05002
Kevin Lubick1f8c31b2021-11-08 15:26:09 -05003load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Kevin Lubick4d413042021-10-20 16:20:42 -04004load("//toolchain:build_toolchain.bzl", "build_cpp_toolchain")
5
Kevin Lubick1f8c31b2021-11-08 15:26:09 -05006# See https://github.com/emscripten-core/emsdk/tree/85d27a4a2a60d591613a305b14ae438c2bb3ce11/bazel#setup-instructions
7http_archive(
8 name = "emsdk",
9 sha256 = "457fa96d4d60867743df7f7e241c9852a3eb7fdbf3091eac7a5712ddc0a5221d",
10 strip_prefix = "emsdk-2.0.32/bazel",
11 url = "https://github.com/emscripten-core/emsdk/archive/refs/tags/2.0.32.tar.gz",
12)
13
14load("@emsdk//:deps.bzl", emsdk_deps = "deps")
15
16emsdk_deps()
17
18load("@emsdk//:emscripten_deps.bzl", emsdk_emscripten_deps = "emscripten_deps")
19
Kevin Lubick888d4ef2021-11-16 14:09:44 -050020# Use older version to work around https://github.com/emscripten-core/emscripten/issues/15528
21emsdk_emscripten_deps(emscripten_version = "2.0.13")
Kevin Lubick1f8c31b2021-11-08 15:26:09 -050022
Kevin Lubick4d413042021-10-20 16:20:42 -040023build_cpp_toolchain(
24 # Meant to run on amd64 linux and compile for amd64 linux using musl as the c library.
25 name = "clang_linux_amd64_musl",
26 # From https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz.sha256
27 clang_prefix = "clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-20.04/",
28 clang_sha256 = "2c2fb857af97f41a5032e9ecadf7f78d3eff389a5cd3c9ec620d24f134ceb3c8",
29 clang_url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz",
30 # From https://packages.debian.org/bullseye/amd64/musl-dev/download
31 musl_dev_sha256 = "b017792ad6ba3650b4889238c73cd19c1d6b0e39ca8319cdd3ad9e16374e614e",
32 musl_dev_url = "http://ftp.debian.org/debian/pool/main/m/musl/musl-dev_1.2.2-1_amd64.deb",
Mike Kleinc1cc1d82020-09-11 11:11:33 -050033)
Kevin Lubick1f8c31b2021-11-08 15:26:09 -050034
35http_archive(
36 name = "bazel_skylib",
37 sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
38 urls = [
39 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
40 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
41 ],
42)
43
44load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
45
46bazel_skylib_workspace()
Kevin Lubick888d4ef2021-11-16 14:09:44 -050047
48http_archive(
49 name = "rules_python",
50 sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332",
51 url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz",
52)