xref: /aosp_15_r20/external/cronet/build/config/siso/fuchsia.star (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# -*- bazel-starlark -*-
2# Copyright 2024 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 Fuchsia builds."""
6
7load("@builtin//lib/gn.star", "gn")
8load("@builtin//struct.star", "module")
9
10def __enabled(ctx):
11    if "args.gn" in ctx.metadata:
12        gn_args = gn.args(ctx)
13        if gn_args.get("target_os") == '"fuchsia"':
14            return True
15    return False
16
17fuchsia = module(
18    "fuchsia",
19    enabled = __enabled,
20)
21