2012-04-17 07:11:53 -07:00
|
|
|
# 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/.
|
|
|
|
|
|
|
|
# Don't create a dependency on mozglue, which is impossible (difficult?)
|
|
|
|
# to dynamically link into our executable, as we copy it to arbitrary locations.
|
|
|
|
MOZ_GLUE_LDFLAGS =
|
|
|
|
|
|
|
|
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 := $(shell cat $(topsrcdir)/browser/config/version.txt)
|
|
|
|
DEFINES += -DAPP_VERSION=$(APP_VERSION)
|
|
|
|
|
|
|
|
# Uninstaller
|
|
|
|
ifdef LOCALE_MERGEDIR
|
|
|
|
PPL_LOCALE_ARGS = \
|
2013-04-12 01:23:10 -07:00
|
|
|
--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 \
|
2012-04-17 07:11:53 -07:00
|
|
|
$(NULL)
|
|
|
|
else
|
2013-04-12 01:23:10 -07:00
|
|
|
PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller
|
2012-04-17 07:11:53 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
libs::
|
|
|
|
$(RM) -r $(CONFIG_DIR)
|
|
|
|
$(MKDIR) $(CONFIG_DIR)
|
2013-11-08 17:35:44 -08:00
|
|
|
$(call py_action,preprocessor,-Fsubstitution \
|
2012-04-17 07:11:53 -07:00
|
|
|
$(DEFINES) $(ACDEFINES) \
|
2013-11-08 17:35:44 -08:00
|
|
|
$(srcdir)/webapp-uninstaller.nsi.in -o $(CONFIG_DIR)/webapp-uninstaller.nsi)
|
2012-04-17 07:11:53 -07:00
|
|
|
$(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
|
|
|
|
|
2013-04-12 01:23:10 -07:00
|
|
|
PROGRAMS_DEST = $(DIST)/bin
|
|
|
|
|
2012-04-17 07:11:53 -07:00
|
|
|
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
|