Lines Matching +full:ninja +full:- +full:build

3 # Use of this source code is governed by a BSD-style license that can be
7 This script runs every build as the first hook (See DEPS). If it detects that
8 the build should be clobbered, it will delete the contents of the build
12 diff between the new landmines and the old ones is non-null. At this point, the
13 build is clobbered.
36 Returns output directory absolute path dependent on build and targets.
38 r'c:\b\build\slave\win\build\src\out'
39 '/mnt/data/b/build/slave/linux/build/src/out'
40 '/b/build/slave/ios_rel_device/build/src/xcodebuild'
42 Keep this function in sync with tools/build/scripts/slave/compile.py
47 elif build_tool in ['make', 'ninja', 'ninja-ios']: # TODO: Remove ninja-ios.
56 ret = os.path.join(SRC_DIR, 'build')
63 """Extracts from a build.ninja the commands to run GN.
65 The commands to run GN are the gn rule and build.ninja build step at the
66 top of the build.ninja file. We want to keep these when deleting GN builds
67 since we want to preserve the command-line flags to GN.
73 # is the "rule gn" and the second is the section for "build build.ninja",
86 # GN writes a build.ninja.d file. Note that not all GN builds have args.gn.
87 build_ninja_d_file = os.path.join(build_dir, 'build.ninja.d')
94 # write a dummy build.ninja file that will automatically rerun GN the next
95 # time Ninja is run.
96 build_ninja_file = os.path.join(build_dir, 'build.ninja')
114 # Write the build.ninja file sufficiently to regenerate itself.
115 with open(os.path.join(build_dir, 'build.ninja'), 'w') as f:
119 # Couldn't parse the build.ninja file, write a default thing.
121 command = gn -q gen //out/%s/
122 description = Regenerating ninja files
124 build build.ninja: gn
126 depfile = build.ninja.d
129 # Write a .d file for the build which references a nonexistant file. This
130 # will make Ninja always mark the build as dirty.
132 f.write('build.ninja: nonexistant_file.gn\n')
164 # Clobber contents of build directory but not directory itself: some
165 # checkouts have the build directory mounted.
168 if os.path.basename(out_dir) == 'build':
169 # Only delete build directories and files for MSVS builds as the folder
185 # Xcodebuild puts an additional project file structure into build,
187 project_dir = os.path.join(SRC_DIR, 'build', 'all.xcodeproj')
200 '-s', '--landmine-scripts', action='append',
203 'is passed to this script via option -t. Note that an extra '
205 parser.add_option('-v', '--verbose', action='store_true',