summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-20 14:04:43 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-20 14:04:43 +0000
commit7f4cb8a9ae27ba29da491fd75dba50930f312404 (patch)
tree7f61652f9989ba3d6611f5368879fe047a3c86bc /eclass/mozcoreconf.eclass
parentDisabling tests due to (#141097) (diff)
downloadhistorical-7f4cb8a9ae27ba29da491fd75dba50930f312404.tar.gz
historical-7f4cb8a9ae27ba29da491fd75dba50930f312404.tar.bz2
historical-7f4cb8a9ae27ba29da491fd75dba50930f312404.zip
Add mozconfig_build_opts() to add the exported vars to .mozconfig.
Diffstat (limited to 'eclass/mozcoreconf.eclass')
-rw-r--r--eclass/mozcoreconf.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/mozcoreconf.eclass b/eclass/mozcoreconf.eclass
index 286128e3518e..8a3da6873687 100644
--- a/eclass/mozcoreconf.eclass
+++ b/eclass/mozcoreconf.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mozcoreconf.eclass,v 1.9 2006/06/10 16:19:54 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozcoreconf.eclass,v 1.10 2006/07/20 14:04:43 azarah Exp $
#
# mozcoreconf.eclass : core options for mozilla
# inherit mozconfig-2 if you need USE flags
@@ -251,6 +251,14 @@ mozconfig_use_extension() {
mozconfig_annotate "${minus:-+}$1" --enable-extensions=${minus}${2}
}
+# Add all the variables for building the final product.
+mozconfig_build_opts() {
+ echo "export BUILD_OFFICIAL=1" >>.mozconfig
+ echo "export MOZILLA_OFFICIAL=1" >>.mozconfig
+ echo "mk_add_options BUILD_OFFICIAL=1" >>.mozconfig
+ echo "mk_add_options MOZILLA_OFFICIAL=1" >>.mozconfig
+}
+
# mozconfig_final: display a table describing all configuration options paired
# with reasons, then clean up extensions list
mozconfig_final() {