~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to perf/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if INCLUDE_PERFORMANCE
 
2
PERFORMANCE = true
 
3
else
 
4
PERFORMANCE = echo ERROR: Performance suite is disabled by configuration; false
 
5
endif
 
6
 
 
7
noinst_PROGRAMS = perf-tool
 
8
 
 
9
MOZ_PATH = `pwd`/$(top_builddir)/plugin/.libs
 
10
LD_PATH = $(top_builddir)/plugin/.libs:$(top_builddir)/src/.libs:`pkg-config --variable=sdkdir mozilla-gtkmozembed`/lib
 
11
MOON_PLUGIN_DIR = `pwd`/$(top_builddir)/plugin/.libs
 
12
 
 
13
INCLUDES = $(PERF_TOOL_CFLAGS) $(MOON_PROG_CFLAGS) -Wall -DG_LOG_DOMAIN=\"perf-tool\"
 
14
 
 
15
perf_tool_SOURCES =                                     \
 
16
        perf-suite-tool/perf-suite-tool.cpp
 
17
 
 
18
perf_tool_LDADD = $(PERF_TOOL_LIBS) $(MOON_PROG_LIBS)
 
19
 
 
20
MCS = gmcs
 
21
RUNTIME = mono
 
22
MCS_COMMON_FLAGS = -r:Mono.GetOptions
 
23
 
 
24
MCS_LIB_FLAGS = -r:Mono.Data.SqliteClient -r:System.Data
 
25
MCS_RUNNER_FLAGS = -r:perf-suite-lib.dll
 
26
MCS_GENERATOR_FLAGS = -r:perf-suite-lib.dll -r:Mono.Cairo
 
27
 
 
28
check-performance:
 
29
        $(PERFORMANCE)  
 
30
 
 
31
perf_suite_lib_sources = \
 
32
        $(srcdir)/perf-suite-lib/Database.cs                    \
 
33
        $(srcdir)/perf-suite-lib/DbEntry.cs                     \
 
34
        $(srcdir)/perf-suite-lib/PassDbEntry.cs                 \
 
35
        $(srcdir)/perf-suite-lib/ItemDbEntry.cs                 \
 
36
        $(srcdir)/perf-suite-lib/ResultDbEntry.cs
 
37
 
 
38
perf_suite_runner_sources = \
 
39
        $(srcdir)/perf-suite-runner/DrtStore.cs                 \
 
40
        $(srcdir)/perf-suite-runner/DrtItem.cs                  \
 
41
        $(srcdir)/perf-suite-runner/PerfSuiteRunner.cs          \
 
42
        $(srcdir)/perf-suite-runner/DrtResult.cs                \
 
43
        $(srcdir)/perf-suite-runner/Options.cs                  \
 
44
        $(srcdir)/perf-suite-runner/AssemblyInfo.cs
 
45
 
 
46
perf_suite_generator_sources = \
 
47
        $(srcdir)/perf-suite-generator/GraphGenerator.cs        \
 
48
        $(srcdir)/perf-suite-generator/HtmlGenerator.cs         \
 
49
        $(srcdir)/perf-suite-generator/PerfSuiteGenerator.cs    \
 
50
        $(srcdir)/perf-suite-generator/UtilFu.cs                \
 
51
        $(srcdir)/perf-suite-generator/AssemblyInfo.cs          \
 
52
        $(srcdir)/perf-suite-generator/Options.cs
 
53
 
 
54
perf-suite-lib.dll: $(perf_suite_lib_sources) check-performance
 
55
        $(MCS) $(MCS_COMMON_FLAGS) $(MCS_LIB_FLAGS) $(perf_suite_lib_sources) /target:library /out:$@
 
56
 
 
57
perf-suite-runner.exe: $(perf_suite_runner_sources) perf-suite-lib.dll check-performance
 
58
        $(MCS) $(MCS_COMMON_FLAGS) $(MCS_RUNNER_FLAGS) $(perf_suite_runner_sources) /out:$@ 
 
59
 
 
60
perf-suite-generator.exe: $(perf_suite_generator_sources) perf-suite-lib.dll check-performance
 
61
        $(MCS) $(MCS_COMMON_FLAGS) $(MCS_GENERATOR_FLAGS) $(perf_suite_generator_sources) /out:$@ 
 
62
 
 
63
all: perf-suite-lib.dll perf-suite-runner.exe perf-suite-generator.exe perf-tool
 
64
 
 
65
run-perf: all check-performance
 
66
        GNOME_DISABLE_CRASH_DIALOG=1 MOON_PLUGIN_DIR=$(MOON_PLUGIN_DIR) MOZ_PLUGIN_PATH=$(MOZ_PATH) LD_LIBRARY_PATH=$(LD_PATH):$(LD_LIBRARY_PATH) $(RUNTIME) perf-suite-runner.exe
 
67
        $(RUNTIME) perf-suite-generator.exe
 
68
 
 
69
EXTRA_DIST = $(perf_suite_lib_sources) $(perf_suite_runner_sources) $(perf_suite_generator_sources) perf-report/helpers.js perf-report/jquery.js  perf-report/logo.png  perf-report/report.css perf-suite-set
 
70
 
 
71
CLEANFILES = perf-suite-lib.dll perf-suite-runner.exe perf-suite-generator.exe
 
72