toolkit/crashreporter/client/Makefile.in

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # vim:set ts=8 sw=8 sts=8 noet:
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6 ifneq ($(OS_TARGET),Android)
michael@0 7 DIST_PROGRAM = crashreporter$(BIN_SUFFIX)
michael@0 8
michael@0 9 # Don't link the updater against libmozglue.
michael@0 10 MOZ_GLUE_LDFLAGS =
michael@0 11 MOZ_GLUE_PROGRAM_LDFLAGS =
michael@0 12 endif
michael@0 13
michael@0 14 ifeq ($(OS_ARCH),WINNT)
michael@0 15 LIBS += \
michael@0 16 $(DEPTH)/toolkit/crashreporter/breakpad-windows-libxul/$(LIB_PREFIX)google_breakpad_libxul_s.$(LIB_SUFFIX)
michael@0 17 $(NULL)
michael@0 18 OS_LIBS += $(call EXPAND_LIBNAME,comctl32 shell32 wininet shlwapi)
michael@0 19 MOZ_WINCONSOLE = 0
michael@0 20 endif
michael@0 21
michael@0 22 ifeq ($(OS_ARCH),Darwin)
michael@0 23 LIBS += \
michael@0 24 $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/$(LIB_PREFIX)breakpad_common_s.$(LIB_SUFFIX) \
michael@0 25 $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/mac/$(LIB_PREFIX)breakpad_mac_common_s.$(LIB_SUFFIX) \
michael@0 26 $(NULL)
michael@0 27 endif
michael@0 28
michael@0 29 ifdef MOZ_WIDGET_GTK
michael@0 30
michael@0 31 LIBS += \
michael@0 32 $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/linux/$(LIB_PREFIX)breakpad_linux_common_s.$(LIB_SUFFIX) \
michael@0 33 $(NULL)
michael@0 34 OS_CXXFLAGS += $(TK_CFLAGS) $(MOZ_GTHREAD_CFLAGS)
michael@0 35 OS_LIBS += $(TK_LIBS) $(MOZ_GTHREAD_LIBS)
michael@0 36 endif
michael@0 37
michael@0 38 ifeq ($(OS_ARCH),SunOS)
michael@0 39 LIBS += \
michael@0 40 $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/solaris/$(LIB_PREFIX)breakpad_solaris_common_s.$(LIB_SUFFIX) \
michael@0 41 $(NULL)
michael@0 42 OS_CXXFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_GTHREAD_CFLAGS)
michael@0 43 OS_LIBS += $(MOZ_GTK2_LIBS) $(MOZ_GTHREAD_LIBS)
michael@0 44 endif
michael@0 45
michael@0 46 include $(topsrcdir)/config/rules.mk
michael@0 47
michael@0 48 ifeq ($(OS_ARCH),Darwin)
michael@0 49 libs::
michael@0 50 $(NSINSTALL) -D $(DIST)/bin/crashreporter.app
michael@0 51 rsync -a -C --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/bin/crashreporter.app
michael@0 52 sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \
michael@0 53 iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/crashreporter.app/Contents/Resources/English.lproj/InfoPlist.strings
michael@0 54 $(NSINSTALL) -D $(DIST)/bin/crashreporter.app/Contents/MacOS
michael@0 55 $(NSINSTALL) $(DIST)/bin/crashreporter $(DIST)/bin/crashreporter.app/Contents/MacOS
michael@0 56 rm -f $(DIST)/bin/crashreporter
michael@0 57 endif
michael@0 58
michael@0 59 ifeq (,$(filter-out Linux SunOS,$(OS_ARCH)))
michael@0 60 libs:: $(topsrcdir)/toolkit/themes/windows/global/throbber/Throbber-small.gif
michael@0 61 $(INSTALL) $^ $(DIST)/bin
michael@0 62 endif

mercurial