blob: 5f38b0949d7b6749eaa6634d5bbe5223a059b1cb [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build performance testbench.
2#
bungeman@google.com206c98a2011-05-31 21:21:54 +00003{
4 'includes': [
epoger@google.comccdbd2c2011-06-02 14:38:23 +00005 'apptype_console.gypi',
bungeman@google.com206c98a2011-05-31 21:21:54 +00006 ],
7 'targets': [
8 {
9 'target_name': 'bench',
10 'type': 'executable',
reed@google.com57c49572011-10-31 14:33:35 +000011 'include_dirs' : [
12 '../src/core',
reed@google.comac0d47e2013-01-04 23:06:44 +000013 '../src/effects',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000014 '../src/utils',
reed@google.com57c49572011-10-31 14:33:35 +000015 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +000016 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000017 'skia_lib.gyp:skia_lib',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000018 'bench_timer',
sglez@google.com586db932013-07-24 17:24:23 +000019 'flags.gyp:flags',
commit-bot@chromium.orge3bb3bc2013-12-03 18:16:48 +000020 'jsoncpp.gyp:jsoncpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +000021 ],
rmistry@google.comd6bab022013-12-02 13:50:38 +000022 'sources': [
23 '../bench/AAClipBench.cpp',
24 '../bench/BicubicBench.cpp',
25 '../bench/BitmapBench.cpp',
26 '../bench/BitmapRectBench.cpp',
27 '../bench/BitmapScaleBench.cpp',
28 '../bench/BlurBench.cpp',
29 '../bench/BlurImageFilterBench.cpp',
30 '../bench/BlurRectBench.cpp',
31 '../bench/BlurRoundRectBench.cpp',
32 '../bench/ChartBench.cpp',
33 '../bench/ChecksumBench.cpp',
34 '../bench/ChromeBench.cpp',
35 '../bench/CmapBench.cpp',
36 '../bench/ColorFilterBench.cpp',
commit-bot@chromium.orgc25d2212013-12-02 22:32:47 +000037 '../bench/ColorPrivBench.cpp',
rmistry@google.comd6bab022013-12-02 13:50:38 +000038 '../bench/CoverageBench.cpp',
39 '../bench/DashBench.cpp',
40 '../bench/DecodeBench.cpp',
41 '../bench/DeferredCanvasBench.cpp',
42 '../bench/DeferredSurfaceCopyBench.cpp',
43 '../bench/DisplacementBench.cpp',
44 '../bench/FSRectBench.cpp',
45 '../bench/FontCacheBench.cpp',
46 '../bench/FontScalerBench.cpp',
47 '../bench/GameBench.cpp',
48 '../bench/GrMemoryPoolBench.cpp',
49 '../bench/GrResourceCacheBench.cpp',
50 '../bench/GradientBench.cpp',
51 '../bench/HairlinePathBench.cpp',
52 '../bench/ImageCacheBench.cpp',
53 '../bench/ImageDecodeBench.cpp',
54 '../bench/InterpBench.cpp',
55 '../bench/LightingBench.cpp',
56 '../bench/LineBench.cpp',
57 '../bench/MagnifierBench.cpp',
58 '../bench/MathBench.cpp',
59 '../bench/Matrix44Bench.cpp',
60 '../bench/MatrixBench.cpp',
61 '../bench/MatrixConvolutionBench.cpp',
62 '../bench/MemoryBench.cpp',
63 '../bench/MemsetBench.cpp',
64 '../bench/MergeBench.cpp',
65 '../bench/MorphologyBench.cpp',
66 '../bench/MutexBench.cpp',
67 '../bench/PathBench.cpp',
68 '../bench/PathIterBench.cpp',
69 '../bench/PathUtilsBench.cpp',
70 '../bench/PerlinNoiseBench.cpp',
71 '../bench/PicturePlaybackBench.cpp',
72 '../bench/PictureRecordBench.cpp',
73 '../bench/PremulAndUnpremulAlphaOpsBench.cpp',
74 '../bench/RTreeBench.cpp',
75 '../bench/ReadPixBench.cpp',
76 '../bench/RectBench.cpp',
77 '../bench/RectoriBench.cpp',
78 '../bench/RefCntBench.cpp',
79 '../bench/RegionBench.cpp',
80 '../bench/RegionContainBench.cpp',
81 '../bench/RepeatTileBench.cpp',
82 '../bench/ScalarBench.cpp',
83 '../bench/ShaderMaskBench.cpp',
84 '../bench/SkipZeroesBench.cpp',
85 '../bench/SortBench.cpp',
86 '../bench/StrokeBench.cpp',
87 '../bench/TableBench.cpp',
88 '../bench/TextBench.cpp',
89 '../bench/TileBench.cpp',
90 '../bench/VertBench.cpp',
91 '../bench/WritePixelsBench.cpp',
92 '../bench/WriterBench.cpp',
93 '../bench/XfermodeBench.cpp',
94
95 '../bench/SkBenchLogger.cpp',
96 '../bench/SkBenchLogger.h',
97 '../bench/SkBenchmark.cpp',
98 '../bench/SkBenchmark.h',
99 '../bench/benchmain.cpp',
100 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000101 'conditions': [
102 ['skia_gpu == 1',
103 {
104 'include_dirs' : [
105 '../src/gpu',
106 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000107 },
108 ],
109 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +0000110 },
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000111 {
112 'target_name' : 'bench_timer',
113 'type': 'static_library',
114 'sources': [
115 '../bench/BenchTimer.h',
116 '../bench/BenchTimer.cpp',
117 '../bench/BenchSysTimer_mach.h',
118 '../bench/BenchSysTimer_mach.cpp',
119 '../bench/BenchSysTimer_posix.h',
120 '../bench/BenchSysTimer_posix.cpp',
121 '../bench/BenchSysTimer_windows.h',
122 '../bench/BenchSysTimer_windows.cpp',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000123 ],
124 'include_dirs': [
125 '../src/core',
126 '../src/gpu',
127 ],
128 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000129 'skia_lib.gyp:skia_lib',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000130 ],
131 'conditions': [
caryclark@google.com594dd3c2012-09-24 19:33:57 +0000132 [ 'skia_os not in ["mac", "ios"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000133 'sources!': [
134 '../bench/BenchSysTimer_mach.h',
135 '../bench/BenchSysTimer_mach.cpp',
136 ],
137 }],
borenet@google.com05d550e2013-06-11 15:52:19 +0000138 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000139 'sources!': [
140 '../bench/BenchSysTimer_posix.h',
141 '../bench/BenchSysTimer_posix.cpp',
142 ],
143 }],
borenet@google.com05d550e2013-06-11 15:52:19 +0000144 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000145 'link_settings': {
146 'libraries': [
147 '-lrt',
148 ],
149 },
150 }],
151 [ 'skia_os != "win"', {
152 'sources!': [
153 '../bench/BenchSysTimer_windows.h',
154 '../bench/BenchSysTimer_windows.cpp',
155 ],
156 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000157 ['skia_gpu == 1', {
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +0000158 'sources': [
159 '../bench/BenchGpuTimer_gl.h',
160 '../bench/BenchGpuTimer_gl.cpp',
161 ],
162 }],
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000163 ],
164 }
bungeman@google.com206c98a2011-05-31 21:21:54 +0000165 ],
166}