diff --git a/browser/confvars.sh b/browser/confvars.sh index 13ca08894eb..2e6607e7c70 100755 --- a/browser/confvars.sh +++ b/browser/confvars.sh @@ -59,6 +59,7 @@ MOZ_EXTENSIONS_DEFAULT=" gnomevfs" MOZ_BRANDING_DIRECTORY=browser/branding/nightly MOZ_OFFICIAL_BRANDING_DIRECTORY=browser/branding/official MOZ_APP_ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384} +MAR_CHANNEL_ID=firefox-mozilla-central MOZ_PROFILE_MIGRATOR=1 MOZ_EXTENSION_MANAGER=1 MOZ_APP_STATIC_INI=1 diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in index 4bde9036621..6f04b3a9245 100644 --- a/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in @@ -97,6 +97,7 @@ @BINPATH@/@MOZ_APP_NAME@ #endif @BINPATH@/application.ini +@BINPATH@/update-settings.ini @BINPATH@/platform.ini #ifndef XP_OS2 @BINPATH@/@DLL_PREFIX@mozsqlite3@DLL_SUFFIX@ diff --git a/build/Makefile.in b/build/Makefile.in index f50833dd8d3..9c4d3acde4f 100644 --- a/build/Makefile.in +++ b/build/Makefile.in @@ -68,6 +68,10 @@ endif ifdef MOZ_APP_BASENAME DIST_FILES = application.ini +ifneq (android,$(MOZ_WIDGET_TOOLKIT)) +DIST_FILES += update-settings.ini +endif + ifdef LIBXUL_SDK GRE_MILESTONE = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build Milestone) APP_INI_DEPS = $(LIBXUL_DIST)/bin/platform.ini @@ -99,6 +103,7 @@ DEFINES += \ -DMOZ_APP_BASENAME="$(MOZ_APP_BASENAME)" \ -DMOZ_APP_VENDOR="$(MOZ_APP_VENDOR)" \ -DMOZ_APP_ID="$(MOZ_APP_ID)" \ + -DMAR_CHANNEL_ID="$(MAR_CHANNEL_ID)" \ $(NULL) ifdef MOZ_APP_PROFILE @@ -153,6 +158,12 @@ leaktest.py: leaktest.py.in chmod +x $@ GARBAGE += leaktest.py +ifneq (android,$(MOZ_WIDGET_TOOLKIT)) +update-settings.ini: update-settings.ini.in $(APP_INI_DEPS) + $(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $< > $@ +GARBAGE += update-settings.ini +endif + ifdef MOZ_APP_BASENAME application.ini: application.ini.in $(APP_INI_DEPS) $(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $< > $@ diff --git a/build/update-settings.ini.in b/build/update-settings.ini.in new file mode 100644 index 00000000000..bd98011499b --- /dev/null +++ b/build/update-settings.ini.in @@ -0,0 +1,44 @@ +#if 0 +; ***** BEGIN LICENSE BLOCK ***** +; Version: MPL 1.1/GPL 2.0/LGPL 2.1 +; +; The contents of this file are subject to the Mozilla Public License Version +; 1.1 (the "License"); you may not use this file except in compliance with +; the License. You may obtain a copy of the License at +; http://www.mozilla.org/MPL/ +; +; Software distributed under the License is distributed on an "AS IS" basis, +; WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +; for the specific language governing rights and limitations under the +; License. +; +; The Original Code is MAR channel config. +; +; The Initial Developer of the Original Code is +; Mozilla Foundation. +; Portions created by the Initial Developer are Copyright (C) 2011 +; the Initial Developer. All Rights Reserved. +; +; Contributor(s): +; Brian R. Bondy +; +; Alternatively, the contents of this file may be used under the terms of +; either the GNU General Public License Version 2 or later (the "GPL"), or +; the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), +; in which case the provisions of the GPL or the LGPL are applicable instead +; of those above. If you wish to allow use of your version of this file only +; under the terms of either the GPL or the LGPL, and not to allow others to +; use your version of this file under the terms of the MPL, indicate your +; decision by deleting the provisions above and replace them with the notice +; and other provisions required by the GPL or the LGPL. If you do not delete +; the provisions above, a recipient may use your version of this file under +; the terms of any one of the MPL, the GPL or the LGPL. +; +; ***** END LICENSE BLOCK ***** +#endif +; If you modify this file updates may fail. +; Do not modify this file. + +#filter substitution +[Settings] +MAR_CHANNEL_ID=@MAR_CHANNEL_ID@ diff --git a/config/autoconf.mk.in b/config/autoconf.mk.in index 6a778b922ab..faf328de53e 100644 --- a/config/autoconf.mk.in +++ b/config/autoconf.mk.in @@ -53,6 +53,7 @@ MOZ_APP_BASENAME = @MOZ_APP_BASENAME@ MOZ_APP_VENDOR = @MOZ_APP_VENDOR@ MOZ_APP_PROFILE = @MOZ_APP_PROFILE@ MOZ_APP_ID = @MOZ_APP_ID@ +MAR_CHANNEL_ID = @MAR_CHANNEL_ID@ MOZ_PROFILE_MIGRATOR = @MOZ_PROFILE_MIGRATOR@ MOZ_EXTENSION_MANAGER = @MOZ_EXTENSION_MANAGER@ MOZ_APP_UA_NAME = @MOZ_APP_UA_NAME@ diff --git a/configure.in b/configure.in index d626db81811..b0d1d6d984f 100644 --- a/configure.in +++ b/configure.in @@ -8694,6 +8694,7 @@ AC_SUBST(MOZ_APP_BASENAME) AC_SUBST(MOZ_APP_VENDOR) AC_SUBST(MOZ_APP_PROFILE) AC_SUBST(MOZ_APP_ID) +AC_SUBST(MAR_CHANNEL_ID) AC_SUBST(MOZ_PROFILE_MIGRATOR) AC_SUBST(MOZ_EXTENSION_MANAGER) AC_DEFINE_UNQUOTED(MOZ_APP_UA_NAME, "$MOZ_APP_UA_NAME")