Make automated FSCommand invocation tests show player-side output.
[gnash.git] / testsuite / Makefile.am
blob6ee3dd8b719ea8bfaf77f9107a444057b16090af
1
2 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 #   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 = -Wno-portability
21 AM_CXXFLAGS = $(CROSS_CXXFLAGS)
22 AM_LDFLAGS = $(CROSS_LDFLAGS)
24 DIR_MING=
26 if ENABLE_MING
27 DIR_MING += misc-ming.all actionscript.all
28 endif
30 if HAS_NETCAT
31 # don't build the network tests yet till they're fully implemented
32 DIR_MING += # network.all
33 endif
35 if ENABLE_MTASC
36 DIR_MTASC = misc-mtasc.all
37 endif
39 if ENABLE_HAXE
40 DIR_HAXE = misc-haxe.all
41 endif
43 if ENABLE_SWFMILL
44 DIR_SWFMILL = misc-swfmill.all
45 endif
47 if ENABLE_SWFC
48 DIR_SWFC = misc-swfc.all
49 endif
51 if ENABLE_SWFDEC_TESTSUITE
52 DIR_SWFDEC_TESTSUITE = swfdec
53 endif
55 if ENABLE_AVM2
56 if ENABLE_AS3COMPILE 
57 DIR_AS3 = as3compile.all
58 endif
59 endif
61 DIST_SUBDIRS = \
62         media \
63         as3compile.all \
64         actionscript.all \
65         libbase.all     \
66         libcore.all \
67         libmedia.all \
68         network.all \
69         samples \
70         swfdec \
71         misc-ming.all \
72         misc-mtasc.all \
73         misc-haxe.all \
74         misc-swfmill.all \
75         misc-swfc.all \
76         movies.all \
77         $(NULL)
79 SUBDIRS = \
80         .       \
81         media \
82         $(DIR_AS3) \
83         $(DIR_SWFDEC_TESTSUITE) \
84         samples \
85         $(DIR_MING) \
86         $(DIR_MTASC) \
87         $(DIR_HAXE) \
88         $(DIR_SWFMILL) \
89         $(DIR_SWFC) \
90         movies.all \
91         libbase.all     \
92         libcore.all \
93         $(NULL)
95 if BUILD_LIBMEDIA
96 SUBDIRS += libmedia.all
97 endif
99 EXTRA_DIST = check.h \
100         DummyMovieDefinition.h \
101         DummyCharacter.h \
102         gnashrc.in \
103         simple.exp \
104         analyse-results.sh \
105         generic-testrunner.sh \
106         gst_install_plugins_helper.sh \
107         simultaneous-testrunner.sh \
108         timingissues \
109         XmlSocketServer.pl \
110         dejagnu.h
112 dist_noinst_SCRIPTS = analyse-results.sh generic-testrunner.sh
114 abs_mediadir = $(shell cd $(srcdir)/media; pwd)
115 abs_tmpsodir = $(shell cd tmpSharedObject; pwd)
117 # Used to be hard-coded as '138765373'
118 # But when multiple chroot environment exist and run
119 # a make check at the same time, there's a key conflict.
121 build_shmkey = $(shell date +'%N')
123 # could not find a way to only build this on make check
124 check_LTLIBRARIES = libtestsuite.la 
126 libtestsuite_la_SOURCES = \
127         MovieTester.h \
128         MovieTester.cpp \
129         FuzzyPixel.cpp \
130         FuzzyPixel.h \
131         $(NULL)
132 libtestsuite_la_LIBADD = \
133         $(RENDERER_LIBS) \
134         $(top_builddir)/libcore/libgnashcore.la \
135         $(top_builddir)/libbase/libgnashbase.la \
136         $(top_builddir)/librender/libgnashrender.la \
137         $(NULL)
139 if ANDROID
140 libtestsuite_la_LIBADD += -lui -llog
141 endif   # ANDROID
143 if BUILD_LIBMEDIA
144 libtestsuite_la_LIBADD += $(top_builddir)/libmedia/libgnashmedia.la
145 endif
146 if BUILD_LIBSOUND
147 libtestsuite_la_LIBADD += $(top_builddir)/libsound/libgnashsound.la
148 endif
150 libtestsuite_la_CXXFLAGS = \
151         -I$(top_srcdir)/libbase \
152         -I$(top_srcdir)/libmedia \
153         -I$(top_srcdir)/libsound \
154         -I$(top_srcdir)/librender \
155         -I$(top_srcdir)/librender/agg \
156         -I$(top_srcdir)/librender/cairo \
157         -I$(top_srcdir)/librender/opengl \
158         -I$(top_srcdir)/libcore  \
159         -I$(top_srcdir)/libcore/asobj  \
160         -I$(top_srcdir)/libcore/swf  \
161         -I$(top_srcdir)/libcore/parser  \
162         -I$(top_srcdir)/libcore/vm  \
163         $(BOOST_CFLAGS) \
164         $(PTHREAD_CFLAGS) \
165         $(CAIRO_CFLAGS) \
166         $(CROSS_CXXFLAGS) \
167         $(NULL)
169 tmpSharedObject: 
170         mkdir tmpSharedObject
172 gnashrc: gnashrc.in Makefile tmpSharedObject
173         sed -e 's#@@MEDIADIR@@#$(abs_mediadir)#g' -e 's#@@TMPSODIR@@#$(abs_tmpsodir)#g' -e 's#@@SHMKEY@@#$(build_shmkey)#g' $(srcdir)/gnashrc.in > $@
175 if ENABLE_MING
177 .PHONY: Dejagnu.swf
178 Dejagnu.swf:
179         $(MAKE) -C misc-ming.all $@
180         cp misc-ming.all/Dejagnu.swf $@
182 check-local: gnashrc Dejagnu.swf
183 else
184 check-local: gnashrc
185 endif
187 clean-local:
188         rm -f Dejagnu.swf gnashrc
189         rm -rf tmpSharedObject