1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/installer/windows/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,109 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk 1.9 + 1.10 +CONFIG_DIR = instgen 1.11 +SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.sfx 1.12 +APP_VERSION := $(shell cat $(srcdir)/../../config/version.txt) 1.13 +DEFINES += -DAPP_VERSION=$(APP_VERSION) 1.14 + 1.15 +INSTALLER_FILES = \ 1.16 + app.tag \ 1.17 + nsis/installer.nsi \ 1.18 + nsis/uninstaller.nsi \ 1.19 + nsis/stub.nsi \ 1.20 + nsis/shared.nsh \ 1.21 + stub.tag \ 1.22 + $(NULL) 1.23 + 1.24 +ifdef MOZ_MAINTENANCE_SERVICE 1.25 +INSTALLER_FILES += \ 1.26 + nsis/maintenanceservice_installer.nsi \ 1.27 + $(NULL) 1.28 +endif 1.29 + 1.30 +BRANDING_FILES = \ 1.31 + branding.nsi \ 1.32 + appname.bmp \ 1.33 + bgintro.bmp \ 1.34 + clock.bmp \ 1.35 + particles.bmp \ 1.36 + pencil.bmp \ 1.37 + pencil-rtl.bmp \ 1.38 + wizHeader.bmp \ 1.39 + wizHeaderRTL.bmp \ 1.40 + wizWatermark.bmp \ 1.41 + $(NULL) 1.42 + 1.43 +DEFINES += \ 1.44 + -DAB_CD=$(AB_CD) \ 1.45 + -DMOZ_APP_NAME=$(MOZ_APP_NAME) \ 1.46 + -DMOZ_APP_DISPLAYNAME='${MOZ_APP_DISPLAYNAME}' \ 1.47 + -DMOZILLA_VERSION=${MOZILLA_VERSION} \ 1.48 + $(NULL) 1.49 + 1.50 +include $(topsrcdir)/config/config.mk 1.51 + 1.52 +ifdef LOCALE_MERGEDIR 1.53 +PPL_LOCALE_ARGS = \ 1.54 + --l10n-dir=$(LOCALE_MERGEDIR)/browser/installer \ 1.55 + --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer \ 1.56 + --l10n-dir=$(topsrcdir)/browser/locales/en-US/installer \ 1.57 + $(NULL) 1.58 +else 1.59 +PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer 1.60 +endif 1.61 + 1.62 +OVERRIDE_DEFAULT_GOAL := installer 1.63 +installer:: 1.64 + $(MAKE) -C .. installer-stage 1.65 + $(MAKE) $(CONFIG_DIR)/setup.exe 1.66 + 1.67 +# For building the uninstaller during the application build so it can be 1.68 +# included for mar file generation. 1.69 +uninstaller:: 1.70 + $(RM) -r $(CONFIG_DIR) 1.71 + $(MKDIR) $(CONFIG_DIR) 1.72 + $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR) 1.73 + $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR) 1.74 + $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \ 1.75 + $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi) 1.76 + $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ 1.77 + --preprocess-locale $(topsrcdir) \ 1.78 + $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR) 1.79 + 1.80 +# For building the maintenanceservice installer 1.81 +ifdef MOZ_MAINTENANCE_SERVICE 1.82 +maintenanceservice_installer:: 1.83 + $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR) 1.84 + $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \ 1.85 + $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi) 1.86 + $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ 1.87 + --preprocess-locale $(topsrcdir) \ 1.88 + $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR) 1.89 +endif 1.90 + 1.91 +$(CONFIG_DIR)/setup.exe:: 1.92 + $(RM) -r $(CONFIG_DIR) 1.93 + $(MKDIR) $(CONFIG_DIR) 1.94 + $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR) 1.95 + $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR) 1.96 + $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \ 1.97 + $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi) 1.98 + $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ 1.99 + --preprocess-locale $(topsrcdir) \ 1.100 + $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR) 1.101 + $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ 1.102 + --preprocess-single-file $(topsrcdir) \ 1.103 + $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \ 1.104 + nsisstrings.properties nsisstrings.nlf 1.105 + $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ 1.106 + --convert-utf8-utf16le \ 1.107 + $(srcdir)/nsis/oneoff_en-US.nsh $(CONFIG_DIR)/oneoff_en-US.nsh 1.108 + 1.109 +GARBARGE_DIRS += instgen 1.110 + 1.111 +include $(topsrcdir)/config/rules.mk 1.112 +include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk