~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to testsuite/misc-haxe.all/classes.all/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Sindhudweep Narayan Sarkar
  • Date: 2009-10-07 00:06:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007000610-mj9rwqe774gizn1j
Tags: 0.8.6-0ubuntu1
new upstream release 0.8.6 (LP: #435897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this fill with automake to generate Makefile.in
 
2
 
3
# Copyright (C) 2009 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
#
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this program; if not, write to the Free Software
 
17
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 
 
19
AUTOMAKE_OPTIONS = dejagnu
 
20
 
 
21
EXTRA_DIST = DejaGnu.hx
 
22
 
 
23
TEST_DRIVERS = classes.exp
 
24
 
 
25
# These get there values from the Makefile fragments. Each fragment
 
26
# appends to these.
 
27
check_SCRIPTS =
 
28
HAXE_FLAGS = -cp $(srcdir) 
 
29
 
 
30
 
 
31
#include $(srcdir)/fl/accessibility/accessibility.am
 
32
# include $(srcdir)/fl/containers/containers.am
 
33
# include $(srcdir)/fl/controls/controls.am
 
34
# include $(srcdir)/fl/core/core.am
 
35
# include $(srcdir)/fl/managers/managers.am
 
36
# include $(srcdir)/fl/motion/motion.am
 
37
# include $(srcdir)/fl/transitions/transitions.am
 
38
# include $(srcdir)/fl/video/video.am
 
39
 
 
40
# These classes are in the flash namespace
 
41
include $(srcdir)/accessibility/accessibility.am
 
42
 
 
43
# These classes are for AIR only, not flash
 
44
# include $(srcdir)/data/data.am
 
45
# include $(srcdir)/desktop/desktop.am
 
46
 
 
47
include $(srcdir)/display/display.am
 
48
include $(srcdir)/errors/errors.am
 
49
include $(srcdir)/events/events.am
 
50
include $(srcdir)/external/external.am
 
51
# # include $(srcdir)/filesystem/filesystem.am
 
52
# # include $(srcdir)/filters/filters.am
 
53
include $(srcdir)/geom/geom.am
 
54
# # HAXE doesn't appear to support the HTML classes
 
55
# # include $(srcdir)/html/html.am
 
56
include $(srcdir)/media/media.am
 
57
include $(srcdir)/net/net.am
 
58
include $(srcdir)/printing/printing.am
 
59
# # include $(srcdir)/sampler/sampler.am
 
60
# # HAXE doesn't appear to support the Security classes
 
61
# # include $(srcdir)/security/security.am
 
62
include $(srcdir)/system/system.am
 
63
include $(srcdir)/text/text.am
 
64
include $(srcdir)/ui/ui.am
 
65
include $(srcdir)/utils/utils.am
 
66
include $(srcdir)/xml/xml.am
 
67
 
 
68
#/usr/bin/haxe -swf-version 9 -cp /home/rob/projects/gnu/gnash-bzr/avm2/testsuite/as3/classes.all -cp /home/rob/projects/gnu/gnash-bzr/avm2/testsuite/as3/classes.all/media -swf Sound_as3.swf -main Sound_as3.hx
 
69
SUFFIXES = hx swf
 
70
 
 
71
# build multiple output formats from the same test case. exit with failure if
 
72
# the test case doesn't compile for v9, it's a test cases bug. Not all classes
 
73
# support all versions, so in those cases justy ignore the errors as it's less
 
74
# messy than testing for each test case to see if it supports that version.
 
75
.hx.swf:
 
76
        -@newname=`echo $(@F) | sed -e 's:_as:_asv9:'`; \
 
77
        $(HAXE) -swf-version 9 $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
 
78
        -@newname=`echo $(@F) | sed -e 's:_as:_asv8:'`; \
 
79
        $(HAXE) -swf-version 8  $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
 
80
        -@newname=`echo $(@F) | sed -e 's:_as:_asv7:'`; \
 
81
        $(HAXE) -swf-version 7  $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
 
82
        -@newname=`echo $(@F) | sed -e 's:_as:_asv6:'`; \
 
83
        $(HAXE) -swf-version 6  $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
 
84
 
 
85
CLEANFILES =  \
 
86
        gnash-dbg.log \
 
87
        site.exp.bak \
 
88
        *-runner \
 
89
        testrun.* \
 
90
        *.swf \
 
91
        PP_*.hx \
 
92
        *_testrunner \
 
93
        *_Runner
 
94
 
 
95
check-DEJAGNU: site.exp $(check_SCRIPTS)
 
96
        @runtest=$(RUNTEST); \
 
97
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
 
98
            GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
 
99
        else \
 
100
          echo "WARNING: could not find \`runtest'" 1>&2; \
 
101
          for i in "$(TEST_CASES)"; do \
 
102
            GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $(SHELL) $$i; \
 
103
          done; \
 
104
        fi
 
105