mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
We're already installing the plugin binaries to the objdir, so by packaging the addon during the build we can allow these builds to run tests using the addon. MozReview-Commit-ID: CnzrHXiWQjM
22 lines
872 B
Makefile
22 lines
872 B
Makefile
# 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/.
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
|
plugin_file_names = Test.plugin SecondTest.plugin ThirdTest.plugin npswftest.plugin
|
|
else
|
|
plugin_file_names = $(DLL_PREFIX)nptest$(DLL_SUFFIX) $(DLL_PREFIX)npsecondtest$(DLL_SUFFIX) $(DLL_PREFIX)npthirdtest$(DLL_SUFFIX) $(DLL_PREFIX)npswftest$(DLL_SUFFIX)
|
|
endif
|
|
|
|
# This is so hacky. Waiting on bug 988938.
|
|
testdir = $(topobjdir)/_tests/xpcshell/dom/plugins/test/unit/
|
|
addonpath = $(testdir)/testaddon.xpi
|
|
|
|
libs::
|
|
$(NSINSTALL) -D $(testdir)
|
|
rm -f $(addonpath)
|
|
cd $(srcdir) && zip -rD $(addonpath) install.rdf
|
|
cd $(DIST) && zip -rD $(addonpath) $(foreach name,$(plugin_file_names),plugins/$(name))
|