epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 1 | # GYP file to build performance testbench. |
| 2 | # |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 3 | { |
| 4 | 'includes': [ |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 5 | 'apptype_console.gypi', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 6 | ], |
| 7 | 'targets': [ |
| 8 | { |
| 9 | 'target_name': 'bench', |
| 10 | 'type': 'executable', |
reed@google.com | 57c4957 | 2011-10-31 14:33:35 +0000 | [diff] [blame] | 11 | 'include_dirs' : [ |
| 12 | '../src/core', |
reed@google.com | ac0d47e | 2013-01-04 23:06:44 +0000 | [diff] [blame] | 13 | '../src/effects', |
bungeman@google.com | cfcb1be | 2013-01-31 19:47:48 +0000 | [diff] [blame] | 14 | '../src/utils', |
reed@google.com | 57c4957 | 2011-10-31 14:33:35 +0000 | [diff] [blame] | 15 | ], |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 16 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 17 | 'skia_lib.gyp:skia_lib', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 18 | 'bench_timer', |
sglez@google.com | 586db93 | 2013-07-24 17:24:23 +0000 | [diff] [blame] | 19 | 'flags.gyp:flags', |
commit-bot@chromium.org | e3bb3bc | 2013-12-03 18:16:48 +0000 | [diff] [blame] | 20 | 'jsoncpp.gyp:jsoncpp', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 21 | ], |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 22 | '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.org | c25d221 | 2013-12-02 22:32:47 +0000 | [diff] [blame] | 37 | '../bench/ColorPrivBench.cpp', |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 38 | '../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', |
commit-bot@chromium.org | 85facf7 | 2014-01-07 17:03:31 +0000 | [diff] [blame^] | 86 | '../bench/StackBench.cpp', |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 87 | '../bench/StrokeBench.cpp', |
| 88 | '../bench/TableBench.cpp', |
| 89 | '../bench/TextBench.cpp', |
| 90 | '../bench/TileBench.cpp', |
| 91 | '../bench/VertBench.cpp', |
| 92 | '../bench/WritePixelsBench.cpp', |
| 93 | '../bench/WriterBench.cpp', |
| 94 | '../bench/XfermodeBench.cpp', |
| 95 | |
| 96 | '../bench/SkBenchLogger.cpp', |
| 97 | '../bench/SkBenchLogger.h', |
| 98 | '../bench/SkBenchmark.cpp', |
| 99 | '../bench/SkBenchmark.h', |
| 100 | '../bench/benchmain.cpp', |
| 101 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 102 | 'conditions': [ |
| 103 | ['skia_gpu == 1', |
| 104 | { |
| 105 | 'include_dirs' : [ |
| 106 | '../src/gpu', |
| 107 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 108 | }, |
| 109 | ], |
| 110 | ], |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 111 | }, |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 112 | { |
| 113 | 'target_name' : 'bench_timer', |
| 114 | 'type': 'static_library', |
| 115 | 'sources': [ |
| 116 | '../bench/BenchTimer.h', |
| 117 | '../bench/BenchTimer.cpp', |
| 118 | '../bench/BenchSysTimer_mach.h', |
| 119 | '../bench/BenchSysTimer_mach.cpp', |
| 120 | '../bench/BenchSysTimer_posix.h', |
| 121 | '../bench/BenchSysTimer_posix.cpp', |
| 122 | '../bench/BenchSysTimer_windows.h', |
| 123 | '../bench/BenchSysTimer_windows.cpp', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 124 | ], |
| 125 | 'include_dirs': [ |
| 126 | '../src/core', |
| 127 | '../src/gpu', |
| 128 | ], |
| 129 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 130 | 'skia_lib.gyp:skia_lib', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 131 | ], |
| 132 | 'conditions': [ |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 133 | [ 'skia_os not in ["mac", "ios"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 134 | 'sources!': [ |
| 135 | '../bench/BenchSysTimer_mach.h', |
| 136 | '../bench/BenchSysTimer_mach.cpp', |
| 137 | ], |
| 138 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 139 | [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 140 | 'sources!': [ |
| 141 | '../bench/BenchSysTimer_posix.h', |
| 142 | '../bench/BenchSysTimer_posix.cpp', |
| 143 | ], |
| 144 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 145 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 146 | 'link_settings': { |
| 147 | 'libraries': [ |
| 148 | '-lrt', |
| 149 | ], |
| 150 | }, |
| 151 | }], |
| 152 | [ 'skia_os != "win"', { |
| 153 | 'sources!': [ |
| 154 | '../bench/BenchSysTimer_windows.h', |
| 155 | '../bench/BenchSysTimer_windows.cpp', |
| 156 | ], |
| 157 | }], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 158 | ['skia_gpu == 1', { |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 159 | 'sources': [ |
| 160 | '../bench/BenchGpuTimer_gl.h', |
| 161 | '../bench/BenchGpuTimer_gl.cpp', |
| 162 | ], |
| 163 | }], |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 164 | ], |
| 165 | } |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 166 | ], |
| 167 | } |