Igor Gatis <[email protected]> wrote:
> Great, just wrote a rule for that. I placed it on the final target of my
> project. What would be nice is to define such rule on the protobuf library
> gyp and export it. It seems this file does that. But when I try doing the
> same, I get the following error:
[...]
>   File
> "/home/wgatis/google-apis/tools/third_party/gyp/pylib/gyp/generator/make.py",
> line 606, in WriteRules
>     for rule_source in rule['rule_sources']:
> KeyError: 'rule_sources'

Sounds like a bug in the make generator.  It shouldn't be an error to
define a rule but not have any sources that match its extension in a
specific target.  Try changing line 606 of make.py to:

      for rule_source in rule.get('rule_sources', []):

although that may be incomplete: you may also need to keep the block
at lines 666-668 from executing if |not 'rule_sources' in rule| too.

Mark

-- 
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev

Reply via email to