1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/crashreporter/client/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 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 +ifneq ($(OS_TARGET),Android) 1.10 +DIST_PROGRAM = crashreporter$(BIN_SUFFIX) 1.11 + 1.12 +# Don't link the updater against libmozglue. 1.13 +MOZ_GLUE_LDFLAGS = 1.14 +MOZ_GLUE_PROGRAM_LDFLAGS = 1.15 +endif 1.16 + 1.17 +ifeq ($(OS_ARCH),WINNT) 1.18 +LIBS += \ 1.19 + $(DEPTH)/toolkit/crashreporter/breakpad-windows-libxul/$(LIB_PREFIX)google_breakpad_libxul_s.$(LIB_SUFFIX) 1.20 + $(NULL) 1.21 +OS_LIBS += $(call EXPAND_LIBNAME,comctl32 shell32 wininet shlwapi) 1.22 +MOZ_WINCONSOLE = 0 1.23 +endif 1.24 + 1.25 +ifeq ($(OS_ARCH),Darwin) 1.26 +LIBS += \ 1.27 + $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/$(LIB_PREFIX)breakpad_common_s.$(LIB_SUFFIX) \ 1.28 + $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/mac/$(LIB_PREFIX)breakpad_mac_common_s.$(LIB_SUFFIX) \ 1.29 + $(NULL) 1.30 +endif 1.31 + 1.32 +ifdef MOZ_WIDGET_GTK 1.33 + 1.34 +LIBS += \ 1.35 + $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/linux/$(LIB_PREFIX)breakpad_linux_common_s.$(LIB_SUFFIX) \ 1.36 + $(NULL) 1.37 +OS_CXXFLAGS += $(TK_CFLAGS) $(MOZ_GTHREAD_CFLAGS) 1.38 +OS_LIBS += $(TK_LIBS) $(MOZ_GTHREAD_LIBS) 1.39 +endif 1.40 + 1.41 +ifeq ($(OS_ARCH),SunOS) 1.42 +LIBS += \ 1.43 + $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/solaris/$(LIB_PREFIX)breakpad_solaris_common_s.$(LIB_SUFFIX) \ 1.44 + $(NULL) 1.45 +OS_CXXFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_GTHREAD_CFLAGS) 1.46 +OS_LIBS += $(MOZ_GTK2_LIBS) $(MOZ_GTHREAD_LIBS) 1.47 +endif 1.48 + 1.49 +include $(topsrcdir)/config/rules.mk 1.50 + 1.51 +ifeq ($(OS_ARCH),Darwin) 1.52 +libs:: 1.53 + $(NSINSTALL) -D $(DIST)/bin/crashreporter.app 1.54 + rsync -a -C --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/bin/crashreporter.app 1.55 + sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \ 1.56 + iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/crashreporter.app/Contents/Resources/English.lproj/InfoPlist.strings 1.57 + $(NSINSTALL) -D $(DIST)/bin/crashreporter.app/Contents/MacOS 1.58 + $(NSINSTALL) $(DIST)/bin/crashreporter $(DIST)/bin/crashreporter.app/Contents/MacOS 1.59 + rm -f $(DIST)/bin/crashreporter 1.60 +endif 1.61 + 1.62 +ifeq (,$(filter-out Linux SunOS,$(OS_ARCH))) 1.63 +libs:: $(topsrcdir)/toolkit/themes/windows/global/throbber/Throbber-small.gif 1.64 + $(INSTALL) $^ $(DIST)/bin 1.65 +endif