| Index: pylib/gyp/__init__.py
|
| ===================================================================
|
| --- pylib/gyp/__init__.py (revision 640)
|
| +++ pylib/gyp/__init__.py (working copy)
|
| @@ -30,7 +30,7 @@
|
|
|
|
|
| def Load(build_files, format, default_variables={},
|
| - includes=[], depth='.', params={}):
|
| + includes=[], depth='.', params={}, check=False):
|
| """
|
| Loads one or more specified build files.
|
| default_variables and includes will be copied before use.
|
| @@ -73,7 +73,7 @@
|
|
|
| # Process the input specific to this generator.
|
| result = gyp.input.Load(build_files, default_variables, includes[:],
|
| - depth, generator_input_info)
|
| + depth, generator_input_info, check)
|
| return [generator] + result
|
|
|
| def NameValueListToDict(name_value_list):
|
| @@ -126,6 +126,8 @@
|
| parser.add_option('--generator-output', dest='generator_output',
|
| action='store', default=None, metavar='DIR',
|
| help='puts generated build files under DIR')
|
| + parser.add_option('--check', dest='check', action='store_true',
|
| + help='check format of gyp files')
|
|
|
| # We read a few things from ~/.gyp, so set up a var for that.
|
| home_vars = ['HOME']
|
| @@ -269,7 +271,7 @@
|
| [generator, flat_list, targets, data] = Load(build_files, format,
|
| cmdline_default_variables,
|
| includes, options.depth,
|
| - params)
|
| + params, options.check)
|
|
|
| # TODO(mark): Pass |data| for now because the generator needs a list of
|
| # build files that came in. In the future, maybe it should just accept
|
|
|