# -*- bazel-starlark -*- # Copyright 2023 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Siso configuration for proto/linux.""" load("@builtin//path.star", "path") load("@builtin//struct.star", "module") load("./config.star", "config") def __filegroups(ctx): return {} def __step_config(ctx, step_config): remote_run = True # Turn this to False when you do file access trace. step_config["rules"].extend([ { "name": "proto/protoc_wrapper", "command_prefix": "python3 ../../tools/protoc_wrapper/protoc_wrapper.py", "exclude_input_patterns": [ "*.o", "*.a", "*.h", "*.cc", # "*_pb2.py", ], # TODO(https://crrev.com/c/6057248): remove this after # proto_library.gni change. "inputs": [ "third_party/protobuf/src/google/protobuf/descriptor.proto", ], "remote": remote_run, # chromeos generates default.profraw? "ignore_extra_output_pattern": ".*default.profraw", # "deps": "depfile", "output_local": True, "timeout": "2m", }, ]) return step_config proto = module( "proto", step_config = __step_config, filegroups = __filegroups, handlers = {}, )