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