| # 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. |
| |
| local_repository( |
| name = "fuchsia_sdk", |
| path = "bazel-rules", |
| ) |
| |
| load("@fuchsia_sdk//build_defs:fuchsia_setup.bzl", "fuchsia_setup") |
| fuchsia_setup( |
| with_toolchain = True, |
| ) |
| |
| # Setup the rules imported from workstation. Eventually we should use only one set of rules. |
| local_repository( |
| name = "rules_fuchsia", |
| path = "sdk-integration/bazel_rules_fuchsia", |
| ) |
| |
| load("@rules_fuchsia//fuchsia:deps.bzl", "rules_fuchsia_deps") |
| rules_fuchsia_deps() |
| |
| |
| load( |
| "@rules_fuchsia//fuchsia:deps.bzl", |
| "fuchsia_sdk_repository", |
| ) |
| fuchsia_sdk_repository( |
| name = "fuchsia_sdk_from_workstation", |
| sha256 = { |
| "linux": "ffe0d1c48ddc300383f5b645ee0bd79229feccfd5f6c205e112fec2cf976be86", |
| "mac": "4c93c6a530354747d3de18804d420b2ed455f6dc943421b1497200331d5ab4cc", |
| }, |
| cipd_tag = "version:6.20211029.2.1", |
| ) |
| register_toolchains("@fuchsia_sdk_from_workstation//:fuchsia_toolchain_sdk") |