include the new .sh and .as files so make check works from the source dist tarball.
[gnash.git] / testsuite / Makefile.am
blob0a20307b0f8ac491844951b531ed1015abcc137b
1
2 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16
18 AUTOMAKE_OPTIONS = 
20 DIR_MING=
22 if ENABLE_MING
23 DIR_MING += misc-ming.all actionscript.all
24 endif
26 if HAS_NETCAT
27 # don't build the network tests yet till they're fully implemented
28 DIR_MING += # network.all
29 endif
31 if ENABLE_MTASC
32 DIR_MTASC = misc-mtasc.all
33 endif
35 if ENABLE_HAXE
36 DIR_HAXE = misc-haxe.all
37 endif
39 if ENABLE_SWFMILL
40 DIR_SWFMILL = misc-swfmill.all
41 endif
43 if ENABLE_SWFC
44 DIR_SWFC = misc-swfc.all
45 endif
47 if ENABLE_SWFDEC_TESTSUITE
48 DIR_SWFDEC_TESTSUITE = swfdec
49 endif
51 if ENABLE_AVM2
52 if ENABLE_AS3COMPILE 
53 DIR_AS3 = as3compile.all
54 endif
55 endif
57 DIST_SUBDIRS = \
58         media \
59         as3compile.all \
60         actionscript.all \
61         libbase.all     \
62         libcore.all \
63         libmedia.all \
64         network.all \
65         samples \
66         swfdec \
67         misc-ming.all \
68         misc-mtasc.all \
69         misc-haxe.all \
70         misc-swfmill.all \
71         misc-swfc.all \
72         movies.all \
73         $(NULL)
75 SUBDIRS = \
76         .       \
77         media \
78         $(DIR_AS3) \
79         $(DIR_SWFDEC_TESTSUITE) \
80         samples \
81         $(DIR_MING) \
82         $(DIR_MTASC) \
83         $(DIR_HAXE) \
84         $(DIR_SWFMILL) \
85         $(DIR_SWFC) \
86         movies.all \
87         libbase.all     \
88         libmedia.all \
89         libcore.all \
90         $(NULL)
92 EXTRA_DIST = check.h \
93         DummyMovieDefinition.h \
94         DummyCharacter.h \
95         gnashrc.in \
96         simple.exp \
97         analyse-results.sh \
98         generic-testrunner.sh \
99         gst_install_plugins_helper.sh \
100         simultaneous-testrunner.sh
103 dist_noinst_SCRIPTS = analyse-results.sh generic-testrunner.sh
105 abs_mediadir = `cd $(srcdir)/media; pwd`
106 abs_tmpsodir = `cd tmpSharedObject; pwd`
108 # could not find a way to only build this on make check
109 check_LTLIBRARIES = libtestsuite.la 
111 libtestsuite_la_SOURCES = \
112         MovieTester.h \
113         MovieTester.cpp \
114         FuzzyPixel.cpp \
115         FuzzyPixel.h \
116         $(NULL)
117 libtestsuite_la_LIBADD = \
118         $(RENDERER_LIBS) \
119         $(top_builddir)/libmedia/libgnashmedia.la \
120         $(top_builddir)/libsound/libgnashsound.la \
121         $(top_builddir)/libcore/libgnashcore.la \
122         $(top_builddir)/libbase/libgnashbase.la \
123         $(top_builddir)/librender/libgnashrender.la \
124         $(NULL)
126 if LIBLTDL2
127 libtestsuite_la_LIBADD += $(top_builddir)/libltdl/libltdlc.la
128 endif
129 if LIBLTDL1
130 libtestsuite_la_LIBADD += $(top_builddir)/libbase/libltdlc.la
131 endif
133 libtestsuite_la_CXXFLAGS = \
134         -I$(top_srcdir)/libbase \
135         -I$(top_srcdir)/libmedia \
136         -I$(top_srcdir)/libsound \
137         -I$(top_srcdir)/librender \
138         -I$(top_srcdir)/librender/agg \
139         -I$(top_srcdir)/librender/cairo \
140         -I$(top_srcdir)/librender/opengl \
141         -I$(top_srcdir)/libcore  \
142         -I$(top_srcdir)/libcore/asobj  \
143         -I$(top_srcdir)/libcore/swf  \
144         -I$(top_srcdir)/libcore/parser  \
145         -I$(top_srcdir)/libcore/vm  \
146         $(BOOST_CFLAGS) \
147         $(CAIRO_CFLAGS) \
148         $(NULL)
150 tmpSharedObject: 
151         mkdir tmpSharedObject
153 gnashrc: gnashrc.in Makefile tmpSharedObject
154         sed -e 's#@@MEDIADIR@@#'$(abs_mediadir)'#g' -e 's#@@TMPSODIR@@#'$(abs_tmpsodir)'#g' $(srcdir)/gnashrc.in > $@
156 if ENABLE_MING
158 .PHONY: Dejagnu.swf
159 Dejagnu.swf:
160         $(MAKE) -C misc-ming.all $@
161         cp misc-ming.all/Dejagnu.swf $@
163 check-local:: Dejagnu.swf
164 else
165 check-local:: gnashrc
166 endif
168 clean-local:
169         rm -f Dejagnu.swf gnashrc
170         rm -rf tmpSharedObject