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