michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa) michael@0: plugin_file_names = Test.plugin SecondTest.plugin michael@0: addon_file_name = testaddon_$(TARGET_XPCOM_ABI).xpi michael@0: else michael@0: plugin_file_names = $(DLL_PREFIX)nptest$(DLL_SUFFIX) $(DLL_PREFIX)npsecondtest$(DLL_SUFFIX) michael@0: addon_file_name = testaddon.xpi michael@0: endif michael@0: michael@0: # This is so hacky. Waiting on bug 988938. michael@0: testdir = $(abspath $(DEPTH)/_tests/xpcshell/dom/plugins/test/unit/) michael@0: addonpath = $(testdir)/$(addon_file_name) michael@0: michael@0: libs:: michael@0: $(NSINSTALL) -D $(testdir) michael@0: rm -f $(addonpath) michael@0: cd $(srcdir) && zip -rD $(addonpath) install.rdf michael@0: cd $(DIST) && zip -rD $(addonpath) $(foreach name,$(plugin_file_names),plugins/$(name))