Bug 956609 - Land the IM front-end in comm-central: Switch instantbird to im, r=florian.
--- a/im/app.mozbuild
+++ b/im/app.mozbuild
@@ -11,9 +11,9 @@ if not CONFIG['COMM_BUILD']:
include('/toolkit/toolkit.mozbuild')
if CONFIG['MOZ_EXTENSIONS']:
add_tier_dir('app', 'extensions')
else:
add_tier_dir('app', CONFIG['MOZ_BRANDING_DIRECTORY'])
add_tier_dir('app', 'chat')
- add_tier_dir('app', 'instantbird')
+ add_tier_dir('app', 'im')
--- a/im/app/Makefile.in
+++ b/im/app/Makefile.in
@@ -9,17 +9,17 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
AB_CD = $(MOZ_UI_LOCALE)
GRE_MILESTONE = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build Milestone)
GRE_BUILDID = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build BuildID)
-LICENSE_TXT_FILE = $(topsrcdir)/instantbird/LICENSE.txt
+LICENSE_TXT_FILE = $(topsrcdir)/im/LICENSE.txt
DEFINES += \
-DINSTANTBIRD_ICO=\"$(DIST)/branding/instantbird.ico\" \
-DAB_CD=$(AB_CD) \
-DGRE_MILESTONE=$(GRE_MILESTONE) \
-DGRE_BUILDID=$(GRE_BUILDID) \
$(NULL)
@@ -294,18 +294,18 @@ GARBAGE += module.ver
libs:: $(srcdir)/profile/prefs.js
$(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/defaults/profile
# XXX This is a hack to ensure that we get the right xpcshell.ini for our tests.
# mozilla-central does this in testing/xpcshell-tests which means that it is very
# hard for anyone to specify anything else.
libs::
- $(INSTALL) $(topsrcdir)/instantbird/test/xpcshell.ini $(MOZDEPTH)/_tests/xpcshell
- cp $(topsrcdir)/instantbird/test/xpcshell.ini $(MOZDEPTH)/_tests/xpcshell/all-test-dirs.list
+ $(INSTALL) $(topsrcdir)/im/test/xpcshell.ini $(MOZDEPTH)/_tests/xpcshell
+ cp $(topsrcdir)/im/test/xpcshell.ini $(MOZDEPTH)/_tests/xpcshell/all-test-dirs.list
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
AB := $(firstword $(subst -, ,$(AB_CD)))
MAC_APP_NAME = $(MOZ_APP_DISPLAYNAME)
ifdef MOZ_DEBUG
--- a/im/build.mk
+++ b/im/build.mk
@@ -72,25 +72,25 @@ FORCE_UPDATE := components/components.li
#If there's a symbol server:
# SYMBOL_SERVER_HOST=symbols.instantbird.org
# SYMBOL_SERVER_PATH=/www/instantbird/socorro/symbols
# SYMBOL_SERVER_PORT=22
# SYMBOL_SERVER_USER=buildbot
distribution:
@$(MAKE) buildsymbols
- @$(MAKE) -C instantbird/installer libs installer
+ @$(MAKE) -C im/installer libs installer
ifdef ENABLE_TESTS
$(MAKE) xpcshell-tests
endif
ifdef MOZ_UPDATE_PACKAGING
$(MAKE) -C $(MOZDEPTH)/tools/update-packaging full-update PKG_INST_PATH=
endif
ifdef L10NBASEDIR
- $(foreach locale,$(SHIPPED_LOCALES),$(MAKE) -C instantbird/locales/ repack-$(locale) LOCALE_MERGEDIR=mergedir MOZ_MAKE_COMPLETE_MAR=$(MOZ_UPDATE_PACKAGING) ;)
+ $(foreach locale,$(SHIPPED_LOCALES),$(MAKE) -C im/locales/ repack-$(locale) LOCALE_MERGEDIR=mergedir MOZ_MAKE_COMPLETE_MAR=$(MOZ_UPDATE_PACKAGING) ;)
endif
ifdef MOZ_UPDATE_PACKAGING
ifdef LIST_PREVIOUS_MAR_CMD
rm -rf $(PREVIOUS_MAR_DIR) $(PATCH_FILE)
mkdir $(PREVIOUS_MAR_DIR)
touch $(PATCH_FILE)
$(foreach marline,$(shell $(LIST_PREVIOUS_MAR_CMD)),\
$(foreach MAR_FILE_SRC,$(shell echo $(marline) |cut -d : -f 3),\
@@ -105,31 +105,31 @@ endif
ifdef SYMBOL_SERVER_HOST
@$(MAKE) uploadsymbols
endif
ifdef UPLOAD_CMD
$(MAKE) upload
endif
installer:
- @$(MAKE) -C instantbird/installer installer
+ @$(MAKE) -C im/installer installer
-SHIPPED_LOCALES_FILE = $(topsrcdir)/instantbird/locales/shipped-locales
+SHIPPED_LOCALES_FILE = $(topsrcdir)/im/locales/shipped-locales
SHIPPED_LOCALES := $(shell if test -f $(SHIPPED_LOCALES_FILE); then cat $(SHIPPED_LOCALES_FILE); fi)
package:
- @$(MAKE) -C instantbird/installer
+ @$(MAKE) -C im/installer
install::
- @$(MAKE) -C instantbird/installer install
+ @$(MAKE) -C im/installer install
upload:
ifdef UPLOAD_CMD
$(PRE_UPLOAD_CMD)
$(UPLOAD_CMD)
$(POST_UPLOAD_CMD)
endif
ib::
@$(MAKE) -C chat export libs
- @$(MAKE) -C instantbird libs
+ @$(MAKE) -C im libs
endif # COMM_BUILD
--- a/im/confvars.sh
+++ b/im/confvars.sh
@@ -9,11 +9,11 @@ MOZ_ENABLE_LIBXUL=1
MOZ_CHROME_FILE_FORMAT=omni
MOZ_UPDATER=1
MOZ_MATHML=
MOZ_APP_VERSION_TXT=${_topsrcdir}/$MOZ_BUILD_APP/config/version.txt
MOZ_APP_VERSION=`cat $MOZ_APP_VERSION_TXT`
INSTANTBIRD_VERSION=$MOZ_APP_VERSION
-MOZ_BRANDING_DIRECTORY=instantbird/branding/nightly
-MOZ_OFFICIAL_BRANDING_DIRECTORY=instantbird/branding/release
+MOZ_BRANDING_DIRECTORY=im/branding/nightly
+MOZ_OFFICIAL_BRANDING_DIRECTORY=other-licenses/branding/instantbird
MOZ_APP_ID={33cb9019-c295-46dd-be21-8c4936574bee}
--- a/im/installer/Makefile.in
+++ b/im/installer/Makefile.in
@@ -18,17 +18,17 @@ MOZ_PKG_REMOVALS = $(srcdir)/removed-fil
MOZ_PKG_MANIFEST_P = $(srcdir)/package-manifest.in
# Some files have been already bundled with xulrunner
ifndef SYSTEM_LIBXUL
MOZ_PKG_FATAL_WARNINGS = 1
endif
MOZ_NONLOCALIZED_PKG_LIST = \
xpcom \
- instantbird \
+ im \
$(NULL)
MOZ_LOCALIZED_PKG_LIST = $(AB_CD)
DEFINES += -DAB_CD=$(AB_CD) -DMOZ_APP_NAME=$(MOZ_APP_NAME) -DPREF_DIR=$(PREF_DIR)
ifdef MOZ_DEBUG
DEFINES += -DMOZ_DEBUG=1
@@ -111,17 +111,17 @@ ifeq (Darwin, $(OS_ARCH))
BINPATH = $(_BINPATH)
DEFINES += -DAPPNAME=$(_APPNAME)
else
BINPATH = bin
endif
DEFINES += -DBINPATH=$(BINPATH)
libs::
- $(MAKE) -C $(DEPTH)/instantbird/locales langpack
+ $(MAKE) -C $(DEPTH)/im/locales langpack
ifeq (WINNT,$(OS_ARCH))
PKGCOMP_FIND_OPTS =
else
PKGCOMP_FIND_OPTS = -L
endif
ifeq (Darwin, $(OS_ARCH))
FINDPATH = $(_APPNAME)/Contents/MacOS
--- a/im/installer/windows/Makefile.in
+++ b/im/installer/windows/Makefile.in
@@ -54,22 +54,22 @@ installer::
uninstaller::
$(RM) -rf $(CONFIG_DIR) && mkdir $(CONFIG_DIR)
$(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
$(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
$(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) \
$(srcdir)/nsis/defines.nsi.in > $(CONFIG_DIR)/defines.nsi
$(PYTHON) $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
--preprocess-locale $(MOZILLA_SRCDIR) \
- $(call EXPAND_LOCALE_SRCDIR,instantbird/locales)/installer $(AB_CD) $(CONFIG_DIR)
+ $(call EXPAND_LOCALE_SRCDIR,im/locales)/installer $(AB_CD) $(CONFIG_DIR)
$(CONFIG_DIR)/setup.exe::
$(RM) -rf $(CONFIG_DIR) && mkdir $(CONFIG_DIR)
$(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
$(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
$(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) \
$(srcdir)/nsis/defines.nsi.in > $(CONFIG_DIR)/defines.nsi
$(PYTHON) $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
--preprocess-locale $(MOZILLA_SRCDIR) \
- $(call EXPAND_LOCALE_SRCDIR,instantbird/locales)/installer $(AB_CD) $(CONFIG_DIR)
+ $(call EXPAND_LOCALE_SRCDIR,im/locales)/installer $(AB_CD) $(CONFIG_DIR)
include $(topsrcdir)/config/rules.mk
include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/windows/nsis/makensis.mk
--- a/im/locales/Makefile.in
+++ b/im/locales/Makefile.in
@@ -15,17 +15,17 @@ include $(topsrcdir)/config/config.mk
DEFINES += -DMOZ_APP_MAXVERSION=$(MOZ_APP_MAXVERSION)
vpath %.xml @srcdir@/en-US/searchplugins
vpath %.xml $(LOCALE_SRCDIR)/searchplugins
_ABS_SRCDIR := $(call core_abspath,$(topsrcdir))
ifndef MOZ_BRANDING_DIRECTORY
-MOZ_BRANDING_DIRECTORY = instantbird/branding/nightly
+MOZ_BRANDING_DIRECTORY = im/branding/nightly
endif
SUBMAKEFILES += \
$(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \
$(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \
$(NULL)
# This makefile uses variable overrides from the libs-% target to
@@ -100,17 +100,17 @@ repackage-win32-installer: $(WIN32_INSTA
$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY) export
$(MAKE) -C ../installer/windows CONFIG_DIR=l10ngen l10ngen/setup.exe l10ngen/7zSD.sfx
$(MAKE) repackage-zip \
AB_CD=$(AB_CD) \
MOZ_PKG_FORMAT=SFX7Z \
ZIP_IN=$(WIN32_INSTALLER_IN) \
ZIP_OUT=$(WIN32_INSTALLER_OUT) \
SFX_HEADER="$(PWD)/../installer/windows/l10ngen/7zSD.sfx \
- $(_ABS_SRCDIR)/instantbird/installer/windows/app.tag"
+ $(_ABS_SRCDIR)/im/installer/windows/app.tag"
ifeq (WINNT,$(OS_ARCH))
repackage-win32-installer-%: $(WIN32_INSTALLER_IN) libs-%
@$(MAKE) repackage-win32-installer AB_CD=$* WIN32_INSTALLER_IN=$(WIN32_INSTALLER_IN)
else
repackage-win32-installer-%: ;
endif