76 строки
2.5 KiB
Makefile
76 строки
2.5 KiB
Makefile
# 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/.
|
|
|
|
DEPTH = @DEPTH@
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/package-name.mk
|
|
|
|
PKG_INST_PATH =
|
|
CONFIG_DIR = instgen
|
|
SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/instantbird/7zSD.sfx
|
|
DEFINES += -DMOZ_APP_VERSION=$(MOZ_APP_VERSION)
|
|
PRE_RELEASE_SUFFIX := $(shell $(PYTHON) $(topsrcdir)/mozilla/config/printprereleasesuffix.py $(MOZ_APP_VERSION))
|
|
DEFINES += -DPRE_RELEASE_SUFFIX="$(PRE_RELEASE_SUFFIX)"
|
|
|
|
ifdef MOZ_UPDATER
|
|
DEFINES += -DMOZ_UPDATER=1
|
|
endif
|
|
|
|
INSTALLER_FILES = \
|
|
app.tag \
|
|
nsis/installer.nsi \
|
|
nsis/uninstaller.nsi \
|
|
nsis/shared.nsh \
|
|
$(NULL)
|
|
|
|
BRANDING_FILES = \
|
|
branding.nsi \
|
|
wizHeader.bmp \
|
|
wizHeaderRTL.bmp \
|
|
wizWatermark.bmp \
|
|
$(NULL)
|
|
|
|
DEFINES += \
|
|
-DAB_CD=$(AB_CD) \
|
|
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
|
|
-DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNAME} \
|
|
-DMOZILLA_VERSION=${MOZILLA_VERSION} \
|
|
$(NULL)
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
installer::
|
|
$(MAKE) -C .. installer-stage
|
|
$(MAKE) $(CONFIG_DIR)/setup.exe
|
|
|
|
# For building the uninstaller during the application build so it can be
|
|
# included for mar file generation.
|
|
uninstaller::
|
|
$(RM) -rf $(CONFIG_DIR) && mkdir $(CONFIG_DIR)
|
|
$(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
|
|
$(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
|
|
$(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
|
|
$(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
|
|
$(PYTHON) $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
|
|
--preprocess-locale $(MOZILLA_SRCDIR) \
|
|
$(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)
|
|
$(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
|
|
$(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
|
|
$(PYTHON) $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
|
|
--preprocess-locale $(MOZILLA_SRCDIR) \
|
|
$(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
|