Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/chromium/build/config/siso/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 706 B image not shown  

Quelle  gn_logs.star   Sprache: unbekannt

 
Spracherkennung für: .star vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# -*- bazel-starlark -*-
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""gn_logs module to access gn_logs data."""

load("@builtin//struct.star", "module")

def __read(ctx):
    fname = ctx.fs.canonpath("./gn_logs.txt")
    if not ctx.fs.exists(fname):
        return {}
    gn_logs = ctx.fs.read(fname)
    vars = {}
    for line in str(gn_logs).splitlines():
        if line.startswith("#"):
            continue
        if not "=" in line:
            continue
        kv = line.split("=", 1)
        vars[kv[0].strip()] = kv[1].strip()
    return vars

gn_logs = module(
    "gn_logs",
    read = __read,
)

[Dauer der Verarbeitung: 0.73 Sekunden]