Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 # There shouldn't be a circular dependency relationship between .gyp files, | 75 # There shouldn't be a circular dependency relationship between .gyp files, |
| 76 # but in Chromium's .gyp files, on non-Mac platforms, circular relationships | 76 # but in Chromium's .gyp files, on non-Mac platforms, circular relationships |
| 77 # currently exist. The check for circular dependencies is currently | 77 # currently exist. The check for circular dependencies is currently |
| 78 # bypassed on other platforms, but is left enabled on the Mac, where a | 78 # bypassed on other platforms, but is left enabled on the Mac, where a |
| 79 # violation of the rule causes Xcode to misbehave badly. | 79 # violation of the rule causes Xcode to misbehave badly. |
| 80 # TODO(mark): Find and kill remaining circular dependencies, and remove this | 80 # TODO(mark): Find and kill remaining circular dependencies, and remove this |
| 81 # option. http://crbug.com/35878. | 81 # option. http://crbug.com/35878. |
| 82 if sys.platform != 'darwin': | 82 if sys.platform != 'darwin': |
| 83 args.append('--no-circular-check') | 83 args.append('--no-circular-check') |
| 84 | 84 |
| 85 # If CHROMIUM_GYP_SYNTAX_CHECK is set to 1, it will invoke gyp with --check | |
| 86 # to enfore syntax checking. | |
| 87 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') | |
| 88 if syntax_check and int(syntax_check): | |
|
Mark Mentovai
2010/03/26 17:53:45
bool() is marginally closer to what you mean than
Robert Sesek
2010/03/26 17:57:35
That's what I thought, too. But |bool("0") == True
| |
| 89 args.append('--check') | |
| 90 | |
| 85 print 'Updating projects from gyp files...' | 91 print 'Updating projects from gyp files...' |
| 86 sys.stdout.flush() | 92 sys.stdout.flush() |
| 87 | 93 |
| 88 # Off we go... | 94 # Off we go... |
| 89 sys.exit(gyp.main(args)) | 95 sys.exit(gyp.main(args)) |
| OLD | NEW |