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

Side by Side Diff: chrome/tools/build/mac/run_verify_order.py

Issue 2401573005: Clean up some GN/hermetic build changes. (Closed)
Patch Set: More fixes. Created 4 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
« no previous file with comments | « build/toolchain/toolchain.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import argparse 5 import argparse
6 import os.path 6 import os.path
7 import sys 7 import sys
8 import subprocess 8 import subprocess
9 9
10 # Wraps chrome/tools/build/mac/verify_order for the GN build so that it can 10 # Wraps chrome/tools/build/mac/verify_order for the GN build so that it can
11 # write a stamp file, rather than operate as a postbuild. 11 # write a stamp file, rather than operate as a postbuild.
12 12
13 if __name__ == '__main__': 13 if __name__ == '__main__':
14 parser = argparse.ArgumentParser( 14 parser = argparse.ArgumentParser(
15 description='A wrapper around verify_order that writes a stamp file.') 15 description='A wrapper around verify_order that writes a stamp file.')
16 parser.add_argument('--stamp', action='store', type=str, 16 parser.add_argument('--stamp', action='store', type=str,
17 help='Touch this stamp file on success.') 17 help='Touch this stamp file on success.')
18 parser.add_argument('--developer_dir', required=False, 18 parser.add_argument('--developer_dir', required=False,
19 help='Path to Xcode.') 19 help='Path to Xcode.')
20 20
21 args, unknown_args = parser.parse_known_args() 21 args, unknown_args = parser.parse_known_args()
22 if (args.developer_dir): 22 if args.developer_dir:
23 os.environ['DEVELOPER_DIR'] = args.developer_dir 23 os.environ['DEVELOPER_DIR'] = args.developer_dir
24 24
25 this_script_dir = os.path.dirname(sys.argv[0]) 25 this_script_dir = os.path.dirname(sys.argv[0])
26 rv = subprocess.check_call( 26 rv = subprocess.check_call(
27 [ os.path.join(this_script_dir, 'verify_order') ] + unknown_args) 27 [ os.path.join(this_script_dir, 'verify_order') ] + unknown_args)
28 28
29 if rv == 0 and args.stamp: 29 if rv == 0 and args.stamp:
30 if os.path.exists(args.stamp): 30 if os.path.exists(args.stamp):
31 os.unlink(args.stamp) 31 os.unlink(args.stamp)
32 open(args.stamp, 'w+').close() 32 open(args.stamp, 'w+').close()
33 33
34 sys.exit(rv) 34 sys.exit(rv)
OLDNEW
« no previous file with comments | « build/toolchain/toolchain.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698