added MouseWheel event support for Silverlight 3.0
[moon.git] / cairo / perf / Makefile.am
blob3ac13a6f196c5343054df297831cd44989395cf8
1 include $(top_srcdir)/build/Makefile.am.common
3 AM_CPPFLAGS =                                   \
4         -I$(srcdir)                             \
5         -I$(top_srcdir)/boilerplate             \
6         -I$(top_srcdir)/src                     \
7         -I$(top_builddir)/src                   \
8         $(CAIRO_CFLAGS)
10 EXTRA_PROGRAMS += cairo-perf cairo-perf-diff-files cairo-perf-graph-files
11 EXTRA_DIST += cairo-perf-diff
12 EXTRA_LTLIBRARIES += libcairoperf.la
14 LDADD = $(top_builddir)/boilerplate/libcairoboilerplate.la \
15         $(top_builddir)/src/libcairo.la \
16         libcairoperf.la \
17         $(CAIROPERF_LIBS)
19 cairo_perf_SOURCES =            \
20         cairo-perf.c            \
21         cairo-perf.h            \
22         cairo-perf-cover.c      \
23         box-outline.c           \
24         composite-checker.c     \
25         fill.c                  \
26         long-lines.c            \
27         mosaic.c                \
28         mosaic.h                \
29         paint.c                 \
30         paint-with-alpha.c      \
31         pattern_create_radial.c \
32         rectangles.c            \
33         rounded-rectangles.c    \
34         stroke.c                \
35         subimage_copy.c         \
36         tessellate.c            \
37         text.c                  \
38         unaligned-clip.c        \
39         world-map.c             \
40         world-map.h             \
41         zrusin.c                \
42         zrusin-another.h        \
43         long-dashed-lines.c
45 if CAIRO_HAS_WIN32_SURFACE
46 cairo_perf_SOURCES += cairo-perf-win32.c
47 else
48 if CAIRO_HAS_OS2_SURFACE
49 cairo_perf_SOURCES += cairo-perf-os2.c
50 else
51 cairo_perf_SOURCES += cairo-perf-posix.c
52 endif
53 endif
55 libcairoperf_la_SOURCES = \
56         cairo-perf-report.c     \
57         cairo-stats.c           \
58         cairo-stats.h
60 cairo_perf_diff_files_SOURCES = \
61         cairo-perf-diff-files.c
63 cairo_perf_graph_files_SOURCES = \
64         cairo-perf-graph.h \
65         cairo-perf-graph-files.c \
66         cairo-perf-graph-widget.c
67 cairo_perf_graph_files_CFLAGS = @gtk_CFLAGS@
68 cairo_perf_graph_files_LDADD = @gtk_LIBS@ $(LDADD)
70 $(top_builddir)/boilerplate/libcairoboilerplate.la: $(top_builddir)/src/libcairo.la
71         cd $(top_builddir)/boilerplate && $(MAKE) $(AM_MAKEFLAGS) libcairoboilerplate.la
73 $(top_builddir)/src/libcairo.la:
74         cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) libcairo.la
77 # Do a funny transition of CAIRO_TEST_TARGET through TARGETS such that
78 # one can limit tested targets both through CAIRO_TEST_TARGET env var
79 # and TARGETS make var on the command line.  Same for the rest.
80 TARGETS = $(CAIRO_TEST_TARGET)
81 TARGETS_EXCLUDE = $(CAIRO_TEST_TARGET_EXCLUDE)
82 ITERS = $(CAIRO_PERF_ITERATIONS)
84 CAIRO_PERF_ENVIRONMENT = CAIRO_PERF_ITERATIONS="$(ITERS)" CAIRO_TEST_TARGET="$(TARGETS)" CAIRO_TEST_TARGET_EXCLUDE="$(TARGETS_EXCLUDE)"
86 # Cap the maximum number of iterations during 'make check'
87 TESTS_ENVIRONMENT = CAIRO_TEST_TARGET="$(TARGETS)" CAIRO_PERF_ITERATIONS="10"
89 TESTS += cairo-perf$(EXEEXT)
91 perf: cairo-perf$(EXEEXT)
92         $(CAIRO_PERF_ENVIRONMENT) ./cairo-perf$(EXEEXT)
94 html-local: index.html
96 index.html: cairo-perf$(EXEEXT)
97         $(CAIRO_PERF_ENVIRONMENT) ./cairo-perf-diff -h HEAD > $@
100 EXTRA_VALGRIND_FLAGS = $(CAIRO_EXTRA_VALGRIND_FLAGS)
101 VALGRIND_MEMCHECK_FLAGS = \
102         --tool=memcheck \
103         --suppressions=$(top_srcdir)/test/.valgrind-suppressions \
104         --leak-check=yes --show-reachable=yes
105 VALGRIND_CALLGRIND_FLAGS = \
106         --tool=callgrind
107 CLEANFILES += \
108         valgrind-log \
109         callgrind.out.* \
110         index.html
112 check-valgrind perf-valgrind:
113         $(MAKE) $(AM_MAKEFLAGS) check \
114             TESTS_ENVIRONMENT='$(TESTS_ENVIRONMENT) \
115             $(top_builddir)/libtool --mode=execute \
116             valgrind $(VALGRIND_MEMCHECK_FLAGS) $(EXTRA_VALGRIND_FLAGS)' \
117             | tee valgrind-log
119 perf-callgrind:
120         $(MAKE) $(AM_MAKEFLAGS) check \
121             TESTS_ENVIRONMENT='$(TESTS_ENVIRONMENT) \
122             $(top_builddir)/libtool --mode=execute \
123             valgrind $(VALGRIND_CALLGRIND_FLAGS) $(EXTRA_VALGRIND_FLAGS)'
125 .PHONY: perf check-valgrind perf-valgrind perf-callgrind
127 EXTRA_DIST += Makefile.win32