Bumping gaia.json for 8 gaia revision(s) a=gaia-bump
[gecko.git] / webapprt / win / Makefile.in
blob7aea88a81bf66f95e05447115e00d3d273f645db
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
5 ifndef MOZ_WINCONSOLE
6 ifdef MOZ_DEBUG
7 MOZ_WINCONSOLE = 1
8 else
9 MOZ_WINCONSOLE = 0
10 endif
11 endif
13 # Installer stuff
14 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
16 CONFIG_DIR = instgen
17 SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.sfx
18 APP_VERSION := $(shell cat $(topsrcdir)/browser/config/version.txt)
19 DEFINES += -DAPP_VERSION=$(APP_VERSION)
21 # Uninstaller
22 ifdef LOCALE_MERGEDIR
23 PPL_LOCALE_ARGS = \
24 --l10n-dir=$(LOCALE_MERGEDIR)/webapprt/webapp-uninstaller \
25 --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller \
26 --l10n-dir=$(topsrcdir)/webapprt/locales/en-US/webapp-uninstaller \
27 $(NULL)
28 else
29 PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller
30 endif
32 libs::
33 $(RM) -r $(CONFIG_DIR)
34 $(MKDIR) $(CONFIG_DIR)
35 $(call py_action,preprocessor,-Fsubstitution \
36 $(DEFINES) $(ACDEFINES) \
37 $(srcdir)/webapp-uninstaller.nsi.in -o $(CONFIG_DIR)/webapp-uninstaller.nsi)
38 $(PYTHON) \
39 $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
40 --create-nlf-file $(topsrcdir) $(AB_CD) $(CONFIG_DIR)
41 $(PYTHON) \
42 $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
43 --preprocess-single-file $(topsrcdir) $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \
44 webapp-uninstaller.properties webapp-uninstaller-locale.nsh
45 $(MAKE) webapp_uninstaller
47 GARBAGE_DIRS += instgen
49 PROGRAMS_DEST = $(DIST)/bin
51 include $(topsrcdir)/config/rules.mk
52 include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk
54 GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid)
55 DEFINES += -DGRE_BUILDID=$(GRE_BUILDID)
57 webapprt.$(OBJ_SUFFIX): $(DEPTH)/config/buildid