blob: 30675164a088e618c55f80a18845126c23ebf316 [file] [log] [blame]
# -*- 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 linux."""
load("@builtin//struct.star", "module")
load("./android.star", "android")
load("./clang_linux.star", "clang")
load("./config.star", "config")
load("./cros.star", "cros")
load("./devtools_frontend.star", "devtools_frontend")
load("./nacl_linux.star", "nacl")
load("./nasm_linux.star", "nasm")
load("./proto_linux.star", "proto")
load("./reproxy.star", "reproxy")
load("./rust_linux.star", "rust")
load("./typescript_unix.star", "typescript")
def __filegroups(ctx):
fg = {}
fg.update(android.filegroups(ctx))
fg.update(clang.filegroups(ctx))
fg.update(cros.filegroups(ctx))
fg.update(devtools_frontend.filegroups(ctx))
fg.update(nacl.filegroups(ctx))
fg.update(nasm.filegroups(ctx))
fg.update(proto.filegroups(ctx))
fg.update(rust.filegroups(ctx))
fg.update(typescript.filegroups(ctx))
return fg
__handlers = {}
__handlers.update(android.handlers)
__handlers.update(clang.handlers)
__handlers.update(cros.handlers)
__handlers.update(devtools_frontend.handlers)
__handlers.update(nacl.handlers)
__handlers.update(nasm.handlers)
__handlers.update(proto.handlers)
__handlers.update(rust.handlers)
__handlers.update(typescript.handlers)
def __step_config(ctx, step_config):
config.check(ctx)
if android.enabled(ctx):
step_config = android.step_config(ctx, step_config)
step_config = clang.step_config(ctx, step_config)
step_config = cros.step_config(ctx, step_config)
step_config = devtools_frontend.step_config(ctx, step_config)
step_config = nacl.step_config(ctx, step_config)
step_config = nasm.step_config(ctx, step_config)
step_config = proto.step_config(ctx, step_config)
step_config = rust.step_config(ctx, step_config)
step_config = typescript.step_config(ctx, step_config)
return step_config
chromium = module(
"chromium",
step_config = __step_config,
filegroups = __filegroups,
handlers = __handlers,
)