|
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/. |
|
4 |
|
5 # Don't create a dependency on mozglue, which is impossible (difficult?) |
|
6 # to dynamically link into our executable, as we copy it to arbitrary locations. |
|
7 MOZ_GLUE_LDFLAGS = |
|
8 |
|
9 LIBS = \ |
|
10 $(XPCOM_STANDALONE_STATICRUNTIME_GLUE_LDOPTS) \ |
|
11 $(NULL) |
|
12 |
|
13 ifndef MOZ_WINCONSOLE |
|
14 ifdef MOZ_DEBUG |
|
15 MOZ_WINCONSOLE = 1 |
|
16 else |
|
17 MOZ_WINCONSOLE = 0 |
|
18 endif |
|
19 endif |
|
20 |
|
21 # Installer stuff |
|
22 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk |
|
23 |
|
24 CONFIG_DIR = instgen |
|
25 SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.sfx |
|
26 APP_VERSION := $(shell cat $(topsrcdir)/browser/config/version.txt) |
|
27 DEFINES += -DAPP_VERSION=$(APP_VERSION) |
|
28 |
|
29 OS_LIBS += $(call EXPAND_LIBNAME,shell32) |
|
30 |
|
31 # Uninstaller |
|
32 ifdef LOCALE_MERGEDIR |
|
33 PPL_LOCALE_ARGS = \ |
|
34 --l10n-dir=$(LOCALE_MERGEDIR)/webapprt/webapp-uninstaller \ |
|
35 --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller \ |
|
36 --l10n-dir=$(topsrcdir)/webapprt/locales/en-US/webapp-uninstaller \ |
|
37 $(NULL) |
|
38 else |
|
39 PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,webapprt/locales)/webapp-uninstaller |
|
40 endif |
|
41 |
|
42 libs:: |
|
43 $(RM) -r $(CONFIG_DIR) |
|
44 $(MKDIR) $(CONFIG_DIR) |
|
45 $(call py_action,preprocessor,-Fsubstitution \ |
|
46 $(DEFINES) $(ACDEFINES) \ |
|
47 $(srcdir)/webapp-uninstaller.nsi.in -o $(CONFIG_DIR)/webapp-uninstaller.nsi) |
|
48 $(PYTHON) \ |
|
49 $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ |
|
50 --create-nlf-file $(topsrcdir) $(AB_CD) $(CONFIG_DIR) |
|
51 $(PYTHON) \ |
|
52 $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \ |
|
53 --preprocess-single-file $(topsrcdir) $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \ |
|
54 webapp-uninstaller.properties webapp-uninstaller-locale.nsh |
|
55 $(MAKE) webapp_uninstaller |
|
56 |
|
57 GARBAGE_DIRS += instgen |
|
58 |
|
59 PROGRAMS_DEST = $(DIST)/bin |
|
60 |
|
61 include $(topsrcdir)/config/rules.mk |
|
62 include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk |
|
63 |
|
64 GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid) |
|
65 DEFINES += -DGRE_BUILDID=$(GRE_BUILDID) |
|
66 |
|
67 webapprt.$(OBJ_SUFFIX): $(DEPTH)/config/buildid |