Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

managing big xulrunner projects

0 views
Skip to first unread message

Sergey Yanovich

unread,
Dec 8, 2007, 2:31:15 PM12/8/07
to
Hi,

My project has grown quite big, there are 196 files under source control
at the moment. I have automake/autoconf/libtool build system, which is
working great on linux.

However, I reached a point when I need to build on win32. I am expecting
issues, since that combination is too *nixy.

Does anyone use autotools with xulrunner application on Windows? Or what
are the alternatives?

--
Sergey Yanovich

P.S. the project web site is http://www.aasii.org/, all code GPL'ed

Benjamin Smedberg

unread,
Dec 8, 2007, 2:48:59 PM12/8/07
to
Sergey Yanovich wrote:

> My project has grown quite big, there are 196 files under source control
> at the moment. I have automake/autoconf/libtool build system, which is
> working great on linux.
>
> However, I reached a point when I need to build on win32. I am expecting
> issues, since that combination is too *nixy.
>
> Does anyone use autotools with xulrunner application on Windows? Or what
> are the alternatives?

There might be a general bias towards the Mozilla build system ;-)

Seriously, in most cases it shouldn't be hard to write mozilla-style
makefiles, add a build.mk, and checkout your code into a mozilla
subdirectory (mozilla/aasii) and then configure with
--enable-application=aasii --with-libxul-sdk=/path/to/xulrunner-sdk

--BDS

Sergey Yanovich

unread,
Dec 8, 2007, 4:13:36 PM12/8/07
to
Benjamin Smedberg wrote:
> There might be a general bias towards the Mozilla build system ;-)

It is always nice to hear some advise from an authorized source ;)

> Seriously, in most cases it shouldn't be hard to write mozilla-style
> makefiles, add a build.mk, and checkout your code into a mozilla
> subdirectory (mozilla/aasii) and then configure with
> --enable-application=aasii --with-libxul-sdk=/path/to/xulrunner-sdk

I have had a failed attempt to use mozilla build system. I tried to copy
required files one-by-one, starting with 'configure.in'. I dropped the
effort after file #10 or so. But now I understand I just had to ask.

This approach looks really good. Could you also comment in more details?

* The project uses unfrozen mozilla interfaces. If I point
--with-libxul-sdk=../obj-xr/dist/, I assume I will be able to use
`REQUIRES` in my Makefile.in`s, and dist/include/xpcom/nsISupports.h can
be included just like in mozilla sources:

#include "nsISupports.h"

* With project sources in mozilla/aasii, `build.mk` file should contain
this line:

tier_app_dirs += aasii

* Working 'make install' would requires this lines:

include $(topsrcdir)/toolkit/mozapps/installer/packager.mk

Thanks in advance,

--
Sergey Yanovich

Benjamin Smedberg

unread,
Dec 8, 2007, 6:56:06 PM12/8/07
to
Sergey Yanovich wrote:

> I have had a failed attempt to use mozilla build system. I tried to copy
> required files one-by-one, starting with 'configure.in'. I dropped the
> effort after file #10 or so. But now I understand I just had to ask.

Yeah, there's not a good list of "the files you need to make our build
system work", though bent had a bug about making a minimal checkout from CVS
with just those files: https://bugzilla.mozilla.org/show_bug.cgi?id=381900

> This approach looks really good. Could you also comment in more details?
>
> * The project uses unfrozen mozilla interfaces. If I point
> --with-libxul-sdk=../obj-xr/dist/, I assume I will be able to use
> `REQUIRES` in my Makefile.in`s, and dist/include/xpcom/nsISupports.h can
> be included just like in mozilla sources:
>
> #include "nsISupports.h"

Yes.

> * With project sources in mozilla/aasii, `build.mk` file should contain
> this line:
>
> tier_app_dirs += aasii

Yes.

> * Working 'make install' would requires this lines:
>
> include $(topsrcdir)/toolkit/mozapps/installer/packager.mk

Yes... typically you'd have a aasii/installer directory like the
browser/installer directory to drive the build, and that makefile would
include packager.mk

--BDS

Sergey Yanovich

unread,
Dec 9, 2007, 3:08:03 AM12/9/07
to
Benjamin Smedberg wrote:
> Yeah, there's not a good list of "the files you need to make our build
> system work", though bent had a bug about making a minimal checkout from CVS
> with just those files: https://bugzilla.mozilla.org/show_bug.cgi?id=381900

Benjamin, thanks for this link and helpful comments. Thing are even
better, than I hoped :)

--
Sergey Yanovich

0 new messages