• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- bazel-starlark -*-
2# Copyright 2023 The Chromium Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5"""Siso configuration for proto/linux."""
6
7load("@builtin//struct.star", "module")
8
9def __filegroups(ctx):
10    return {}
11
12def __step_config(ctx, step_config):
13    remote_run = True  # Turn this to False when you do file access trace.
14    step_config["rules"].extend([
15        {
16            "name": "proto/protoc_wrapper",
17            "command_prefix": "python3 ../../tools/protoc_wrapper/protoc_wrapper.py",
18            "exclude_input_patterns": [
19                "*.o",
20                "*.a",
21                "*.h",
22                "*.cc",
23                # "*_pb2.py",
24            ],
25            "remote": remote_run,
26            # chromeos generates default.profraw?
27            "ignore_extra_output_pattern": ".*default.profraw",
28            # "deps": "depfile",
29            "output_local": True,
30            "timeout": "2m",
31        },
32    ])
33    return step_config
34
35proto = module(
36    "proto",
37    step_config = __step_config,
38    filegroups = __filegroups,
39    handlers = {},
40)
41