2012-05-21 11:12:37 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2004-03-11 23:18:19 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
2004-03-11 23:18:19 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2004-06-02 20:12:23 +00:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2004-12-02 00:52:27 +00:00
|
|
|
include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
|
|
|
|
|
2006-06-27 20:27:41 +00:00
|
|
|
CONFIG_DIR = instgen
|
2006-06-09 12:58:39 +00:00
|
|
|
SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.sfx
|
2009-03-19 18:56:40 +00:00
|
|
|
APP_VERSION := $(shell cat $(srcdir)/../../config/version.txt)
|
2009-02-15 23:04:05 +00:00
|
|
|
DEFINES += -DAPP_VERSION=$(APP_VERSION)
|
2011-04-13 06:43:18 +00:00
|
|
|
PRE_RELEASE_SUFFIX := ""
|
2009-02-15 23:04:05 +00:00
|
|
|
DEFINES += -DPRE_RELEASE_SUFFIX="$(PRE_RELEASE_SUFFIX)"
|
2004-06-02 20:12:23 +00:00
|
|
|
|
2010-07-30 05:39:25 +00:00
|
|
|
INSTALLER_FILES = \
|
|
|
|
app.tag \
|
2006-06-22 00:24:53 +00:00
|
|
|
nsis/installer.nsi \
|
2006-08-30 00:08:35 +00:00
|
|
|
nsis/uninstaller.nsi \
|
2007-01-30 05:14:50 +00:00
|
|
|
nsis/shared.nsh \
|
2004-12-02 00:52:27 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2012-01-05 04:19:14 +00:00
|
|
|
ifdef MOZ_MAINTENANCE_SERVICE
|
|
|
|
INSTALLER_FILES += \
|
|
|
|
nsis/maintenanceservice_installer.nsi \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2009-01-13 06:22:27 +00:00
|
|
|
BRANDING_FILES = \
|
2010-07-30 05:39:25 +00:00
|
|
|
branding.nsi \
|
2012-09-28 22:46:22 +00:00
|
|
|
appname.bmp \
|
|
|
|
bgintro.bmp \
|
|
|
|
bgplain.bmp \
|
|
|
|
clock.bmp \
|
|
|
|
particles.bmp \
|
|
|
|
pencil.bmp \
|
|
|
|
pencil-rtl.bmp \
|
2006-06-09 12:58:39 +00:00
|
|
|
wizHeader.bmp \
|
2006-06-22 02:04:54 +00:00
|
|
|
wizHeaderRTL.bmp \
|
2006-06-09 12:58:39 +00:00
|
|
|
wizWatermark.bmp \
|
2006-05-22 22:29:44 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
-DAB_CD=$(AB_CD) \
|
2007-01-25 13:43:52 +00:00
|
|
|
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
|
2012-07-17 19:10:11 +00:00
|
|
|
-DMOZ_APP_DISPLAYNAME="${MOZ_APP_DISPLAYNAME}" \
|
2006-05-22 22:29:44 +00:00
|
|
|
-DMOZILLA_VERSION=${MOZILLA_VERSION} \
|
|
|
|
$(NULL)
|
2004-12-02 00:52:27 +00:00
|
|
|
|
2005-01-28 20:59:01 +00:00
|
|
|
include $(topsrcdir)/config/config.mk
|
2005-01-28 15:32:04 +00:00
|
|
|
|
2011-03-18 17:29:56 +00:00
|
|
|
ifdef LOCALE_MERGEDIR
|
|
|
|
PPL_LOCALE_ARGS = \
|
|
|
|
--l10n-dir=$(LOCALE_MERGEDIR)/browser/installer \
|
|
|
|
--l10n-dir=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer \
|
|
|
|
--l10n-dir=$(topsrcdir)/browser/locales/en-US/installer \
|
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer
|
|
|
|
endif
|
|
|
|
|
2012-08-08 07:33:16 +00:00
|
|
|
.DEFAULT_GOAL := installer
|
2006-06-09 12:58:39 +00:00
|
|
|
installer::
|
2006-05-23 21:59:16 +00:00
|
|
|
$(MAKE) -C .. installer-stage
|
2006-06-27 20:27:41 +00:00
|
|
|
$(MAKE) $(CONFIG_DIR)/setup.exe
|
|
|
|
|
2006-08-30 00:08:35 +00:00
|
|
|
# For building the uninstaller during the application build so it can be
|
|
|
|
# included for mar file generation.
|
|
|
|
uninstaller::
|
2011-04-03 07:16:49 +00:00
|
|
|
$(RM) -r $(CONFIG_DIR)
|
|
|
|
$(MKDIR) $(CONFIG_DIR)
|
2006-08-30 01:06:39 +00:00
|
|
|
$(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
|
|
|
|
$(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
|
2009-03-11 22:39:24 +00:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) \
|
2010-07-30 05:39:25 +00:00
|
|
|
$(srcdir)/nsis/defines.nsi.in > $(CONFIG_DIR)/defines.nsi
|
|
|
|
$(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
|
|
|
|
--preprocess-locale $(topsrcdir) \
|
2011-03-18 17:29:56 +00:00
|
|
|
$(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
|
2006-08-30 00:08:35 +00:00
|
|
|
|
2012-01-05 04:19:14 +00:00
|
|
|
# For building the maintenanceservice installer
|
|
|
|
ifdef MOZ_MAINTENANCE_SERVICE
|
|
|
|
maintenanceservice_installer::
|
|
|
|
$(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
|
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) \
|
|
|
|
$(srcdir)/nsis/defines.nsi.in > $(CONFIG_DIR)/defines.nsi
|
|
|
|
$(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
|
|
|
|
--preprocess-locale $(topsrcdir) \
|
|
|
|
$(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
|
|
|
|
endif
|
|
|
|
|
2006-06-27 20:27:41 +00:00
|
|
|
$(CONFIG_DIR)/setup.exe::
|
2011-04-03 07:16:49 +00:00
|
|
|
$(RM) -r $(CONFIG_DIR)
|
|
|
|
$(MKDIR) $(CONFIG_DIR)
|
2006-06-28 16:58:07 +00:00
|
|
|
$(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
|
|
|
|
$(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
|
2009-03-11 22:39:24 +00:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) \
|
2010-07-30 05:39:25 +00:00
|
|
|
$(srcdir)/nsis/defines.nsi.in > $(CONFIG_DIR)/defines.nsi
|
|
|
|
$(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
|
|
|
|
--preprocess-locale $(topsrcdir) \
|
2011-03-18 17:29:56 +00:00
|
|
|
$(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
|
2004-04-19 05:20:57 +00:00
|
|
|
|
2010-10-19 21:19:37 +00:00
|
|
|
GARBARGE_DIRS += instgen
|
|
|
|
|
2005-01-28 20:59:01 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2006-06-09 12:58:39 +00:00
|
|
|
include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk
|