# 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/.

ifndef MOZ_WINCONSOLE
ifdef MOZ_DEBUG
MOZ_WINCONSOLE = 1
else
MOZ_WINCONSOLE = 0
endif
endif

include $(topsrcdir)/config/rules.mk

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
	XPCSHELLTESTDIR = $(topobjdir)/_tests/xpcshell/toolkit/mozapps/update/tests/data/

libs::
	$(NSINSTALL) -D $(DIST)/bin/callback_app.app
	rsync -a -C $(srcdir)/macbuild/Contents $(DIST)/bin/callback_app.app
	$(NSINSTALL) -D $(DIST)/bin/callback_app.app/Contents/MacOS
	$(NSINSTALL) $(XPCSHELLTESTDIR)/TestAUSHelper $(DIST)/bin/callback_app.app/Contents/MacOS
	cp -R $(DIST)/bin/callback_app.app $(XPCSHELLTESTDIR)
endif
