browser/installer/windows/Makefile.in

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:d046e257b75c
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/.
4
5 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
6
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)
11
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)
20
21 ifdef MOZ_MAINTENANCE_SERVICE
22 INSTALLER_FILES += \
23 nsis/maintenanceservice_installer.nsi \
24 $(NULL)
25 endif
26
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)
39
40 DEFINES += \
41 -DAB_CD=$(AB_CD) \
42 -DMOZ_APP_NAME=$(MOZ_APP_NAME) \
43 -DMOZ_APP_DISPLAYNAME='${MOZ_APP_DISPLAYNAME}' \
44 -DMOZILLA_VERSION=${MOZILLA_VERSION} \
45 $(NULL)
46
47 include $(topsrcdir)/config/config.mk
48
49 ifdef LOCALE_MERGEDIR
50 PPL_LOCALE_ARGS = \
51 --l10n-dir=$(LOCALE_MERGEDIR)/browser/installer \
52 --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer \
53 --l10n-dir=$(topsrcdir)/browser/locales/en-US/installer \
54 $(NULL)
55 else
56 PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer
57 endif
58
59 OVERRIDE_DEFAULT_GOAL := installer
60 installer::
61 $(MAKE) -C .. installer-stage
62 $(MAKE) $(CONFIG_DIR)/setup.exe
63
64 # For building the uninstaller during the application build so it can be
65 # included for mar file generation.
66 uninstaller::
67 $(RM) -r $(CONFIG_DIR)
68 $(MKDIR) $(CONFIG_DIR)
69 $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
70 $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
71 $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
72 $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
73 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
74 --preprocess-locale $(topsrcdir) \
75 $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
76
77 # For building the maintenanceservice installer
78 ifdef MOZ_MAINTENANCE_SERVICE
79 maintenanceservice_installer::
80 $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
81 $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
82 $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
83 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
84 --preprocess-locale $(topsrcdir) \
85 $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
86 endif
87
88 $(CONFIG_DIR)/setup.exe::
89 $(RM) -r $(CONFIG_DIR)
90 $(MKDIR) $(CONFIG_DIR)
91 $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
92 $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
93 $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
94 $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
95 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
96 --preprocess-locale $(topsrcdir) \
97 $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
98 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
99 --preprocess-single-file $(topsrcdir) \
100 $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \
101 nsisstrings.properties nsisstrings.nlf
102 $(PYTHON) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
103 --convert-utf8-utf16le \
104 $(srcdir)/nsis/oneoff_en-US.nsh $(CONFIG_DIR)/oneoff_en-US.nsh
105
106 GARBARGE_DIRS += instgen
107
108 include $(topsrcdir)/config/rules.mk
109 include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk

mercurial