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', |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 6 | 'common.gypi', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 7 | ], |
| 8 | 'targets': [ |
| 9 | { |
| 10 | 'target_name': 'bench', |
| 11 | 'type': 'executable', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 12 | 'sources': [ |
| 13 | '../bench/benchmain.cpp', |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 14 | '../bench/BenchTimer.h', |
| 15 | '../bench/BenchTimer.cpp', |
| 16 | '../bench/BenchSysTimer_mach.h', |
| 17 | '../bench/BenchSysTimer_mach.cpp', |
| 18 | '../bench/BenchSysTimer_posix.h', |
| 19 | '../bench/BenchSysTimer_posix.cpp', |
| 20 | '../bench/BenchSysTimer_windows.h', |
| 21 | '../bench/BenchSysTimer_windows.cpp', |
| 22 | '../bench/BenchGpuTimer_gl.h', |
| 23 | '../bench/BenchGpuTimer_gl.cpp', |
| 24 | '../bench/BenchGpuTimer_none.h', |
| 25 | '../bench/BenchGpuTimer_none.cpp', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 26 | |
| 27 | '../bench/SkBenchmark.h', |
| 28 | '../bench/SkBenchmark.cpp', |
| 29 | |
| 30 | '../bench/BitmapBench.cpp', |
reed@google.com | 25df888 | 2011-07-14 19:03:58 +0000 | [diff] [blame] | 31 | '../bench/BlurBench.cpp', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 32 | '../bench/DecodeBench.cpp', |
| 33 | '../bench/FPSBench.cpp', |
| 34 | '../bench/GradientBench.cpp', |
reed@google.com | 30db599 | 2011-08-29 17:41:02 +0000 | [diff] [blame] | 35 | '../bench/MathBench.cpp', |
bungeman@google.com | 48d5d8e | 2011-06-15 22:00:58 +0000 | [diff] [blame] | 36 | '../bench/MatrixBench.cpp', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 37 | '../bench/PathBench.cpp', |
| 38 | '../bench/RectBench.cpp', |
| 39 | '../bench/RepeatTileBench.cpp', |
bungeman@google.com | 48d5d8e | 2011-06-15 22:00:58 +0000 | [diff] [blame] | 40 | '../bench/ScalarBench.cpp', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 41 | '../bench/TextBench.cpp', |
| 42 | ], |
| 43 | 'dependencies': [ |
| 44 | 'core.gyp:core', |
| 45 | 'effects.gyp:effects', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 46 | 'gpu.gyp:gr', |
| 47 | 'gpu.gyp:skgr', |
bungeman@google.com | ac2e663 | 2011-06-01 13:23:29 +0000 | [diff] [blame] | 48 | 'images.gyp:images', |
| 49 | 'utils.gyp:utils', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 50 | ], |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 51 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 52 | [ 'skia_os != "mac"', { |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 53 | 'sources!': [ |
| 54 | '../bench/BenchSysTimer_mach.h', |
| 55 | '../bench/BenchSysTimer_mach.cpp', |
| 56 | ], |
| 57 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 58 | [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]', { |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 59 | 'sources!': [ |
| 60 | '../bench/BenchSysTimer_posix.h', |
| 61 | '../bench/BenchSysTimer_posix.cpp', |
| 62 | ], |
bungeman@google.com | 48d5d8e | 2011-06-15 22:00:58 +0000 | [diff] [blame] | 63 | },{ |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 64 | 'link_settings': { |
| 65 | 'libraries': [ |
| 66 | '-lrt', |
| 67 | ], |
| 68 | }, |
| 69 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 70 | [ 'skia_os != "win"', { |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 71 | 'sources!': [ |
| 72 | '../bench/BenchSysTimer_windows.h', |
| 73 | '../bench/BenchSysTimer_windows.cpp', |
| 74 | ], |
| 75 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 76 | [ 'skia_os in ["win", "mac", "linux", "freebsd", "openbsd", "solaris"]', { |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 77 | 'sources!': [ |
| 78 | '../bench/BenchGpuTimer_none.h', |
| 79 | '../bench/BenchGpuTimer_none.cpp', |
| 80 | ], |
bungeman@google.com | 48d5d8e | 2011-06-15 22:00:58 +0000 | [diff] [blame] | 81 | },{ |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 82 | 'sources!': [ |
| 83 | '../bench/BenchGpuTimer_gl.h', |
| 84 | '../bench/BenchGpuTimer_gl.cpp', |
| 85 | ], |
| 86 | }], |
| 87 | ], |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 88 | }, |
| 89 | ], |
| 90 | } |
| 91 | |
| 92 | # Local Variables: |
| 93 | # tab-width:2 |
| 94 | # indent-tabs-mode:nil |
| 95 | # End: |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 96 | # vim: set expandtab tabstop=2 shiftwidth=2: |