blob: 43d093ec9bccebcf07c3363b1132d8b8caad3e78 [file] [log] [blame]
# Copyright 2022 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(name = "sdk-integration")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
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()
# Setup fuchsia rules
local_repository(
name = "rules_fuchsia",
path = "bazel_rules_fuchsia",
)
load("@rules_fuchsia//cipd:defs.bzl", "cipd_repository", "cipd_tool_repository")
cipd_tool_repository(
name = "cipd_tool",
)
load(
"@rules_fuchsia//fuchsia:deps.bzl",
"fuchsia_clang_repository",
"fuchsia_sdk_repository",
"rules_fuchsia_deps",
)
rules_fuchsia_deps()
fuchsia_sdk_repository(
name = "fuchsia_sdk",
)
register_toolchains("@fuchsia_sdk//:fuchsia_toolchain_sdk")
fuchsia_clang_repository(
name = "fuchsia_clang",
)
# Currently not used but is an example of how to use the cipd_repository
cipd_repository(
name = "python",
build_file_content = 'exports_files(glob(["**/*"]))',
ensure_file = "//manifests:python.ensure",
)