Chromium Code Reviews| Index: gyp_skia |
| diff --git a/gyp_skia b/gyp_skia |
| index 66adf08cb90b465b680533857a6acb71910d665c..f75c04f57c598909c864f8d396cda8020b074e39 100755 |
| --- a/gyp_skia |
| +++ b/gyp_skia |
| @@ -126,6 +126,14 @@ if __name__ == '__main__': |
| # By default, we build 'most' instead of 'all' or 'everything'. See skia.gyp. |
| args.extend(['-Gdefault_target=most']) |
| + # Fail if any files specified in the project are missing |
| + if sys.platform.startswith('win'): |
| + ENVVAR_GYP_GENERATOR_FLAGS = 'GYP_GENERATOR_FLAGS' |
|
epoger
2014/06/04 17:09:44
please move this definition to the top near ENVVAR
|
| + gyp_generator_flags = os.getenv(ENVVAR_GYP_GENERATOR_FLAGS, '') |
| + if not 'msvs_error_on_missing_sources' in gyp_generator_flags: |
| + os.environ[ENVVAR_GYP_GENERATOR_FLAGS] = ( |
| + gyp_generator_flags + ' msvs_error_on_missing_sources=1') |
| + |
| print 'Updating projects from gyp files...' |
| sys.stdout.flush() |