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', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 11 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 12 | 'skia_lib.gyp:skia_lib', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 13 | 'bench_timer', |
sglez@google.com | 586db93 | 2013-07-24 17:24:23 +0000 | [diff] [blame] | 14 | 'flags.gyp:flags', |
commit-bot@chromium.org | e3bb3bc | 2013-12-03 18:16:48 +0000 | [diff] [blame] | 15 | 'jsoncpp.gyp:jsoncpp', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 16 | ], |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 17 | 'sources': [ |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 18 | '../bench/SkBenchLogger.cpp', |
| 19 | '../bench/SkBenchLogger.h', |
commit-bot@chromium.org | 6adce67 | 2014-02-03 14:48:17 +0000 | [diff] [blame] | 20 | '../bench/SkGMBench.cpp', |
| 21 | '../bench/SkGMBench.h', |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 22 | '../bench/benchmain.cpp', |
commit-bot@chromium.org | 4cd9e21 | 2014-03-07 03:25:16 +0000 | [diff] [blame] | 23 | '../tools/sk_tool_utils.cpp', |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 24 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 25 | 'conditions': [ |
| 26 | ['skia_gpu == 1', |
| 27 | { |
| 28 | 'include_dirs' : [ |
| 29 | '../src/gpu', |
| 30 | ], |
commit-bot@chromium.org | 78dd91d | 2014-01-27 19:52:51 +0000 | [diff] [blame] | 31 | 'dependencies': [ |
| 32 | 'gputest.gyp:skgputest', |
| 33 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 34 | }, |
| 35 | ], |
| 36 | ], |
commit-bot@chromium.org | 6adce67 | 2014-02-03 14:48:17 +0000 | [diff] [blame] | 37 | 'includes': [ |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 38 | 'bench.gypi', |
commit-bot@chromium.org | 6adce67 | 2014-02-03 14:48:17 +0000 | [diff] [blame] | 39 | 'gmslides.gypi', |
| 40 | ], |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 41 | }, |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 42 | { |
| 43 | 'target_name' : 'bench_timer', |
| 44 | 'type': 'static_library', |
| 45 | 'sources': [ |
| 46 | '../bench/BenchTimer.h', |
| 47 | '../bench/BenchTimer.cpp', |
| 48 | '../bench/BenchSysTimer_mach.h', |
| 49 | '../bench/BenchSysTimer_mach.cpp', |
| 50 | '../bench/BenchSysTimer_posix.h', |
| 51 | '../bench/BenchSysTimer_posix.cpp', |
| 52 | '../bench/BenchSysTimer_windows.h', |
| 53 | '../bench/BenchSysTimer_windows.cpp', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 54 | ], |
| 55 | 'include_dirs': [ |
| 56 | '../src/core', |
| 57 | '../src/gpu', |
commit-bot@chromium.org | 4cd9e21 | 2014-03-07 03:25:16 +0000 | [diff] [blame] | 58 | '../tools', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 59 | ], |
| 60 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 61 | 'skia_lib.gyp:skia_lib', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 62 | ], |
| 63 | 'conditions': [ |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 64 | [ 'skia_os not in ["mac", "ios"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 65 | 'sources!': [ |
| 66 | '../bench/BenchSysTimer_mach.h', |
| 67 | '../bench/BenchSysTimer_mach.cpp', |
| 68 | ], |
| 69 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 70 | [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 71 | 'sources!': [ |
| 72 | '../bench/BenchSysTimer_posix.h', |
| 73 | '../bench/BenchSysTimer_posix.cpp', |
| 74 | ], |
| 75 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 76 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 77 | 'link_settings': { |
| 78 | 'libraries': [ |
| 79 | '-lrt', |
| 80 | ], |
| 81 | }, |
| 82 | }], |
| 83 | [ 'skia_os != "win"', { |
| 84 | 'sources!': [ |
| 85 | '../bench/BenchSysTimer_windows.h', |
| 86 | '../bench/BenchSysTimer_windows.cpp', |
| 87 | ], |
| 88 | }], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 89 | ['skia_gpu == 1', { |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 90 | 'sources': [ |
| 91 | '../bench/BenchGpuTimer_gl.h', |
| 92 | '../bench/BenchGpuTimer_gl.cpp', |
| 93 | ], |
| 94 | }], |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 95 | ], |
| 96 | } |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 97 | ], |
| 98 | } |