blob: 01aea2e687c0ba126fb101481d034807a68d2b69 [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build performance testbench.
2#
3# To build and run on Linux:
4# ./gyp_skia bench.gyp && make
5# out/Debug/bench -repeat 2
6#
7# Building on other platforms not tested yet.
8#
bungeman@google.com206c98a2011-05-31 21:21:54 +00009{
10 'includes': [
epoger@google.comccdbd2c2011-06-02 14:38:23 +000011 'apptype_console.gypi',
bungeman@google.com206c98a2011-05-31 21:21:54 +000012 'target_defaults.gypi',
13 ],
14 'targets': [
15 {
16 'target_name': 'bench',
17 'type': 'executable',
bungeman@google.com206c98a2011-05-31 21:21:54 +000018 'sources': [
19 '../bench/benchmain.cpp',
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000020 '../bench/BenchTimer.h',
21 '../bench/BenchTimer.cpp',
22 '../bench/BenchSysTimer_mach.h',
23 '../bench/BenchSysTimer_mach.cpp',
24 '../bench/BenchSysTimer_posix.h',
25 '../bench/BenchSysTimer_posix.cpp',
26 '../bench/BenchSysTimer_windows.h',
27 '../bench/BenchSysTimer_windows.cpp',
28 '../bench/BenchGpuTimer_gl.h',
29 '../bench/BenchGpuTimer_gl.cpp',
30 '../bench/BenchGpuTimer_none.h',
31 '../bench/BenchGpuTimer_none.cpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +000032
33 '../bench/SkBenchmark.h',
34 '../bench/SkBenchmark.cpp',
35
36 '../bench/BitmapBench.cpp',
37 '../bench/DecodeBench.cpp',
38 '../bench/FPSBench.cpp',
39 '../bench/GradientBench.cpp',
40 '../bench/PathBench.cpp',
41 '../bench/RectBench.cpp',
42 '../bench/RepeatTileBench.cpp',
43 '../bench/TextBench.cpp',
44 ],
45 'dependencies': [
46 'core.gyp:core',
47 'effects.gyp:effects',
bungeman@google.com206c98a2011-05-31 21:21:54 +000048 'gpu.gyp:gr',
49 'gpu.gyp:skgr',
bungeman@google.comac2e6632011-06-01 13:23:29 +000050 'images.gyp:images',
51 'utils.gyp:utils',
bungeman@google.com206c98a2011-05-31 21:21:54 +000052 ],
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000053 'conditions': [
54 [ 'OS != "mac"', {
55 'sources!': [
56 '../bench/BenchSysTimer_mach.h',
57 '../bench/BenchSysTimer_mach.cpp',
58 ],
59 }],
60 [ 'OS not in ["linux", "freebsd", "openbsd", "solaris"]', {
61 'sources!': [
62 '../bench/BenchSysTimer_posix.h',
63 '../bench/BenchSysTimer_posix.cpp',
64 ],
65 }],
66 [ 'OS in ["linux", "freebsd", "openbsd", "solaris"]', {
67 'link_settings': {
68 'libraries': [
69 '-lrt',
70 ],
71 },
72 }],
73 [ 'OS != "win"', {
74 'sources!': [
75 '../bench/BenchSysTimer_windows.h',
76 '../bench/BenchSysTimer_windows.cpp',
77 ],
78 }],
79
80 [ 'OS in ["win", "mac", "linux", "freebsd", "openbsd", "solaris"]', {
81 'sources!': [
82 '../bench/BenchGpuTimer_none.h',
83 '../bench/BenchGpuTimer_none.cpp',
84 ],
85 }],
86 [ 'OS not in ["win", "mac", "linux", "freebsd", "openbsd", "solaris"]', {
87 'sources!': [
88 '../bench/BenchGpuTimer_gl.h',
89 '../bench/BenchGpuTimer_gl.cpp',
90 ],
91 }],
92 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +000093 },
94 ],
95}
96
97# Local Variables:
98# tab-width:2
99# indent-tabs-mode:nil
100# End:
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000101# vim: set expandtab tabstop=2 shiftwidth=2: