MCPcopy Create free account
hub / github.com/nodejs/node / generate_gni

Function generate_gni

deps/v8/tools/generate-header-include-checks.py:143–158  ·  view source on GitHub ↗
(header_files)

Source from the content-addressed store, hash-verified

141
142
143def generate_gni(header_files):
144 gni_file = os.path.join(OUT_DIR, 'sources.gni')
145 printv('Generating file "{}"'.format(os.path.relpath(gni_file, V8_DIR)))
146 with open(gni_file, 'w') as gn:
147 gn.write("""\
148# Copyright 2018 The Chromium Authors. All rights reserved.
149# Use of this source code is governed by a BSD-style license that can be
150# found in the LICENSE file.
151
152# This list is filled automatically by tools/check_header_includes.py.
153check_header_includes_sources = [
154""");
155 for header in header_files:
156 cc_file_name = get_cc_file_name(header)
157 gn.write(' "{}",\n'.format(os.path.relpath(cc_file_name, V8_DIR)))
158 gn.write(']\n')
159
160
161def main():

Callers 1

mainFunction · 0.85

Calls 6

printvFunction · 0.85
get_cc_file_nameFunction · 0.85
formatMethod · 0.65
openFunction · 0.50
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected