1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/webapprt/win/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,67 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 +# You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +# Don't create a dependency on mozglue, which is impossible (difficult?) 1.9 +# to dynamically link into our executable, as we copy it to arbitrary locations. 1.10 +MOZ_GLUE_LDFLAGS = 1.11 + 1.12 +LIBS = \ 1.13 + $(XPCOM_STANDALONE_STATICRUNTIME_GLUE_LDOPTS) \ 1.14 + $(NULL) 1.15 + 1.16 +ifndef MOZ_WINCONSOLE 1.17 +ifdef MOZ_DEBUG 1.18 +MOZ_WINCONSOLE = 1 1.19 +else 1.20 +MOZ_WINCONSOLE = 0 1.21 +endif 1.22 +endif 1.23 + 1.24 +# Installer stuff 1.25 +include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk 1.26 + 1.27 +CONFIG_DIR = instgen 1.28 +SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.sfx 1.29 +APP_VERSION := $(shell cat $(topsrcdir)/browser/config/version.txt) 1.30 +DEFINES += -DAPP_VERSION=$(APP_VERSION) 1.31 + 1.32 +OS_LIBS += $(call EXPAND_LIBNAME,shell32) 1.33 + 1.34 +# Uninstaller 1.35 +ifdef LOCALE_MERGEDIR 1.36 +PPL_LOCALE_ARGS = \ 1.37 + --l10n-dir=$(LOCALE_MERGEDIR)/webapprt/webapp-uninstaller \ 1.38 + --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller \ 1.39 + --l10n-dir=$(topsrcdir)/webapprt/locales/en-US/webapp-uninstaller \ 1.40 + $(NULL) 1.41 +else 1.42 +PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller 1.43 +endif 1.44 + 1.45 +libs:: 1.46 + $(RM) -r $(CONFIG_DIR) 1.47 + $(MKDIR) $(CONFIG_DIR) 1.48 + $(call py_action,preprocessor,-Fsubstitution \ 1.49 + $(DEFINES) $(ACDEFINES) \ 1.50 + $(srcdir)/webapp-uninstaller.nsi.in -o $(CONFIG_DIR)/webapp-uninstaller.nsi) 1.51 + $(PYTHON) \ 1.52 + $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ 1.53 + --create-nlf-file $(topsrcdir) $(AB_CD) $(CONFIG_DIR) 1.54 + $(PYTHON) \ 1.55 + $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ 1.56 + --preprocess-single-file $(topsrcdir) $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \ 1.57 + webapp-uninstaller.properties webapp-uninstaller-locale.nsh 1.58 + $(MAKE) webapp_uninstaller 1.59 + 1.60 +GARBAGE_DIRS += instgen 1.61 + 1.62 +PROGRAMS_DEST = $(DIST)/bin 1.63 + 1.64 +include $(topsrcdir)/config/rules.mk 1.65 +include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk 1.66 + 1.67 +GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid) 1.68 +DEFINES += -DGRE_BUILDID=$(GRE_BUILDID) 1.69 + 1.70 +webapprt.$(OBJ_SUFFIX): $(DEPTH)/config/buildid