• 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 macOS."""
6
7load("@builtin//struct.star", "module")
8load("./clang_mac.star", "clang")
9load("./config.star", "config")
10load("./typescript_unix.star", "typescript")
11
12def __filegroups(ctx):
13    fg = {}
14    fg.update(clang.filegroups(ctx))
15    fg.update(typescript.filegroups(ctx))
16    return fg
17
18__handlers = {}
19__handlers.update(clang.handlers)
20__handlers.update(typescript.handlers)
21
22def __step_config(ctx, step_config):
23    config.check(ctx)
24    step_config = clang.step_config(ctx, step_config)
25    step_config = typescript.step_config(ctx, step_config)
26    return step_config
27
28chromium = module(
29    "chromium",
30    step_config = __step_config,
31    filegroups = __filegroups,
32    handlers = __handlers,
33)
34