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