Difference between revisions of "User:Sardisson/Building with mozilla-central"
(→To do: add disable-crashreporter to the long-term list of changes) |
(disable fayt again) |
||
| Line 7: | Line 7: | ||
For mozilla-central that means: <code>hg clone http://hg.mozilla.org/mozilla-central/ mozilla-central</code> | For mozilla-central that means: <code>hg clone http://hg.mozilla.org/mozilla-central/ mozilla-central</code> | ||
| − | + | Then pull mozilla/camino and mozilla/extensions/typeaheadfind from cvs into the Hg checkout (at the moment you can skip this step, because we are disabling typeaheadfind in confvars.sh since it doesn't build). | |
| − | Then pull mozilla/camino and mozilla/extensions/typeaheadfind from cvs into the Hg checkout | ||
| − | |||
'''N.B.''' If you are building mozilla-central, you will need to adjust your .mozconfig to use gcc-4.2, Mac OS X 10.5 sdk, and a target of Mac OS X 10.5, the defaults on that branch. You should also add <code>ac_add_options --disable-crashreporter</code> to disable building the toolkit crash reporter, which doesn't build in the "10.6, gcc-4.2, 10.5sdk, 10.5 target" configuration; {{bug|491774}}. | '''N.B.''' If you are building mozilla-central, you will need to adjust your .mozconfig to use gcc-4.2, Mac OS X 10.5 sdk, and a target of Mac OS X 10.5, the defaults on that branch. You should also add <code>ac_add_options --disable-crashreporter</code> to disable building the toolkit crash reporter, which doesn't build in the "10.6, gcc-4.2, 10.5sdk, 10.5 target" configuration; {{bug|491774}}. | ||
| Line 15: | Line 13: | ||
==Build-config changes in mozilla/camino== | ==Build-config changes in mozilla/camino== | ||
| + | # In <code>camino/confvars.sh</code>, comment out the <code>MOZ_EXTENSIONS_DEFAULT=" typeaheadfind"</code> line. | ||
# In <code>camino/build.mk</code>, remove "embedding/config" from the "tier_app_dirs" rule | # In <code>camino/build.mk</code>, remove "embedding/config" from the "tier_app_dirs" rule | ||
# Add a new file, <code>camino/app-config.mk</code> that looks like [http://mxr.mozilla.org/comm-central/source/suite/app-config.mk this] but replaces all instances of <code>SUITE</code> with <code>MACBROWSER</code> | # Add a new file, <code>camino/app-config.mk</code> that looks like [http://mxr.mozilla.org/comm-central/source/suite/app-config.mk this] but replaces all instances of <code>SUITE</code> with <code>MACBROWSER</code> | ||
Revision as of 10:20, 12 October 2009
To start building Camino against Gecko 1.9.n, n>0, a number of basic build-config changes will be required.
Checkout and mozconfig
To get started, first pull mozilla-central (or mozilla-1.9.x) from Hg.
For mozilla-central that means: hg clone http://hg.mozilla.org/mozilla-central/ mozilla-central
Then pull mozilla/camino and mozilla/extensions/typeaheadfind from cvs into the Hg checkout (at the moment you can skip this step, because we are disabling typeaheadfind in confvars.sh since it doesn't build).
N.B. If you are building mozilla-central, you will need to adjust your .mozconfig to use gcc-4.2, Mac OS X 10.5 sdk, and a target of Mac OS X 10.5, the defaults on that branch. You should also add ac_add_options --disable-crashreporter to disable building the toolkit crash reporter, which doesn't build in the "10.6, gcc-4.2, 10.5sdk, 10.5 target" configuration; Bug 491774.
Build-config changes in mozilla/camino
- In
camino/confvars.sh, comment out theMOZ_EXTENSIONS_DEFAULT=" typeaheadfind"line. - In
camino/build.mk, remove "embedding/config" from the "tier_app_dirs" rule - Add a new file,
camino/app-config.mkthat looks like this but replaces all instances ofSUITEwithMACBROWSER - In
camino/Makefile.in- Remove "flashblock" and "pinstripe" from the "DIRS" variable.
- This disables flashblock, which will have to be disabled until it is made to use the new toolkit chrome manifests, and pinstripe, which will largely be obsolete but which will need to be adapted to do the new-style toolkit chrome override stuff for the app-license stuff.
- Remove the following lines from the "libs::" rule:
- $(RSYNC_ALL) $(srcdir)/embed-replacements/ embed-replacements.tmp
- cd embed-replacements.tmp && \
- $(ZIP) -r0DX ../../dist/Embed/chrome/embed.jar *
- This disables embed-replacements, which will have to be reworked for the new toolkit jar structure, or turned into new-style toolkit chrome overrides along with the app-license stuff in pinstripe.
- Remove "flashblock" and "pinstripe" from the "DIRS" variable.
The above changes should allow you to make it into the xcodebuild phase of the Camino build; at this point, real errors should start appearing!
To do
- In
camino/confvars.sh- XXXtodo: See if we can set the app name to Camino
- XXXtodo: What other changes from hendy's confvars.sh are required to get the right Gecko build (e.g., MOZ_PLACES)
- mozconfig
export MOZ_DEBUG_SYMBOLSfor NSS (Bug 468701)ac_add_options --disable-crashreporter(we don't need it, and it doesn't build on 10.6 in certain configs, anyway)