| # Copyright 2021 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # Workspace definition for Bazel SDK workspace rules. |
| |
| workspace(name = "fuchsia_workspace") |
| |
| load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| # Stardoc documentation generator |
| # https://github.com/bazelbuild/stardoc |
| |
| git_repository( |
| name = "io_bazel_stardoc", |
| commit = "4378e9b6bb2831de7143580594782f538f461180", |
| remote = "https://github.com/bazelbuild/stardoc.git", |
| shallow_since = "1570829166 -0400", |
| ) |
| |
| load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories") |
| |
| stardoc_repositories() |
| |
| # Bazel Skylib; Starlark utilities |
| # https://github.com/bazelbuild/bazel-skylib |
| |
| http_archive( |
| name = "bazel_skylib", |
| sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", |
| urls = [ |
| "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", |
| ], |
| ) |
| |
| load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| |
| bazel_skylib_workspace() |
| |
| load( |
| "//fuchsia:deps.bzl", |
| "fuchsia_sdk_repository", |
| "rules_fuchsia_deps", |
| ) |
| |
| rules_fuchsia_deps() |
| |
| fuchsia_sdk_repository( |
| name = "fuchsia_sdk", |
| ) |
| |
| register_toolchains("@fuchsia_sdk//:fuchsia_toolchain_sdk") |