Closed Bug 173084 Opened 21 years ago Closed 20 years ago

Need separate build config for building xre


(SeaMonkey :: Build Config, defect)

Not set


(Not tracked)



(Reporter: mscott, Assigned: mscott)



(1 file, 4 obsolete files)

Currently if you define MOZ_PHOENIX, you get phoenix + the xre library which
stand alone apps need. This makes it hard for other stand alone applications
(like mail) to build easily with the XRE. 

I think we want to split MOZ_PHOENIX into two configurations:

In order to not require any environment changes for phoenix one could
automatically define MOZ_XRE_APP if MOZ_PHOENIX is defined.

I'll post some config patches which demonstrate what I'm talking about.
Attached patch config changes (obsolete) — Splinter Review
This patch contains the config changes I made on the trunk back when I had
minotaur running on the trunk. 

The patch assumes the following:
1) toolkit\xre is moved to embedding\xre
2) If the user wants to build phoenix, they also need to start defining
MOZ_XRE_APP in their config file and environment instead of just MOZ_PHOENIX.
3) If you wanted to build MOZ_MINOTAUR, then you'd need the
mozilla\mailnews\app directory I have in my tree as well. 

You would add the following to your .mozconfig file to build stand alone mail:

export MOZ_XRE_APP=1
mk_add_options MOZ_MINOTAUR=1
mk_add_options MOZ_XRE_APP=1
mk_add_options MOZ_EXTENSIONS=

just replace with MOZ_PHOENIX for phoenix.
suresh should be cc'ed on this bug since it probably impacts the XRE working he
is looking into. 
XRE is still somewhere on my back burner.
Assignee: mscott → sspitzer
Attached patch updated patch (obsolete) — Splinter Review
Minotaur is getting resurrected again. Here is an updated config patch against
the trunk.
Attachment #103249 - Attachment is obsolete: true
OS: Windows 2000 → All
Hijacking this bug for the config changes to land minotaur on the trunk. 
Assignee: sspitzer → mscott
Here's an explanation of the changes:

1) --> If MOZ_MINOTAUR is defined, then define MOZ_XUL_APP

2) --> Bryner already landed a change to define MOZ_XUL_APP if
MOZ_PHOENIX is defined. Move mozilla/toolkit Makefiles to MAKEFILES_xulapp so
they can be shared by all xul apps. Add Makefile declarations for all the
directories in mozilla/mail which is the new home of minotaur

3) --> cvs co of minotaur should pull mozilla/mail and

4) --> if building minotaur, build toolkit/xre and mail. Don't
build xpfe/boostrap if MOZ_XUL_APP (this used to be if not MOZ_PHOENIX)
Attachment #115115 - Attachment is obsolete: true
I still need to do a test build of Phoenix to make sure these changes still work
with Phoenix. 
just to be clear, what exactly is a MOZ_XUL_APP client?  :-)

is the xpfe/bootstrap client using MOZ_XUL_APP?  The reason I ask is that I want
to build mozilla without any XUL for very small devices (aka minimo) and am
wondering how this define intersects with the defines that I am already using.
Doug, MOZ_XUL_APP means:
1) a stand alone xul application that uses toolkit/xre to be stand alone
2) a xul app built using mozilla/toolkit

It is used by common stand alone xul apps such as Minotaur, Phoenix, and any
other  XUL app that comes along. 

The xpfe/boostrap client is not built with this define. In otherwords Seamonkey
is not built with this define. It sounds like you might want a disable xul or a
no xul type define right?
Comment on attachment 119539 [details] [diff] [review]
trunk config changes for minotaur

>RCS file: /cvsroot/mozilla/,v
>retrieving revision 1.1207
>diff -u -w -r1.1207
>---	4 Apr 2003 21:14:34 -0000	1.1207
>+++	5 Apr 2003 06:01:16 -0000
>@@ -3271,6 +3271,19 @@
> dnl ========================================================
>+dnl = Minotaur
>+dnl ========================================================

