This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Makefile.am
61 lines (45 loc) · 2.55 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
noinst_PROGRAMS = perf-tool
MOZ_PATH = `pwd`/$(top_builddir)/plugin/.libs
LD_PATH = $(top_builddir)/plugin/.libs:$(top_builddir)/src/.libs:`pkg-config --variable=sdkdir mozilla-gtkmozembed`/lib
MOON_PLUGIN_DIR = `pwd`/$(top_builddir)/plugin/.libs
INCLUDES = $(PERF_TOOL_CFLAGS) $(MOON_PROG_CFLAGS) -Wall -DG_LOG_DOMAIN=\"perf-tool\"
perf_tool_SOURCES = \
perf-suite-tool/perf-suite-tool.cpp
perf_tool_LDADD = $(PERF_TOOL_LIBS) $(MOON_PROG_LIBS)
RUNTIME = mono
MCS_LIB_FLAGS = -r:Mono.Data.Sqlite -r:System.Data
MCS_RUNNER_FLAGS = -r:perf-suite-lib.dll
MCS_GENERATOR_FLAGS = -r:perf-suite-lib.dll -r:Mono.Cairo
perf_suite_lib_sources = \
$(srcdir)/perf-suite-lib/MonoOptions.cs \
$(srcdir)/perf-suite-lib/Database.cs \
$(srcdir)/perf-suite-lib/DbEntry.cs \
$(srcdir)/perf-suite-lib/PassDbEntry.cs \
$(srcdir)/perf-suite-lib/ItemDbEntry.cs \
$(srcdir)/perf-suite-lib/ResultDbEntry.cs
perf_suite_runner_sources = \
$(srcdir)/perf-suite-runner/DrtStore.cs \
$(srcdir)/perf-suite-runner/DrtItem.cs \
$(srcdir)/perf-suite-runner/PerfSuiteRunner.cs \
$(srcdir)/perf-suite-runner/DrtResult.cs \
$(srcdir)/perf-suite-runner/Options.cs \
$(srcdir)/perf-suite-runner/AssemblyInfo.cs
perf_suite_generator_sources = \
$(srcdir)/perf-suite-generator/GraphGenerator.cs \
$(srcdir)/perf-suite-generator/HtmlGenerator.cs \
$(srcdir)/perf-suite-generator/PerfSuiteGenerator.cs \
$(srcdir)/perf-suite-generator/UtilFu.cs \
$(srcdir)/perf-suite-generator/AssemblyInfo.cs \
$(srcdir)/perf-suite-generator/Options.cs
perf-suite-lib.dll: $(perf_suite_lib_sources)
$(MCS) $(MCS_COMMON_FLAGS) $(MCS_LIB_FLAGS) $(perf_suite_lib_sources) /target:library /out:$@
perf-suite-runner.exe: $(perf_suite_runner_sources) perf-suite-lib.dll
$(MCS) $(MCS_COMMON_FLAGS) $(MCS_RUNNER_FLAGS) $(perf_suite_runner_sources) /out:$@
perf-suite-generator.exe: $(perf_suite_generator_sources) perf-suite-lib.dll
$(MCS) $(MCS_COMMON_FLAGS) $(MCS_GENERATOR_FLAGS) $(perf_suite_generator_sources) /out:$@
all: perf-suite-lib.dll perf-suite-runner.exe perf-suite-generator.exe perf-tool
run-perf: all
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
$(RUNTIME) perf-suite-generator.exe
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
CLEANFILES = perf-suite-lib.dll perf-suite-runner.exe perf-suite-generator.exe