Lines Matching +full:- +full:ninja
3 # Use of this source code is governed by a BSD-style license that can be
16 """Extracts from a build.ninja the commands to run GN.
18 The commands to run GN are the gn rule and build.ninja build step at the
19 top of the build.ninja file. We want to keep these when deleting GN builds
20 since we want to preserve the command-line flags to GN.
27 # is the section for "build build.ninja", separated by blank lines.
42 # For unknown reasons (anti-virus?) rmtree of Chromium build directories
51 # GN writes a build.ninja.d file. Note that not all GN builds have args.gn.
52 build_ninja_d_file = os.path.join(build_dir, 'build.ninja.d')
59 # write a dummy build.ninja file that will automatically rerun GN the next
60 # time Ninja is run.
61 build_ninja_file = os.path.join(build_dir, 'build.ninja')
74 # and we still want to restore args.gn/build.ninja/build.ninja.d, so catch
86 # Write the build.ninja file sufficiently to regenerate itself.
87 with open(os.path.join(build_dir, 'build.ninja'), 'w') as f:
91 # Couldn't parse the build.ninja file, write a default thing.
93 command = gn -q gen //out/%s/
94 description = Regenerating ninja files
96 build build.ninja: gn
98 depfile = build.ninja.d
102 # will make Ninja always mark the build as dirty.
104 f.write('build.ninja: nonexistant_file.gn\n')