Difference between revisions of "Template:Mozilla-mozconfig-base"

From CBLFS
Jump to navigationJump to search
Line 44: Line 44:
 
  ac_add_options --enable-system-sqlite
 
  ac_add_options --enable-system-sqlite
 
   
 
   
  {{#if:{{#ifeq:{{{1}}}|browser|y}}{{#ifeq:{{{1}}}|mail|y}}{{#ifeq:{{{1}}}|calendar/sunbird|y}}|ac_add_options --enable-official-branding|<nowiki>#</nowiki> Official Branding is not supported for {{{1}}}}}
+
  {{#if:{{#ifeq:{{{1}}}|browser|y}}{{#ifeq:{{{1}}}|mail|y}}{{#ifeq:{{{1}}}|calendar/sunbird|y}}|ac_add_options --enable-official-branding
 +
 +
export BUILD_OFFICIAL=1
 +
export MOZILLA_OFFICIAL=1
 +
mk_add_options BUILD_OFFICIAL=1
 +
mk_add_options MOZILLA_OFFICIAL=1|<nowiki>#</nowiki> Official Branding is not supported for {{{1}}}}}
 
  EOF
 
  EOF
  

Revision as of 17:34, 27 June 2009

Creating a .mozconfig

The .mozconfig file contains the options that will be used to build firefox.

The first line includes the default configuration for compiling and the second line determines where the build objects are going to reside.

Having --with-system-nss and --with-system-nspr does not mean you *HAVE* to have a system installed version of nss and nspr. It makes the build system prefer to use the system installed version of nss and nspr over the internal version.

--enable-canvas enables support for the <canvas></canvas> tag.

--enable-svg enables support for rendering svg files.

--disable-tests prevents test programs from being built which saves a lot of disk space and time.

--disable-installer prevents the installer from being built.


cat > .mozconfig << "EOF"
. $topsrcdir/{{{1}}}/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

ac_add_options --prefix=/opt/{{{2}}}
  
ac_add_options --with-nspr-prefix=/usr
ac_add_options --with-nss-prefix=/usr
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-bz2
ac_add_options --with-system-jpeg
ac_add_options --with-system-png
ac_add_options --with-system-zlib

ac_add_options --disable-debug
ac_add_options --disable-installer
ac_add_options --disable-xprint
ac_add_options --disable-tests

ac_add_options --enable-canvas
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --enable-safe-browsing
ac_add_options --enable-svg
ac_add_options --enable-system-cairo
ac_add_options --enable-system-sqlite

# Official Branding is not supported for {{{1}}}
EOF

If you would like dual monitor support, append your your .mozconfig with the following:

cat >> .mozconfig << "EOF"
ac_add_options --enable-xinerama
EOF

If you would like to render fonts with Pango, append your your .mozconfig with the following. This can significantly slow font rendering.

cat >> .mozconfig << "EOF"
ac_add_options --enable-pango
EOF

If you do not have JDK installed then add the following to your .mozconfig:

cat >> .mozconfig << "EOF"
ac_add_options --disable-javaxpcom
EOF