| # Copyright 2024 The Pigweed Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| # use this file except in compliance with the License. You may obtain a copy of |
| # the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations under |
| # the License. |
| |
| module(name = "examples") |
| |
| bazel_dep(name = "pico-sdk", version = "2.0.0") |
| bazel_dep(name = "pigweed") |
| bazel_dep(name = "platforms", version = "0.0.10") |
| bazel_dep(name = "rules_cc", version = "0.0.17") |
| bazel_dep(name = "rules_python", version = "0.40.0") |
| |
| local_path_override( |
| module_name = "pigweed", |
| path = "third_party/pigweed", |
| ) |
| |
| git_repository = use_repo_rule( |
| "@bazel_tools//tools/build_defs/repo:git.bzl", |
| "git_repository", |
| ) |
| |
| git_repository( |
| name = "bazel_clang_tidy", |
| commit = "db677011c7363509a288a9fb3bf0a50830bbf791", |
| remote = "https://github.com/erenon/bazel_clang_tidy.git", |
| ) |
| |
| register_toolchains( |
| "@pigweed//pw_toolchain/host_clang:host_cc_toolchain_linux", |
| "@pigweed//pw_toolchain/host_clang:host_cc_toolchain_macos", |
| dev_dependency = True, |
| ) |