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

From CBLFS
Jump to navigationJump to search
 
(41 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
The .mozconfig file contains the options that will be used to build firefox.
 
The .mozconfig file contains the options that will be used to build firefox.
 
   
 
   
The first line includes the default configuration for compiling a browser and the second line determines where the build objects are going to reside.
+
The first line includes the default configuration for compiling and the second line determines where the build objects are going to reside.
'''ac_cv_visibility_pragma=no''' fixes build errors on 32bit non-x86 systems but won't cause any trouble on x86.
+
 
 
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.
 
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-canvas''' enables support for the <canvas></canvas> tag.
 +
 
'''--enable-svg''' enables support for rendering svg files.
 
'''--enable-svg''' enables support for rendering svg files.
'''--enable-strip''' causes the installed binaries to be stripped.
+
 
 
'''--disable-tests''' prevents test programs from being built which saves a lot of disk space and time.
 
'''--disable-tests''' prevents test programs from being built which saves a lot of disk space and time.
'''--disable-accessibility''' - disables a11y support.
+
 
 
'''--disable-installer''' prevents the installer from being built.
 
'''--disable-installer''' prevents the installer from being built.
'''--enable-official-branding''' causes the installed binaries to have the official Firefox name embedded in them. Due to license restrictions, you may not distribute binaries created using this option.
+
{{#if:{{#ifeq:{{{1}}}|browser|y}}{{#ifeq:{{{1}}}|mail|y}}{{#ifeq:{{{1}}}|calendar/sunbird|y}}|'''--enable-official-branding''' causes the installed binaries to have the official Firefox name embedded in them. Due to license restrictions, you may not distribute binaries created using this option.
 
+
}}
 
  cat > .mozconfig << "EOF"
 
  cat > .mozconfig << "EOF"
  . $topsrcdir/{{{1}}}/config/mozconfig
+
  {{#if:{{#ifeq:{{{1}}}|browser|y}}{{#ifeq:{{{1}}}|calendar/sunbird|y}}{{#ifeq:{{{1}}}|xulrunner|y}}|. $topsrcdir/{{{1}}}/config/mozconfig
 +
}}{{#if:{{#ifeq:{{{1}}}|mail|y}}|ac_add_options --enable-application=mail
 +
}}
 
  mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
 
  mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
 +
 +
ac_add_options --prefix=/opt/{{{2}}}
 
   
 
   
 
  ac_cv_visibility_pragma=no
 
  ac_cv_visibility_pragma=no
 
   
 
   
  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-nss
  ac_add_options --with-system-nspr
+
  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 --with-system-zlib
+
  ac_add_options --disable-debug
  ac_add_options --with-system-png
+
  ac_add_options --disable-installer
  ac_add_options --with-system-jpeg
+
  ac_add_options --disable-xprint
  ac_add_options --enable-system-cairo
+
  ac_add_options --disable-tests
 
   
 
   
 
  ac_add_options --enable-canvas
 
  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-svg
+
  ac_add_options --enable-system-cairo
  ac_add_options --enable-strip
+
  ac_add_options --enable-system-sqlite
ac_add_options --disable-tests
 
ac_add_options --disable-accessibility
 
ac_add_options --disable-installer
 
  ac_add_options --enable-official-branding
 
 
  EOF
 
  EOF
 +
{{#if:{{#ifeq:{{{1}}}|browser|y}}|If you have [[XULRunner]] installed and you want to use the system installed version, add the following:
  
 +
cat >> .mozconfig << "EOF"
 +
ac_add_options --with-system-libxul --with-libxul-sdk=/opt/xulrunner-{{XULRunner-Version}}/lib/xulrunner-devel-{{XULRunner-Version}}
 +
EOF
 +
}}
 
If you would like dual monitor support, append your your '''.mozconfig''' with the following:
 
If you would like dual monitor support, append your your '''.mozconfig''' with the following:
  
Line 46: Line 59:
 
  EOF
 
  EOF
  
If you have [[OpenLDAP]] installed and would like to build against it. This is required to build [[OpenOffice2]]. Append your '''.mozconfig''' with the following:
+
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"
 
  cat >> .mozconfig << "EOF"
  ac_add_options --enable-ldap
+
  ac_add_options --enable-pango
 
  EOF
 
  EOF
  
If you would like to render fonts with [[Pango]], append your your '''.mozconfig''' with the following. This can significantly slow font rendering.
+
If you do not have [[JDK]] installed then add the following to your '''.mozconfig''':
  
 
  cat >> .mozconfig << "EOF"
 
  cat >> .mozconfig << "EOF"
  ac_add_options --enable-pango
+
  ac_add_options --disable-javaxpcom
 
  EOF
 
  EOF

Latest revision as of 15:38, 11 April 2010

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"

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

ac_add_options --prefix=/opt/{{{2}}}

ac_cv_visibility_pragma=no

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
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