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
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
)
15 nsis
/uninstaller.nsi \
21 ifdef MOZ_MAINTENANCE_SERVICE
23 nsis
/maintenanceservice_installer.nsi \
41 -DMOZ_APP_NAME
=$(MOZ_APP_NAME
) \
42 -DMOZ_APP_DISPLAYNAME
='${MOZ_APP_DISPLAYNAME}' \
43 -DMOZILLA_VERSION
=${MOZILLA_VERSION} \
46 include $(topsrcdir
)/config
/config.mk
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 \
55 PPL_LOCALE_ARGS
=$(call EXPAND_LOCALE_SRCDIR
,browser
/locales
)/installer
58 OVERRIDE_DEFAULT_GOAL
:= 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.
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
)
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