Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | # You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | # Don't create a dependency on mozglue, which is impossible (difficult?) |
michael@0 | 6 | # to dynamically link into our executable, as we copy it to arbitrary locations. |
michael@0 | 7 | MOZ_GLUE_LDFLAGS = |
michael@0 | 8 | |
michael@0 | 9 | LIBS = \ |
michael@0 | 10 | $(XPCOM_STANDALONE_STATICRUNTIME_GLUE_LDOPTS) \ |
michael@0 | 11 | $(NULL) |
michael@0 | 12 | |
michael@0 | 13 | ifndef MOZ_WINCONSOLE |
michael@0 | 14 | ifdef MOZ_DEBUG |
michael@0 | 15 | MOZ_WINCONSOLE = 1 |
michael@0 | 16 | else |
michael@0 | 17 | MOZ_WINCONSOLE = 0 |
michael@0 | 18 | endif |
michael@0 | 19 | endif |
michael@0 | 20 | |
michael@0 | 21 | # Installer stuff |
michael@0 | 22 | include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk |
michael@0 | 23 | |
michael@0 | 24 | CONFIG_DIR = instgen |
michael@0 | 25 | SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.sfx |
michael@0 | 26 | APP_VERSION := $(shell cat $(topsrcdir)/browser/config/version.txt) |
michael@0 | 27 | DEFINES += -DAPP_VERSION=$(APP_VERSION) |
michael@0 | 28 | |
michael@0 | 29 | OS_LIBS += $(call EXPAND_LIBNAME,shell32) |
michael@0 | 30 | |
michael@0 | 31 | # Uninstaller |
michael@0 | 32 | ifdef LOCALE_MERGEDIR |
michael@0 | 33 | PPL_LOCALE_ARGS = \ |
michael@0 | 34 | --l10n-dir=$(LOCALE_MERGEDIR)/webapprt/webapp-uninstaller \ |
michael@0 | 35 | --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller \ |
michael@0 | 36 | --l10n-dir=$(topsrcdir)/webapprt/locales/en-US/webapp-uninstaller \ |
michael@0 | 37 | $(NULL) |
michael@0 | 38 | else |
michael@0 | 39 | PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller |
michael@0 | 40 | endif |
michael@0 | 41 | |
michael@0 | 42 | libs:: |
michael@0 | 43 | $(RM) -r $(CONFIG_DIR) |
michael@0 | 44 | $(MKDIR) $(CONFIG_DIR) |
michael@0 | 45 | $(call py_action,preprocessor,-Fsubstitution \ |
michael@0 | 46 | $(DEFINES) $(ACDEFINES) \ |
michael@0 | 47 | $(srcdir)/webapp-uninstaller.nsi.in -o $(CONFIG_DIR)/webapp-uninstaller.nsi) |
michael@0 | 48 | $(PYTHON) \ |
michael@0 | 49 | $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ |
michael@0 | 50 | --create-nlf-file $(topsrcdir) $(AB_CD) $(CONFIG_DIR) |
michael@0 | 51 | $(PYTHON) \ |
michael@0 | 52 | $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ |
michael@0 | 53 | --preprocess-single-file $(topsrcdir) $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \ |
michael@0 | 54 | webapp-uninstaller.properties webapp-uninstaller-locale.nsh |
michael@0 | 55 | $(MAKE) webapp_uninstaller |
michael@0 | 56 | |
michael@0 | 57 | GARBAGE_DIRS += instgen |
michael@0 | 58 | |
michael@0 | 59 | PROGRAMS_DEST = $(DIST)/bin |
michael@0 | 60 | |
michael@0 | 61 | include $(topsrcdir)/config/rules.mk |
michael@0 | 62 | include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk |
michael@0 | 63 | |
michael@0 | 64 | GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid) |
michael@0 | 65 | DEFINES += -DGRE_BUILDID=$(GRE_BUILDID) |
michael@0 | 66 | |
michael@0 | 67 | webapprt.$(OBJ_SUFFIX): $(DEPTH)/config/buildid |