Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: build/landmines.py

Issue 26718002: Remove references to sconsbuild (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ 6 """
7 This script runs every build as a hook. If it detects that the build should 7 This script runs every build as a hook. If it detects that the build should
8 be clobbered, it will touch the file <build_dir>/.landmine_triggered. The 8 be clobbered, it will touch the file <build_dir>/.landmine_triggered. The
9 various build scripts will then check for the presence of this file and clobber 9 various build scripts will then check for the presence of this file and clobber
10 accordingly. The script will also emit the reasons for the clobber to stdout. 10 accordingly. The script will also emit the reasons for the clobber to stdout.
(...skipping 29 matching lines...) Expand all
40 Keep this function in sync with tools/build/scripts/slave/compile.py 40 Keep this function in sync with tools/build/scripts/slave/compile.py
41 """ 41 """
42 ret = None 42 ret = None
43 if build_tool == 'xcode': 43 if build_tool == 'xcode':
44 ret = os.path.join(SRC_DIR, 'xcodebuild', 44 ret = os.path.join(SRC_DIR, 'xcodebuild',
45 target + ('-iphoneos' if is_iphone else '')) 45 target + ('-iphoneos' if is_iphone else ''))
46 elif build_tool in ['make', 'ninja', 'ninja-ios']: # TODO: Remove ninja-ios. 46 elif build_tool in ['make', 'ninja', 'ninja-ios']: # TODO: Remove ninja-ios.
47 ret = os.path.join(SRC_DIR, 'out', target) 47 ret = os.path.join(SRC_DIR, 'out', target)
48 elif build_tool in ['msvs', 'vs', 'ib']: 48 elif build_tool in ['msvs', 'vs', 'ib']:
49 ret = os.path.join(SRC_DIR, 'build', target) 49 ret = os.path.join(SRC_DIR, 'build', target)
50 elif build_tool == 'scons':
51 ret = os.path.join(SRC_DIR, 'sconsbuild', target)
52 else: 50 else:
53 raise NotImplementedError('Unexpected GYP_GENERATORS (%s)' % build_tool) 51 raise NotImplementedError('Unexpected GYP_GENERATORS (%s)' % build_tool)
54 return os.path.abspath(ret) 52 return os.path.abspath(ret)
55 53
56 54
57 def set_up_landmines(target, new_landmines): 55 def set_up_landmines(target, new_landmines):
58 """Does the work of setting, planting, and triggering landmines.""" 56 """Does the work of setting, planting, and triggering landmines."""
59 out_dir = get_target_build_dir(landmine_utils.builder(), target, 57 out_dir = get_target_build_dir(landmine_utils.builder(), target,
60 landmine_utils.platform() == 'ios') 58 landmine_utils.platform() == 'ios')
61 59
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 stdout=subprocess.PIPE) 122 stdout=subprocess.PIPE)
125 output, _ = proc.communicate() 123 output, _ = proc.communicate()
126 landmines.extend([('%s\n' % l.strip()) for l in output.splitlines()]) 124 landmines.extend([('%s\n' % l.strip()) for l in output.splitlines()])
127 set_up_landmines(target, landmines) 125 set_up_landmines(target, landmines)
128 126
129 return 0 127 return 0
130 128
131 129
132 if __name__ == '__main__': 130 if __name__ == '__main__':
133 sys.exit(main()) 131 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698