| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 1 | # 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.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 9 | { |
| 10 | 'includes': [ |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 11 | 'apptype_console.gypi', |
| bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 12 | 'target_defaults.gypi', |
| 13 | ], |
| 14 | 'targets': [ |
| 15 | { |
| 16 | 'target_name': 'bench', |
| 17 | 'type': 'executable', |
| bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 18 | 'sources': [ |
| 19 | '../bench/benchmain.cpp', |
| bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame^] | 20 | '../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.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 32 | |
| 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.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 48 | 'gpu.gyp:gr', |
| 49 | 'gpu.gyp:skgr', |
| bungeman@google.com | ac2e663 | 2011-06-01 13:23:29 +0000 | [diff] [blame] | 50 | 'images.gyp:images', |
| 51 | 'utils.gyp:utils', |
| bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 52 | ], |
| bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame^] | 53 | '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.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 93 | }, |
| 94 | ], |
| 95 | } |
| 96 | |
| 97 | # Local Variables: |
| 98 | # tab-width:2 |
| 99 | # indent-tabs-mode:nil |
| 100 | # End: |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 101 | # vim: set expandtab tabstop=2 shiftwidth=2: |