1# -*- bazel-starlark -*- 2# Copyright 2023 The Chromium Authors. All rights reserved. 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 linux.""" 6 7load("@builtin//struct.star", "module") 8load("./clang_linux.star", "clang") 9load("./mojo.star", "mojo") 10load("./nacl_linux.star", "nacl") 11load("./remote_exec_wrapper.star", "remote_exec_wrapper") 12 13__filegroups = {} 14__filegroups.update(clang.filegroups) 15__filegroups.update(mojo.filegroups) 16__filegroups.update(nacl.filegroups) 17 18__handlers = {} 19__handlers.update(clang.handlers) 20__handlers.update(mojo.handlers) 21__handlers.update(nacl.handlers) 22 23def __step_config(ctx, step_config): 24 step_config["platforms"] = { 25 "default": { 26 "OSFamily": "Linux", 27 "container-image": "docker://gcr.io/chops-private-images-prod/rbe/siso-chromium/linux@sha256:d4fcda628ebcdb3dd79b166619c56da08d5d7bd43d1a7b1f69734904cc7a1bb2", 28 }, 29 } 30 if remote_exec_wrapper.enabled(ctx): 31 step_config = remote_exec_wrapper.step_config(ctx, step_config) 32 else: 33 step_config = clang.step_config(ctx, step_config) 34 step_config = mojo.step_config(ctx, step_config) 35 step_config = nacl.step_config(ctx, step_config) 36 return step_config 37 38chromium = module( 39 "chromium", 40 step_config = __step_config, 41 filegroups = __filegroups, 42 handlers = __handlers, 43) 44