toolkit/mozapps/update/updater/updater-xpcshell/Makefile.in
author Brian R. Bondy <netzen@gmail.com>
Tue, 03 Mar 2015 23:27:17 -0500
changeset 491395 86c5af1df827cfcd6fca7326ce34ab9c69c3eeb3
parent 491387 0ef0dc24a7885cba43703abaf9e54a75e2cf04e9
child 491399 9ae2cb66c5627d2c9467a59f8e5ad1493a713acf
permissions -rw-r--r--
Attempt to fix nightly builds.

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

# For changes here, also consider ../Makefile.in

XPCSHELLTESTROOT = $(abspath $(DEPTH))/_tests/xpcshell/toolkit/mozapps/update/tests
MOCHITESTROOT = $(abspath $(DEPTH))/_tests/testing/mochitest/chrome/toolkit/mozapps/update/tests
INSTALL_TARGETS += xpcshell-updater
xpcshell-updater_TARGET  := libs
xpcshell-updater_DEST    := $(XPCSHELLTESTROOT)/data
xpcshell-updater_FILES   := $(DIST)/bin/updater-xpcshell$(BIN_SUFFIX)

include $(topsrcdir)/config/rules.mk

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

ifdef MOZ_WIDGET_GTK
libs:: ../updater.png
	$(NSINSTALL) -D $(DIST)/bin/icons
	$(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/icons
endif

libs::
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
	# Copy for xpcshell tests
	$(NSINSTALL) -D $(XPCSHELLTESTROOT)/data/updater-xpcshell.app
	rsync -a -C --exclude '*.in' $(srcdir)/../macbuild/Contents $(XPCSHELLTESTROOT)/data/updater-xpcshell.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 > $(XPCSHELLTESTROOT)/data/updater-xpcshell.app/Contents/Resources/English.lproj/InfoPlist.strings
	$(NSINSTALL) -D $(XPCSHELLTESTROOT)/data/updater-xpcshell.app/Contents/MacOS/updater-xpcshell
	$(NSINSTALL) $(XPCSHELLTESTROOT)/data/updater-xpcshell $(XPCSHELLTESTROOT)/data/updater-xpcshell.app/Contents/MacOS
	rm -f $(XPCSHELLTESTROOT)/data/updater-xpcshell
	rm -Rf $(XPCSHELLTESTROOT)/data/updater.app
	mv $(XPCSHELLTESTROOT)/data/updater-xpcshell.app $(XPCSHELLTESTROOT)/data/updater.app
	mv $(XPCSHELLTESTROOT)/data/updater.app/Contents/MacOS/updater-xpcshell $(XPCSHELLTESTROOT)/data/updater.app/Contents/MacOS/updater

	# Copy for mochitest chrome tests
	rsync -a -C $(XPCSHELLTESTROOT)/data/updater.app $(MOCHITESTROOT)/data/updater.app
else
	mv $(XPCSHELLTESTROOT)/data/updater-xpcshell$(BIN_SUFFIX) $(XPCSHELLTESTROOT)/data/updater$(BIN_SUFFIX)
	cp $(XPCSHELLTESTROOT)/data/updater$(BIN_SUFFIX) $(MOCHITESTROOT)/data/updater$(BIN_SUFFIX)
endif

CXXFLAGS += $(MOZ_BZ2_CFLAGS)