toolkit/crashreporter/client/Makefile.in
author Bobby Holley <bobbyholley@gmail.com>
Sun, 19 Jul 2015 19:23:55 -0700
changeset 280067 a37164c4c1bbec3a11efb47e5a4f92034c8843d5
parent 224368 55d15b285436576e1c5979f753e433c50fd9db3a
child 300111 6784105d5a466b52ee4e59608cf2c50bcd1dcfb4
child 308401 9e35954842c8b973878677d0c780fb5f77bcbc31
child 308990 89ce9655e1fac472b698257a0491fc6a7320ca0f
child 311115 787b2501272efef4d4c5434d5e5ec1052cd1f797
permissions -rw-r--r--
Bug 1161831 - Tests. r=billm

# vim:set ts=8 sw=8 sts=8 noet:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

ifneq ($(OS_TARGET),Android)
DIST_PROGRAM = crashreporter$(BIN_SUFFIX)
endif

ifeq ($(OS_ARCH),WINNT)
MOZ_WINCONSOLE = 0
endif

ifdef MOZ_WIDGET_GTK
OS_CXXFLAGS += $(TK_CFLAGS) $(MOZ_GTHREAD_CFLAGS)
endif

ifeq ($(OS_ARCH),SunOS)
OS_CXXFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_GTHREAD_CFLAGS)
endif

include $(topsrcdir)/config/rules.mk

ifeq ($(OS_ARCH),Darwin)
libs::
	$(NSINSTALL) -D $(DIST)/bin/crashreporter.app
	rsync -a -C --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/bin/crashreporter.app 
	sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \
	  iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/crashreporter.app/Contents/Resources/English.lproj/InfoPlist.strings
	$(NSINSTALL) -D $(DIST)/bin/crashreporter.app/Contents/MacOS
	$(NSINSTALL) $(DIST)/bin/crashreporter $(DIST)/bin/crashreporter.app/Contents/MacOS
	rm -f $(DIST)/bin/crashreporter
endif

ifeq (,$(filter-out Linux SunOS,$(OS_ARCH)))
libs:: $(topsrcdir)/toolkit/themes/windows/global/throbber/Throbber-small.gif
	$(INSTALL) $^ $(DIST)/bin
endif