browser/installer/windows/Makefile.in

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     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 	-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)
    47 include $(topsrcdir)/config/config.mk
    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
    59 OVERRIDE_DEFAULT_GOAL := installer
    60 installer::
    61 	$(MAKE) -C .. installer-stage
    62 	$(MAKE) $(CONFIG_DIR)/setup.exe
    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)
    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
    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
   106 GARBARGE_DIRS += instgen
   108 include $(topsrcdir)/config/rules.mk
   109 include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk

mercurial