gecko-dev/webapprt/win/Makefile.in
Sylvestre Ledru 3e8388ea1e Bug 1145175 - Include the beta version in 'About Firefox' r=glandium
This should not have any effect on nightly or aurora.
Also fix browser/installer/windows/Makefile.in
webapprt/win/Makefile.in to use the variable instead
of the file
2015-06-12 11:54:28 +02:00

58 lines
1.8 KiB
Makefile

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
ifndef MOZ_WINCONSOLE
ifdef MOZ_DEBUG
MOZ_WINCONSOLE = 1
else
MOZ_WINCONSOLE = 0
endif
endif
# Installer stuff
include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
CONFIG_DIR = instgen
SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.sfx
APP_VERSION := $(FIREFOX_VERSION)
DEFINES += -DAPP_VERSION=$(APP_VERSION)
# Uninstaller
ifdef LOCALE_MERGEDIR
PPL_LOCALE_ARGS = \
--l10n-dir=$(LOCALE_MERGEDIR)/webapprt/webapp-uninstaller \
--l10n-dir=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller \
--l10n-dir=$(topsrcdir)/webapprt/locales/en-US/webapp-uninstaller \
$(NULL)
else
PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller
endif
libs::
$(RM) -r $(CONFIG_DIR)
$(MKDIR) $(CONFIG_DIR)
$(call py_action,preprocessor,-Fsubstitution \
$(DEFINES) $(ACDEFINES) \
$(srcdir)/webapp-uninstaller.nsi.in -o $(CONFIG_DIR)/webapp-uninstaller.nsi)
$(PYTHON) \
$(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
--create-nlf-file $(topsrcdir) $(AB_CD) $(CONFIG_DIR)
$(PYTHON) \
$(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
--preprocess-single-file $(topsrcdir) $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \
webapp-uninstaller.properties webapp-uninstaller-locale.nsh
$(MAKE) webapp_uninstaller
GARBAGE_DIRS += instgen
PROGRAMS_DEST = $(DIST)/bin
include $(topsrcdir)/config/rules.mk
include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk
GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid)
DEFINES += -DGRE_BUILDID=$(GRE_BUILDID)
webapprt.$(OBJ_SUFFIX): $(DEPTH)/config/buildid