Bumping manifests a=b2g-bump
[gecko.git] / browser / installer / windows / Makefile.in
blob8ebbc0e3bdf88c04cb3c8ee1ae7b0be2fe425749
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
7 CONFIG_DIR = instgen
8 SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.sfx
9 APP_VERSION := $(shell cat $(srcdir)/../../config/version.txt)
10 DEFINES += -DAPP_VERSION=$(APP_VERSION)
12 INSTALLER_FILES = \
13 app.tag \
14 nsis/installer.nsi \
15 nsis/uninstaller.nsi \
16 nsis/stub.nsi \
17 nsis/shared.nsh \
18 stub.tag \
19 $(NULL)
21 ifdef MOZ_MAINTENANCE_SERVICE
22 INSTALLER_FILES += \
23 nsis/maintenanceservice_installer.nsi \
24 $(NULL)
25 endif
27 BRANDING_FILES = \
28 branding.nsi \
29 appname.bmp \
30 bgintro.bmp \
31 clock.bmp \
32 particles.bmp \
33 pencil.bmp \
34 pencil-rtl.bmp \
35 wizHeader.bmp \
36 wizHeaderRTL.bmp \
37 wizWatermark.bmp \
38 $(NULL)
40 DEFINES += \
41 -DMOZ_APP_NAME=$(MOZ_APP_NAME) \
42 -DMOZ_APP_DISPLAYNAME='${MOZ_APP_DISPLAYNAME}' \
43 -DMOZILLA_VERSION=${MOZILLA_VERSION} \
44 $(NULL)
46 include $(topsrcdir)/config/config.mk
48 ifdef LOCALE_MERGEDIR
49 PPL_LOCALE_ARGS = \
50 --l10n-dir=$(LOCALE_MERGEDIR)/browser/installer \
51 --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer \
52 --l10n-dir=$(topsrcdir)/browser/locales/en-US/installer \
53 $(NULL)
54 else
55 PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer
56 endif
58 OVERRIDE_DEFAULT_GOAL := installer
59 installer::
60 $(MAKE) -C .. installer-stage
61 $(MAKE) $(CONFIG_DIR)/setup.exe
63 # For building the uninstaller during the application build so it can be
64 # included for mar file generation.
65 uninstaller::
66 $(RM) -r $(CONFIG_DIR)
67 $(MKDIR) $(CONFIG_DIR)
68 $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
69 $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
70 $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
71 $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
72 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
73 --preprocess-locale $(topsrcdir) \
74 $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
76 # For building the maintenanceservice installer
77 ifdef MOZ_MAINTENANCE_SERVICE
78 maintenanceservice_installer::
79 $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
80 $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
81 $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
82 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
83 --preprocess-locale $(topsrcdir) \
84 $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
85 endif
87 $(CONFIG_DIR)/setup.exe::
88 $(RM) -r $(CONFIG_DIR)
89 $(MKDIR) $(CONFIG_DIR)
90 $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
91 $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
92 $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
93 $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
94 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
95 --preprocess-locale $(topsrcdir) \
96 $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
97 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
98 --preprocess-single-file $(topsrcdir) \
99 $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \
100 nsisstrings.properties nsisstrings.nlf
101 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
102 --convert-utf8-utf16le \
103 $(srcdir)/nsis/oneoff_en-US.nsh $(CONFIG_DIR)/oneoff_en-US.nsh
105 GARBARGE_DIRS += instgen
107 include $(topsrcdir)/config/rules.mk
108 include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk