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