commit | 5a39f17111e32c688c5149df8adc6ee75e249976 | [log] [tgz] |
---|---|---|
author | Sloan Johnson <sloanjohnson@google.com> | Mon Feb 07 23:07:18 2022 +0000 |
committer | Chris McDonald <cjmcdonald@chromium.org> | Tue Feb 08 00:14:38 2022 +0000 |
tree | 6e975608739cbba520d599e6807401d12dab6601 | |
parent | f45a3192e701f286f50b8a5a801aa28255ecdb10 [diff] |
.bazelrc: Change relative path to common.bazelrc .bazelrc needs to point to %workspace%/common.bazelrc otherwise it treats it as a relative path from CWD. BUG=b:213616502 TEST=`bazel-5 build :all` from cros/test Change-Id: Idb02e3e72d2284a62bd8f5066f1e48cb746f0743 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/rules_cros/+/3445306 Reviewed-by: Chris McDonald <cjmcdonald@chromium.org> Tested-by: Chris McDonald <cjmcdonald@chromium.org>
This repository provides common rules and configuration for Bazel projects in Chrome OS.
rules_cros
is only expected to function inside the Chrome OS SDK. You may copy the following snippet into your WORKSPACE file and fix up the relative path in local_repository
to point from your project to where rules_cros
is checked out.
local_repository( name = "rules_cros", path = "../src/platform/rules_cros", ) load("@rules_cros//cros:repositories.bzl", "rules_cros_dependencies") rules_cros_dependencies()
You will also need to symlink .bazelrc
in the root of your project to common.bazelrc in this repo. You can put additional settings in a file named user.bazelrc
in the root of your WORKSPACE and it will automatically be imported by common.bazelrc
.
The code is this directory is experimental and under active development. Stability and functionality is not guaranteed :)