I don't think you want to unset MOZ_XUL_APP here.  It may have been set up
above in the Phoenix section, and
we probably want to support building Phoenix and Minotaur in the same tree (I
don't see any reason why not).

>+if test "$MOZ_MINOTAUR"; then
>+   MOZ_XUL_APP=1

Get rid of the previous AC_SUBST(MOZ_XUL_APP) up above in the Phoenix section.

>RCS file: /cvsroot/mozilla/,v
>retrieving revision 1.405
>diff -u -w -r1.405
>---	4 Apr 2003 21:24:56 -0000	1.405
>+++	5 Apr 2003 06:01:16 -0000
>@@ -856,6 +856,9 @@
> browser/components/prefwindow/locale/Makefile
> browser/components/search/Makefile
> browser/components/search/resources/Makefile
> toolkit/Makefile
> toolkit/components/autocomplete/Makefile
> toolkit/components/autocomplete/public/Makefile
>@@ -872,10 +875,16 @@
> "
> MAKEFILES_minotaur="
> mail/base/Makefile
> mail/components/Makefile
> mail/components/compose/Makefile
> "
>@@ -1297,6 +1306,10 @@
> if test -n "$MOZ_PHOENIX"; then
>     add_makefiles "$MAKEFILES_phoenix"
>+if test -n "$MOZ_XUL_APP"; then
>+    add_makefiles "$MAKEFILES_xulapp"
> fi
> if test -n "$MOZ_MINOTAUR"; then
>RCS file: /cvsroot/mozilla/,v
>retrieving revision 1.189
>diff -u -w -r1.189
>---	11 Dec 2002 07:06:43 -0000	1.189
>+++	5 Apr 2003 06:01:16 -0000
>@@ -362,6 +362,19 @@
> endif
> ####################################
>+# CVS defines for Minotaur (pulled and built if MOZ_MINOTAUR is set)
>+CVSCO_MINOTAUR := $(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/toolkit mozilla/mail

Can we consolidate this so that we have one pull of mozilla/toolkit for both
Phoenix and Minotaur?  I'd even
suggest that we might want to pull it by default.

> # CVS defines for codesighs (pulled and built if MOZ_MAPINFO is set)
> #
> CVSCO_CODESIGHS := $(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/tools/codesighs
>@@ -442,6 +455,7 @@
> 	cvs_co $(CVSCO_CALENDAR) && \

All of the other lines here are using a hard tab, please do that for this line.
>@@ -502,6 +516,7 @@
> 	fast_update $(CVSCO_CALENDAR) && \

Same here.

>RCS file: /cvsroot/mozilla/,v
>retrieving revision 1.213
>diff -u -w -r1.213
>---	4 Apr 2003 07:28:03 -0000	1.213
>+++	5 Apr 2003 06:01:16 -0000
>@@ -259,6 +259,13 @@
> tier_99_dirs	+= browser
>+tier_99_dirs	+= toolkit/xre mail

Let's put toolkit/xre in a section that's conditional on MOZ_XUL_APP.

>+ifdef MOZ_XUL_APP
> else
> tier_99_dirs	+= xpfe/bootstrap
Attachment #119539 - Flags: review-
mscott - that is exactly what I added:  MOZ_XPFE_COMPONENTS.  The meaning is a
bit overloaded.  Eventually, session history will move out of mozilla/xpfe and I
will not have to actually build (still need to export) anything in mozilla/xpfe.
 Thanks for the clarification.
Bryner, this patch incorporates your review comments with the exception of:

>+tier_99_dirs	  += toolkit/xre mail
You wanted to put toolkit/xre in a MOZ_XUL_APP conditional. I don't think we
want to do that. Currently toolkit/xre is included when you build
mozilla/toolkit. We explicitly list it here for minotaur because currently
minotaur does not build the toolkit directory with the exception of
toolkit/xre. Once we move to the new toolkit, this will go away and we'll build
toolkit/xre when the toolkit is built.

2) You wanted a single pull of mozilla/toolkit conditional on MOZ_XUL_APP in I put that in this patch, but I don't think we really want to do
this. If you do it that way, then a user must define MOZ_XUL_APP in their
environment for to see it during the pull. Maybe I was doing
something wrong but we were never checking out the toolkit unless I explicitly
defined MOZ_XUL_APP in .mozconfig before the tree is pullled. Our implicit
setting in was not enough. Do we want to make minotaur
and phoenix users define this variable? (I don't think so). What ifdef should
we wrap the change in in for pulling mozilla toolkit in then? A if
phoenix or if minotaur ifdef?
Attachment #119539 - Attachment is obsolete: true
Attachment #120332 - Flags: superreview?(bryner)
Comment on attachment 120332 [details] [diff] [review]
updated patch with bryner's review comments

>RCS file: /cvsroot/mozilla/,v
>retrieving revision 1.189
>diff -u -w -r1.189
>---	11 Dec 2002 07:06:43 -0000	1.189
>+++	10 Apr 2003 22:20:29 -0000
>@@ -349,9 +349,22 @@
> endif
> ####################################
>+# CVS defines for mozilla/toolkit (pulled and built if MOZ_XUL_APP is set)
>+ifdef MOZ_XUL_APP

Sorry, I was pretty vague about this.  What I was thinking was, put this
_after_ the phoenix and minotaur sections and have those set MOZ_XUL_APP=1
automatically.	Sound ok?

sr=bryner with that change.
Attachment #120332 - Flags: superreview?(bryner) → superreview+
Attached patch updated patchSplinter Review
Updated patch, renaming MOZ_MINOTAUR to MOZ_THUNDERBIRD, added bryner's last
comment. will carry over his sr
Attachment #120332 - Attachment is obsolete: true
Attachment #120801 - Flags: superreview+
checked in. but you need Bug #194315 if you are going to actually build
thunderbird. That patch is next on my plate. 
Assignee: mscott → scott
Closed: 20 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.