1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/testaddon/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +include $(topsrcdir)/config/rules.mk 1.9 + 1.10 +ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa) 1.11 +plugin_file_names = Test.plugin SecondTest.plugin 1.12 +addon_file_name = testaddon_$(TARGET_XPCOM_ABI).xpi 1.13 +else 1.14 +plugin_file_names = $(DLL_PREFIX)nptest$(DLL_SUFFIX) $(DLL_PREFIX)npsecondtest$(DLL_SUFFIX) 1.15 +addon_file_name = testaddon.xpi 1.16 +endif 1.17 + 1.18 +# This is so hacky. Waiting on bug 988938. 1.19 +testdir = $(abspath $(DEPTH)/_tests/xpcshell/dom/plugins/test/unit/) 1.20 +addonpath = $(testdir)/$(addon_file_name) 1.21 + 1.22 +libs:: 1.23 + $(NSINSTALL) -D $(testdir) 1.24 + rm -f $(addonpath) 1.25 + cd $(srcdir) && zip -rD $(addonpath) install.rdf 1.26 + cd $(DIST) && zip -rD $(addonpath) $(foreach name,$(plugin_file_names),plugins/$(name))