Please let me know if this not relevant forum/list for my questions.

I am still confused about process of how webidl works:

1. I have my existing c++ project, and I want to expose one class (e.g. 
sample_interface) to javascript by using webidl, so that a user JS application 
may access my c++ program. 
2. Now I write webidl corresponding to my sample_interface class definitions 
and include methods that I want to expose. 
3. Do I need to add c++ code, or modify my existing c++ code in any way in this 
process.?
4. Then I follow the instructions and add the corresponding entries in 
bindings.conf and moz.build etc.
5. Add my whole project under dom/ and build it with b2g? (how?) (Can I build 
my project separately for FFOS platform and include its main library 
<project>.so into b2g somehow? I have already built my project binaries for 
FFOS platform and tested them on FFOS device using shell). 
6. Write a JS app, use sample_interface to load and talk to my main program 
project.so.

 Please correct my understanding and direction. and advise  how should I move 
forward.

Thanks.


On Thursday, March 20, 2014 4:48:46 PM UTC-7, Syed Qutub wrote:
> I am looking into that WebIDL link. I have a few questions though.
> 
> 
> 
>  How do I compile my c++ project into Gecko?. Its a big project and scons is 
> used to build it. Do I need to put it in a special location? any other 
> changes/modifications in gecko before b2g build?
> 
>  How does the code generated from webidl files interact with my project code?
> 
> 
> 
> Thanks.
> 
> 
> 
> Syed.

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to