1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 AUTOMAKE_OPTIONS = dejagnu -Wno-portability
22 abs_top_builddir=$(shell cd $(top_builddir); pwd)
23 abs_builddir=$(shell cd $(top_builddir)/testsuite/misc-ming.all/loading; pwd)
24 abs_mediadir = $(shell cd $(srcdir)/../../media; pwd)
37 -I$(top_srcdir)/libbase \
38 -I$(top_srcdir)/libmedia \
39 -I$(top_srcdir)/libsound \
40 -I$(top_srcdir)/librender \
41 -I$(top_srcdir)/libcore \
42 -I$(top_srcdir)/libcore/swf \
43 -I$(top_srcdir)/libcore/parser \
44 -I$(top_srcdir)/libcore/vm \
45 -I$(top_srcdir)/libcore/asobj \
46 -I$(top_srcdir)/testsuite \
47 -I$(top_srcdir)/testsuite/misc-ming.all \
52 -DMING_VERSION_CODE=$(MING_VERSION_CODE) \
59 $(top_builddir)/libbase/libgnashbase.la \
60 $(top_builddir)/librender/libgnashrender.la \
61 $(top_builddir)/libcore/libgnashcore.la \
65 moviecliploader_test \
85 LoadBitmapTestRunner \
89 moviecliploader_test_SOURCES = moviecliploader_test.c
90 moviecliploader_test_LDADD = $(MING_LIBS)
92 #FIXME: make this rule consistent with the others
93 #and write a test runner for the absolute *and* relative
95 moviecliploader_tests: moviecliploader_test
96 : test with relative urls
97 ln -fs $(abs_mediadir) media
98 ./moviecliploader_test media
99 mv moviecliploader_test.swf moviecliploader_test_relative.swf
101 ./moviecliploader_test $(abs_mediadir)
103 LoadBitmapTest_SOURCES = \
107 LoadBitmapTest_CFLAGS = \
108 -DMEDIADIR='"$(abs_mediadir)"' \
111 LoadBitmapTest_LDADD = ../libgnashmingutils.la
113 LoadBitmapTest.swf: LoadBitmapTest
114 ./LoadBitmapTest $(abs_mediadir)
116 LoadBitmapTestRunner: $(srcdir)/../../generic-testrunner.sh LoadBitmapTest.swf
117 sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) LoadBitmapTest.swf > $@
120 loadImageTest_SOURCES = \
123 loadImageTest_LDADD = ../libgnashmingutils.la
124 loadImageTest.swf: loadImageTest
125 ./loadImageTest $(abs_mediadir)
127 loadMovieTest_SOURCES = \
130 loadMovieTest_LDADD = ../libgnashmingutils.la
131 loadMovieTest.swf: loadMovieTest
132 ./loadMovieTest $(abs_mediadir)
133 loadMovieTestRunner_SOURCES = \
134 loadMovieTestRunner.cpp \
136 loadMovieTestRunner_LDADD = \
137 $(top_builddir)/testsuite/libtestsuite.la \
140 loadMovieTestRunner_CXXFLAGS = \
141 -DSRCDIR='"$(srcdir)"' \
142 -DTGTDIR='"$(abs_builddir)"' \
143 -DMEDIADIR='"$(abs_mediadir)"' \
145 loadMovieTestRunner_DEPENDENCIES = \
147 $(top_builddir)/testsuite/libtestsuite.la \
150 LoadVarsTest_SOURCES = \
154 LoadVarsTest_LDADD = ../libgnashmingutils.la
156 LoadVarsTest.swf: LoadVarsTest
157 ./LoadVarsTest $(abs_mediadir)
159 LoadVarsTestRunner: $(srcdir)/../../generic-testrunner.sh LoadVarsTest.swf
160 sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) LoadVarsTest.swf > $@
165 TEST_DRIVERS = ../../simple.exp
167 loadMovieTestRunner \
171 if MING_VERSION_0_4_4
173 LoadBitmapTestRunner \
178 check-DEJAGNU: site-update $(check_PROGRAMS)
179 @runtest=$(RUNTEST); \
180 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
181 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
183 echo "WARNING: could not find \`runtest'" 1>&2; \
184 for i in "$(TEST_CASES)"; do \
185 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $(SHELL) $$i; \
189 site-update: site.exp
191 @cp site.exp site.exp.bak
192 @sed -e '/testcases/d' site.exp.bak > site.exp
193 @echo "# This is a list of the pre-compiled testcases" >> site.exp
194 @echo "set testcases \"$(TEST_CASES)\"" >> site.exp