| 141 | |
| 142 | |
| 143 | def 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. |
| 153 | check_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 | |
| 161 | def main(): |