| workspace(name = "skia") |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| load("//toolchain:build_toolchain.bzl", "build_cpp_toolchain") |
| |
| # See https://github.com/emscripten-core/emsdk/tree/85d27a4a2a60d591613a305b14ae438c2bb3ce11/bazel#setup-instructions |
| http_archive( |
| name = "emsdk", |
| sha256 = "457fa96d4d60867743df7f7e241c9852a3eb7fdbf3091eac7a5712ddc0a5221d", |
| strip_prefix = "emsdk-2.0.32/bazel", |
| url = "https://github.com/emscripten-core/emsdk/archive/refs/tags/2.0.32.tar.gz", |
| ) |
| |
| load("@emsdk//:deps.bzl", emsdk_deps = "deps") |
| |
| emsdk_deps() |
| |
| load("@emsdk//:emscripten_deps.bzl", emsdk_emscripten_deps = "emscripten_deps") |
| |
| # Use older version to work around https://github.com/emscripten-core/emscripten/issues/15528 |
| emsdk_emscripten_deps(emscripten_version = "2.0.13") |
| |
| build_cpp_toolchain( |
| # Meant to run on amd64 linux and compile for amd64 linux using musl as the c library. |
| name = "clang_linux_amd64_musl", |
| # 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 |
| clang_prefix = "clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-20.04/", |
| clang_sha256 = "2c2fb857af97f41a5032e9ecadf7f78d3eff389a5cd3c9ec620d24f134ceb3c8", |
| 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", |
| # From https://packages.debian.org/bullseye/amd64/musl-dev/download |
| musl_dev_sha256 = "b017792ad6ba3650b4889238c73cd19c1d6b0e39ca8319cdd3ad9e16374e614e", |
| musl_dev_url = "http://ftp.debian.org/debian/pool/main/m/musl/musl-dev_1.2.2-1_amd64.deb", |
| ) |
| |
| http_archive( |
| name = "bazel_skylib", |
| sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", |
| urls = [ |
| "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", |
| ], |
| ) |
| |
| load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| |
| bazel_skylib_workspace() |
| |
| http_archive( |
| name = "rules_python", |
| sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332", |
| url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz", |
| ) |