2 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 # Free Software Foundation, Inc.
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.
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
19 AUTOMAKE_OPTIONS = -Wno-portability
21 AM_CXXFLAGS = $(CROSS_CXXFLAGS)
22 AM_LDFLAGS = $(CROSS_LDFLAGS)
27 DIR_MING += misc-ming.all actionscript.all
31 # don't build the network tests yet till they're fully implemented
32 DIR_MING += # network.all
36 DIR_MTASC = misc-mtasc.all
40 DIR_HAXE = misc-haxe.all
44 DIR_SWFMILL = misc-swfmill.all
48 DIR_SWFC = misc-swfc.all
51 if ENABLE_SWFDEC_TESTSUITE
52 DIR_SWFDEC_TESTSUITE = swfdec
57 DIR_AS3 = as3compile.all
83 $(DIR_SWFDEC_TESTSUITE) \
96 SUBDIRS += libmedia.all
99 EXTRA_DIST = check.h \
100 DummyMovieDefinition.h \
105 generic-testrunner.sh \
106 gst_install_plugins_helper.sh \
107 simultaneous-testrunner.sh \
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 = \
132 libtestsuite_la_LIBADD = \
134 $(top_builddir)/libcore/libgnashcore.la \
135 $(top_builddir)/libbase/libgnashbase.la \
136 $(top_builddir)/librender/libgnashrender.la \
140 libtestsuite_la_LIBADD += -lui -llog
144 libtestsuite_la_LIBADD += $(top_builddir)/libmedia/libgnashmedia.la
147 libtestsuite_la_LIBADD += $(top_builddir)/libsound/libgnashsound.la
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 \
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 > $@
179 $(MAKE) -C misc-ming.all $@
180 cp misc-ming.all/Dejagnu.swf $@
182 check-local: gnashrc Dejagnu.swf
188 rm -f Dejagnu.swf gnashrc
189 rm -rf tmpSharedObject