diff options
author | jvanverth <jvanverth@google.com> | 2014-06-04 15:57:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-04 15:57:57 -0700 |
commit | 4962140c9e6623b29417a2fb9ad903641fb0159c (patch) | |
tree | b3494f5a01a3db638065ee2bb96c6027c4c50f0c /gyp_skia | |
parent | df1640d413c16abf4527960642aca41581808699 (diff) |
On Windows, fail if there are missing files specified in the project.
BUG=skia:2638
R=robertphillips@google.com, borenet@google.com, rmistry@google.com, epoger@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/319503003
Diffstat (limited to 'gyp_skia')
-rwxr-xr-x | gyp_skia | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -29,6 +29,7 @@ sys.path.insert(0, os.path.join(gyp_source_dir, 'pylib')) import gyp ENVVAR_GYP_GENERATORS = 'GYP_GENERATORS' +ENVVAR_GYP_GENERATOR_FLAGS = 'GYP_GENERATOR_FLAGS' def additional_include_files(args=[]): @@ -126,6 +127,13 @@ 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'): + 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() |