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<http://page-speed.googlecode.com/svn-history/r310/firefox_addon/trunk/src/pagespeed_firefox/pagespeed_firefox.gyp>.
But when I try doing the same, I get the following error:

Traceback (most recent call last):
  File "/home/wgatis/google-apis/tools/third_party/gyp/gyp", line 18, in
<module>
    sys.exit(gyp.main(sys.argv[1:]))
  File
"/home/wgatis/google-apis/tools/third_party/gyp/pylib/gyp/__init__.py", line
432, in main
    generator.GenerateOutput(flat_list, targets, data, params)
  File
"/home/wgatis/google-apis/tools/third_party/gyp/pylib/gyp/generator/make.py",
line 1104, in GenerateOutput
    part_of_all=qualified_target in needed_targets)
  File
"/home/wgatis/google-apis/tools/third_party/gyp/pylib/gyp/generator/make.py",
line 480, in Write
    self.WriteRules(spec['rules'], extra_sources, extra_outputs,
part_of_all)
  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'

I attached my protobuf gyp file.

On Sun, Dec 27, 2009 at 2:01 PM, Mark Mentovai <[email protected]> wrote:
> Igor Gatis wrote:
>> Really? At least, it does not seem to be the case for make generator.
>> There are no rules for handling .proto files in make generator. That's
>> actually what I've been trying to do in the last couple of days.
>
> GYP rules are something that you have to write yourself, there aren't
> any pre-baked ones other than the native support each environment
> provides to compile C++.  A GYP rule applies to input files in a
> 'sources' section based on the file's extension.
>
> Look at the 'rules' sections in some of Chromium's .gyp files for
examples.
>
> Mark
>

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

Attachment: protobuf.gyp
Description: Binary data

Reply via email to