root/trunk/llmozlib2/build_mozilla/mac-universal-libxul-bits/mozconfig

Revision 11, 5.9 kB (checked in by callum.linden, 2 years ago)

Update of this branch with files from internal Linden version.
Addition of README for Windows developers
Internal Linden version is now deprecated and this branch becomes the canonical version.

Line 
1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 #
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
8 #
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
13 #
14 # The Original Code is the Mozilla Mac OS X Universal Binary Packaging System
15 #
16 # The Initial Developer of the Original Code is Google Inc.
17 # Portions created by the Initial Developer are Copyright (C) 2006
18 # the Initial Developer. All Rights Reserved.
19 #
20 # Contributor(s):
21 #  Mark Mentovai <mark@moxienet.com> (Original Author)
22 #
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 2 or later (the "GPL"), or
25 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
26 # in which case the provisions of the GPL or the LGPL are applicable instead
27 # of those above. If you wish to allow use of your version of this file only
28 # under the terms of either the GPL or the LGPL, and not to allow others to
29 # use your version of this file under the terms of the MPL, indicate your
30 # decision by deleting the provisions above and replace them with the notice
31 # and other provisions required by the GPL or the LGPL. If you do not delete
32 # the provisions above, a recipient may use your version of this file under
33 # the terms of any one of the MPL, the GPL or the LGPL.
34 #
35 # ***** END LICENSE BLOCK *****
36
37 # As used here, arguments in $MOZ_BUILD_PROJECTS are suitable as arguments
38 # to gcc's -arch parameter.
39 mk_add_options MOZ_BUILD_PROJECTS="ppc i386"
40
41 mk_add_options MOZ_UNIFY_BDATE=1
42
43 mk_add_options MOZ_POSTFLIGHT_ALL+=build/macosx/universal/flight.mk
44
45 DARWIN_VERSION=`uname -r`
46 ac_add_app_options ppc  --target=powerpc-apple-darwin$DARWIN_VERSION
47 ac_add_app_options i386 --target=i386-apple-darwin$DARWIN_VERSION
48
49 # ppc builds run on older systems.  The minimum SDK for x86 is 10.4u.
50 ac_add_app_options ppc  --with-macos-sdk=/Developer/SDKs/MacOSX10.3.9.sdk
51 ac_add_app_options i386 --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
52
53 # when building on intel, the checks for IDL and glib are incorrect for the powerpc half of the build, and fail.
54 # Turn them off here.
55 ac_add_options --disable-libIDLtest
56 ac_add_options --disable-glibtest
57
58 # $MOZ_BUILD_APP is only defined when sourced by configure.  That's not a
59 # problem, because the variables it affects only need to be set for
60 # configure.
61 if test -n "$MOZ_BUILD_APP" ; then
62   TARGET_CPU=$MOZ_BUILD_APP
63
64   # When compiling C++, Apple gcc 4.0 produces output that requires a minimum
65   # of 10.3.9.  Use 4.0 for the x86 build, which has a higher minimum than
66   # that.  Use 3.3 for ppc, which must run on older systems.  This will
67   # completely override the compiler selected with the gcc_select command.
68   if test "$TARGET_CPU" = "ppc" ; then
69     GCC_VERSION=4.0
70   else
71     GCC_VERSION=4.0
72   fi
73
74   # It's not strictly necessary to specify -arch during native builds, but it
75   # makes the merged about:buildconfig easier to follow, and it reduces
76   # conditionalized differences between builds.
77   CC="gcc-$GCC_VERSION -arch $TARGET_CPU"
78   CXX="g++-$GCC_VERSION -arch $TARGET_CPU"
79
80   # $HOST_CXX is presently unused.  $HOST_CC will only be used during a cross
81   # compile.  Always use the 4.0 compiler, since it will always be present and
82   # will always work.
83   HOST_CC=gcc-4.0
84   HOST_CXX=g++-4.0
85
86   # These must be set for cross builds, and don't hurt straight builds.
87   RANLIB=ranlib
88   AR=ar
89   AS=$CC
90   LD=ld
91   STRIP="strip -x -S"
92
93   NATIVE_CPU=`uname -p`
94   if test "$NATIVE_CPU" = "powerpc" ; then
95     NATIVE_CPU=ppc
96   fi
97
98   # Let configure know that we mean business.
99   if test "$NATIVE_CPU" != "$TARGET_CPU" ; then
100     CROSS_COMPILE=1
101   fi
102
103   # Each per-CPU build should be entirely oblivious to the fact that a
104   # universal binary will be produced.  The exception is packager.mk, which
105   # needs to know to look for universal bits when building the .dmg.
106   UNIVERSAL_BINARY=1
107 fi
108
109
110 # parallel build (adjust to taste)
111 mk_add_options MOZ_MAKE_FLAGS=-j4
112
113 mk_add_options MOZ_CO_PROJECT=xulrunner
114 ac_add_options --enable-application=xulrunner
115 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir-mozilla-universal
116 ac_add_options --enable-optimize
117 ac_add_options --disable-debug
118 ac_add_options --disable-static
119 ac_add_options --enable-shared
120 ac_add_options --disable-ldap
121 ac_add_options --disable-mailnews
122 ac_add_options --enable-extensions=default
123 ac_add_options --enable-crypto
124 ac_add_options --disable-composer
125 ac_add_options --enable-single-profile
126 ac_add_options --disable-profilesharing
127 ac_add_options --disable-profilelocking
128 ac_add_options --disable-accessibility
129 ac_add_options --enable-jsd
130 ac_add_options --disable-installer
131 ac_add_options --enable-xpinstall
132 ac_add_options --disable-postscript
133 ac_add_options --disable-mathml
134 ac_add_options --enable-xpfe-components
135 ac_add_options --disable-dtd-debug
136 ac_add_options --disable-logging
137 ac_add_options --disable-tests
138 ac_add_options --enable-necko-protocols=http,file,about,res,jar,data
139 ac_add_options --enable-image-decoders=png,gif,jpeg
140 ac_add_options --enable-svg
141 #ac_add_options --enable-svg-renderer=cairo
142 ac_add_options --disable-javaxpcom
143 ac_add_options --disable-activex
144 ac_add_options --disable-activex-scripting
145 # MBW -- got a mysterious compile error somewhere in the canvas stuff.  Turning it off for now.
146 #ac_add_options --enable-canvas
147 ac_add_options --disable-canvas
148
149 ac_add_options --enable-cpp-rtti
150
151 # Syntax "chown_root <directory>"
152 # Should be equivalent to "chown -R root:admin <directory>"
153 #mk_add_options export CHOWN_ROOT=/usr/bin/true
154
155 # Syntax "chown_revert <directory>"
156 # Should be equivalent to "chown -R <getuid> <directory>"
157 #mk_add_options export CHOWN_REVERT=/usr/bin/true
Note: See TracBrowser for help on using the browser.