1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/mozapps/update/updater/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,69 @@ 1.4 +# vim:set ts=8 sw=8 sts=8 noet: 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +# Don't link the updater against libmozglue. See bug 687139 1.10 +MOZ_GLUE_LDFLAGS = 1.11 +MOZ_GLUE_PROGRAM_LDFLAGS = 1.12 + 1.13 +ifeq ($(OS_ARCH),WINNT) 1.14 +LIBS += $(call EXPAND_LIBNAME_PATH,updatecommon-standalone,../common-standalone) 1.15 +else 1.16 +LIBS += $(call EXPAND_LIBNAME_PATH,updatecommon,../common) 1.17 +endif 1.18 + 1.19 +LIBS += \ 1.20 + $(call EXPAND_LIBNAME_PATH,mar,$(DEPTH)/modules/libmar/src) \ 1.21 + $(MOZ_BZ2_LIBS) \ 1.22 + $(NULL) 1.23 + 1.24 +ifeq ($(OS_ARCH),WINNT) 1.25 +LIBS += $(call EXPAND_LIBNAME_PATH,verifymar,$(DEPTH)/modules/libmar/verify) 1.26 +OS_LIBS += $(call EXPAND_LIBNAME,comctl32 ws2_32 shell32 shlwapi) 1.27 +endif 1.28 + 1.29 +ifdef MOZ_WIDGET_GTK 1.30 +OS_CXXFLAGS += $(TK_CFLAGS) 1.31 +OS_LIBS += $(TK_LIBS) 1.32 +endif 1.33 + 1.34 +ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) #{ 1.35 +OS_LIBS += -lcutils -lsysutils 1.36 +# clear out all the --wrap flags and remove dependency on mozglue for Gonk 1.37 +WRAP_LDFLAGS := 1.38 +endif #} 1.39 + 1.40 +ifndef MOZ_WINCONSOLE 1.41 +ifdef MOZ_DEBUG 1.42 +MOZ_WINCONSOLE = 1 1.43 +else 1.44 +MOZ_WINCONSOLE = 0 1.45 +endif 1.46 +endif 1.47 + 1.48 +include $(topsrcdir)/config/rules.mk 1.49 + 1.50 +ifdef MOZ_WIDGET_GTK 1.51 +libs:: updater.png 1.52 + $(NSINSTALL) -D $(DIST)/bin/icons 1.53 + $(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/icons 1.54 +endif 1.55 + 1.56 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) 1.57 +libs:: 1.58 + $(NSINSTALL) -D $(DIST)/bin/updater.app 1.59 + rsync -a -C --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/bin/updater.app 1.60 + sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \ 1.61 + iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/updater.app/Contents/Resources/English.lproj/InfoPlist.strings 1.62 + $(NSINSTALL) -D $(DIST)/bin/updater.app/Contents/MacOS 1.63 + $(NSINSTALL) $(DIST)/bin/updater $(DIST)/bin/updater.app/Contents/MacOS 1.64 + rm -f $(DIST)/bin/updater 1.65 +endif 1.66 + 1.67 +ifeq ($(OS_ARCH),WINNT) 1.68 +EXTRA_LIBS += $(call EXPAND_LIBNAME,crypt32) 1.69 +EXTRA_LIBS += $(call EXPAND_LIBNAME,advapi32) 1.70 +endif 1.71 + 1.72 +CXXFLAGS += $(MOZ_BZ2_CFLAGS)