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