gecko/toolkit/mozapps/plugins/tests/Makefile.in

46 lines
1.0 KiB
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/.
DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
relativesrcdir = @relativesrcdir@
TESTROOT = $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
USE_STATIC_LIBS = 1
_BROWSER_FILES = \
$(filter disabled-for-leaks--bug-751100, browser_bug435788.js) \
pfs_bug435788_1.rdf \
pfs_bug435788_2.rdf \
GoodExtension.xpi \
BadExtension.xpi \
$(NULL)
CPPSRCS = \
GoodPlugin.cpp \
BadPlugin.cpp \
$(NULL)
SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
PROGRAMS = $(SIMPLE_PROGRAMS:%$(BIN_SUFFIX)=$(TESTROOT)/%)
include $(topsrcdir)/config/rules.mk
$(PROGRAMS) $(_BROWSER_FILES): $(TESTROOT)
$(TESTROOT):
$(NSINSTALL) -D $@
$(PROGRAMS): $(TESTROOT)/% : %$(BIN_SUFFIX)
cp $< $@
libs::
$(INSTALL) $(foreach f,$(_BROWSER_FILES),"$(srcdir)/$f") $(TESTROOT)
libs:: $(PROGRAMS)