xref: /aosp_15_r20/external/cronet/build/config/siso/platform.star (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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