xref: /aosp_15_r20/external/angle/build/config/siso/platform.star (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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"""Utilities that fill gap between platforms."""
6
7load("@builtin//runtime.star", "runtime")
8load("@builtin//struct.star", "module")
9
10# Python binary name. python3 or python3.exe.
11__python_bin = {
12    # is_windows => python bin
13    True: "python3.exe",
14    False: "python3",
15}[runtime.os == "windows"]
16
17platform = module(
18    "platform",
19    python_bin = __python_bin,
20)
21