# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import buildconfig import mozpack.path as mozpath import os import runpy import subprocess import string import sys
def generate_data(output, template):
output.write("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT\n\n")
output.write(
subprocess.check_output(
[
sys.executable,
mozpath.join(SERVO_PROP_BASE, "build.py"), "gecko", "geckolib",
template,
],
universal_newlines=True,
)
)
# Add all relevant files into the dependencies of the generated file.
DEP_EXTS = [".py", ".rs"]
deps = set() for path, dirs, files in os.walk(SERVO_PROP_BASE): for file in files: if os.path.splitext(file)[1] in DEP_EXTS:
deps.add(mozpath.join(path, file)) return deps
def generate_header(output, data):
data = runpy.run_path(data)["data"]
output.write( """/* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT */
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.