----- Original Message -----
> Hey folks,
> 
> We already have the protobuf library in the tree, and it seems to be
> used for layer scope and webrtc.
> 
> I'd like to use it for serializing heap snapshots in devtools code, but
> I have a couple questions:
> 
> * How do I integrate the compilation of the message description (.proto
> file) into C source files with the build system? I'm not even sure if
> layer scope and webrtc integrate this with the build system, or if the
> just do it manually and check in the resulting files. I wasn't able to
> determine by glancing over the moz.build files.

You need to use the protocol compiler (protoc) which I did not import due to 
requests to keep the library small as possible. For an example please see 
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/downloads/generate_csd.sh.

> * Are there any other moz.build hoops I need to jump through to use
> protobufs from within toolkit/devtools?

I had to include DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True in 
toolkit/components/downloads/moz.build. That was a long time ago so things may 
have changed.

Thanks,
Monica

> 
> Thanks,
> 
> Nick
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
> 
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to