Clone this repo:
  1. c193ad3 rules_cros: add folks to OWNERS by George Burgess IV · 3 years, 2 months ago factory-brya-14909.124.B factory-guybrush-14908.B main release-R104-14909.B release-R105-14989.B release-R106-15054.B stabilize-14909.100.B stabilize-14918.B stabilize-14964.B stabilize-14998.B stabilize-15032.B stabilize-15033.B stabilize-15072.B
  2. 967a8ec platforms: add aarch64 by George Burgess IV · 3 years, 3 months ago factory-14778.B factory-firmware-ti50-guc-14778.B release-R103-14816.B stabilize-14771.B stabilize-14790.B stabilize-14803.B stabilize-14816.131.B stabilize-14816.82.B stabilize-14816.84.B stabilize-14839.B
  3. a2e8126 platform: parameterize toolchain defs by George Burgess IV · 3 years, 5 months ago release-R102-14695.B stabilize-14633.B stabilize-14682.B stabilize-14695.107.B stabilize-14695.85.B stabilize-voshyr-14637.B
  4. 6453254 emulation: parameterize by George Burgess IV · 3 years, 4 months ago
  5. 1be1d4a toolchain: unify all rules by George Burgess IV · 3 years, 5 months ago

Chrome OS Bazel Rules

Overview

This repository provides common rules and configuration for Bazel projects in Chrome OS.

Usage

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.

Documentation

The code is this directory is experimental and under active development. Stability and functionality is not guaranteed :)