michael@0: # vim:set ts=8 sw=8 sts=8 noet: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # Don't link the updater against libmozglue. See bug 687139 michael@0: MOZ_GLUE_LDFLAGS = michael@0: MOZ_GLUE_PROGRAM_LDFLAGS = michael@0: michael@0: ifeq ($(OS_ARCH),WINNT) michael@0: LIBS += $(call EXPAND_LIBNAME_PATH,updatecommon-standalone,../common-standalone) michael@0: else michael@0: LIBS += $(call EXPAND_LIBNAME_PATH,updatecommon,../common) michael@0: endif michael@0: michael@0: LIBS += \ michael@0: $(call EXPAND_LIBNAME_PATH,mar,$(DEPTH)/modules/libmar/src) \ michael@0: $(MOZ_BZ2_LIBS) \ michael@0: $(NULL) michael@0: michael@0: ifeq ($(OS_ARCH),WINNT) michael@0: LIBS += $(call EXPAND_LIBNAME_PATH,verifymar,$(DEPTH)/modules/libmar/verify) michael@0: OS_LIBS += $(call EXPAND_LIBNAME,comctl32 ws2_32 shell32 shlwapi) michael@0: endif michael@0: michael@0: ifdef MOZ_WIDGET_GTK michael@0: OS_CXXFLAGS += $(TK_CFLAGS) michael@0: OS_LIBS += $(TK_LIBS) michael@0: endif michael@0: michael@0: ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) #{ michael@0: OS_LIBS += -lcutils -lsysutils michael@0: # clear out all the --wrap flags and remove dependency on mozglue for Gonk michael@0: WRAP_LDFLAGS := michael@0: endif #} michael@0: michael@0: ifndef MOZ_WINCONSOLE michael@0: ifdef MOZ_DEBUG michael@0: MOZ_WINCONSOLE = 1 michael@0: else michael@0: MOZ_WINCONSOLE = 0 michael@0: endif michael@0: endif michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: ifdef MOZ_WIDGET_GTK michael@0: libs:: updater.png michael@0: $(NSINSTALL) -D $(DIST)/bin/icons michael@0: $(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/icons michael@0: endif michael@0: michael@0: ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) michael@0: libs:: michael@0: $(NSINSTALL) -D $(DIST)/bin/updater.app michael@0: rsync -a -C --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/bin/updater.app michael@0: sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \ michael@0: iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/updater.app/Contents/Resources/English.lproj/InfoPlist.strings michael@0: $(NSINSTALL) -D $(DIST)/bin/updater.app/Contents/MacOS michael@0: $(NSINSTALL) $(DIST)/bin/updater $(DIST)/bin/updater.app/Contents/MacOS michael@0: rm -f $(DIST)/bin/updater michael@0: endif michael@0: michael@0: ifeq ($(OS_ARCH),WINNT) michael@0: EXTRA_LIBS += $(call EXPAND_LIBNAME,crypt32) michael@0: EXTRA_LIBS += $(call EXPAND_LIBNAME,advapi32) michael@0: endif michael@0: michael@0: CXXFLAGS += $(MOZ_BZ2_CFLAGS)