Add findDisplayItemByTarget in MovieTester
[gnash.git] / testsuite / Makefile.am
blobcca9502534c3038aeab2e4261d09e1e3566acd1f
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 DummyMovieDefinition.h DummyCharacter.h gnashrc.in simple.exp 
94 dist_noinst_SCRIPTS = anaylse-results.sh generic-testrunner.sh
96 abs_mediadir = `cd $(srcdir)/media; pwd`
97 abs_tmpsodir = `cd tmpSharedObject; pwd`
99 # could not find a way to only build this on make check
100 check_LTLIBRARIES = libtestsuite.la 
102 libtestsuite_la_SOURCES = \
103         MovieTester.h \
104         MovieTester.cpp \
105         FuzzyPixel.cpp \
106         FuzzyPixel.h \
107         $(NULL)
108 libtestsuite_la_LIBADD = \
109         $(RENDERER_LIBS) \
110         $(top_builddir)/libmedia/libgnashmedia.la \
111         $(top_builddir)/libsound/libgnashsound.la \
112         $(top_builddir)/libcore/libgnashcore.la \
113         $(top_builddir)/libbase/libgnashbase.la \
114         $(top_builddir)/librender/libgnashrender.la \
115         $(NULL)
117 if LIBLTDL2
118 libtestsuite_la_LIBADD += $(top_builddir)/libltdl/libltdlc.la
119 endif
120 if LIBLTDL1
121 libtestsuite_la_LIBADD += $(top_builddir)/libbase/libltdlc.la
122 endif
124 libtestsuite_la_CXXFLAGS = \
125         -I$(top_srcdir)/libbase \
126         -I$(top_srcdir)/libmedia \
127         -I$(top_srcdir)/libsound \
128         -I$(top_srcdir)/librender \
129         -I$(top_srcdir)/librender/agg \
130         -I$(top_srcdir)/librender/cairo \
131         -I$(top_srcdir)/librender/opengl \
132         -I$(top_srcdir)/libcore  \
133         -I$(top_srcdir)/libcore/asobj  \
134         -I$(top_srcdir)/libcore/swf  \
135         -I$(top_srcdir)/libcore/parser  \
136         -I$(top_srcdir)/libcore/vm  \
137         $(BOOST_CFLAGS) \
138         $(CAIRO_CFLAGS) \
139         $(NULL)
141 tmpSharedObject: 
142         mkdir tmpSharedObject
144 gnashrc: gnashrc.in Makefile tmpSharedObject
145         sed -e 's#@@MEDIADIR@@#'$(abs_mediadir)'#g' -e 's#@@TMPSODIR@@#'$(abs_tmpsodir)'#g' $< > $@
147 if ENABLE_MING
149 .PHONY: Dejagnu.swf
150 Dejagnu.swf:
151         $(MAKE) -C misc-ming.all $@
152         cp misc-ming.all/Dejagnu.swf $@
154 check-local: Dejagnu.swf gnashrc
156 endif
158 clean-local:
159         rm -f Dejagnu.swf gnashrc
160         rm -rf tmpSharedObject