mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
49a2048fa2
--HG-- extra : rebase_source : 05c89bce40ab4a29f092108fb7833138c3adf337
24 lines
860 B
Makefile
24 lines
860 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
|
|
addon_file_name = testaddon_$(TARGET_XPCOM_ABI).xpi
|
|
else
|
|
plugin_file_names = $(DLL_PREFIX)nptest$(DLL_SUFFIX) $(DLL_PREFIX)npsecondtest$(DLL_SUFFIX)
|
|
addon_file_name = testaddon.xpi
|
|
endif
|
|
|
|
# This is so hacky. Waiting on bug 988938.
|
|
testdir = $(abspath $(DEPTH)/_tests/xpcshell/dom/plugins/test/unit/)
|
|
addonpath = $(testdir)/$(addon_file_name)
|
|
|
|
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))
|