OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # This script is wrapper for Chromium that adds some support for how GYP | 7 # This script is wrapper for Chromium that adds some support for how GYP |
8 # is invoked by Chromium beyond what can be done in the gclient hooks. | 8 # is invoked by Chromium beyond what can be done in the gclient hooks. |
9 | 9 |
10 import glob | 10 import glob |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
481 ['-I' + i for i in additional_include_files(supplemental_includes, args)]) | 481 ['-I' + i for i in additional_include_files(supplemental_includes, args)]) |
482 | 482 |
483 args.extend(['-D', 'gyp_output_dir=' + GetOutputDirectory()]) | 483 args.extend(['-D', 'gyp_output_dir=' + GetOutputDirectory()]) |
484 | 484 |
485 print 'Updating projects from gyp files...' | 485 print 'Updating projects from gyp files...' |
486 sys.stdout.flush() | 486 sys.stdout.flush() |
487 | 487 |
488 # Off we go... | 488 # Off we go... |
489 gyp_rc = gyp.main(args) | 489 gyp_rc = gyp.main(args) |
490 | 490 |
491 # Check for landmines (reasons to clobber the build). This must be run here, | |
492 # rather than a separate runhooks step so that any environment modifications | |
493 # from above are picked up. | |
494 print 'Running build/landmines.py...' | |
495 subprocess.check_call( | |
496 [sys.executable, os.path.join(script_dir, 'landmines.py')]) | |
iannucci
2014/02/05 23:47:50
Presumably 'args' doesn't contain any relevant goo
scottmg
2014/02/05 23:55:17
Hm, good question. I think -Dgyp_output_dir is the
| |
497 | |
491 if vs2013_runtime_dll_dirs: | 498 if vs2013_runtime_dll_dirs: |
492 CopyVsRuntimeDlls(GetOutputDirectory(), vs2013_runtime_dll_dirs) | 499 CopyVsRuntimeDlls(GetOutputDirectory(), vs2013_runtime_dll_dirs) |
493 | 500 |
494 sys.exit(gyp_rc) | 501 sys.exit(gyp_rc) |
OLD | NEW |