swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] COM usage example


From: Marcus G. Daniels
Subject: Re: [Swarm-Support] COM usage example
Date: Tue, 29 May 2007 14:54:51 -0600
User-agent: Thunderbird 2.0.0.0 (Windows/20070326)

Gennady Telegin wrote:
Question: How set to work this example and are there any other examples of usage COM with Swarm (I found only COMdemo on the site) ?

Ok, sounds like you don't have the COM layer for Swarm itself. To make that, it's necessary to build Swarm and Firefox and then edit the mozilla_build and topsrcdir values in the COM/c/Makefile of your Swarm build to point at the the object directory of Firefox and the top of the Mozilla source tree. Then run "make generate" at the directory above, then run make in the c/ subdirectory. Essentially it is self-generates a C++ library of Swarm interfaces, but one that follows conventions such that it can be called from JavaScript, etc. in the browser.

When I do that I see there are some uses of obsolete macros and interfaces (not surprisingly). I can investigate and fix the problems if you're interested in playing with it. Once it builds properly, then there will be installed in the Firefox build tree a plugin that has all of the Swarm interfaces, which can be called as in that demo you were looking at.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]