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 | ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 16 | 'includes': [ |
reed@google.com | 57c4957 | 2011-10-31 14:33:35 +0000 | [diff] [blame] | 17 | 'bench.gypi' |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 18 | ], |
| 19 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 20 | 'skia_lib.gyp:skia_lib', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 21 | 'bench_timer', |
sglez@google.com | 586db93 | 2013-07-24 17:24:23 +0000 | [diff] [blame^] | 22 | 'flags.gyp:flags', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 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 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 30 | }, |
| 31 | ], |
| 32 | ], |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 33 | }, |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 34 | { |
| 35 | 'target_name' : 'bench_timer', |
| 36 | 'type': 'static_library', |
| 37 | 'sources': [ |
| 38 | '../bench/BenchTimer.h', |
| 39 | '../bench/BenchTimer.cpp', |
| 40 | '../bench/BenchSysTimer_mach.h', |
| 41 | '../bench/BenchSysTimer_mach.cpp', |
| 42 | '../bench/BenchSysTimer_posix.h', |
| 43 | '../bench/BenchSysTimer_posix.cpp', |
| 44 | '../bench/BenchSysTimer_windows.h', |
| 45 | '../bench/BenchSysTimer_windows.cpp', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 46 | ], |
| 47 | 'include_dirs': [ |
| 48 | '../src/core', |
| 49 | '../src/gpu', |
| 50 | ], |
| 51 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 52 | 'skia_lib.gyp:skia_lib', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 53 | ], |
| 54 | 'conditions': [ |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 55 | [ 'skia_os not in ["mac", "ios"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 56 | 'sources!': [ |
| 57 | '../bench/BenchSysTimer_mach.h', |
| 58 | '../bench/BenchSysTimer_mach.cpp', |
| 59 | ], |
| 60 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 61 | [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 62 | 'sources!': [ |
| 63 | '../bench/BenchSysTimer_posix.h', |
| 64 | '../bench/BenchSysTimer_posix.cpp', |
| 65 | ], |
| 66 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 67 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 68 | 'link_settings': { |
| 69 | 'libraries': [ |
| 70 | '-lrt', |
| 71 | ], |
| 72 | }, |
| 73 | }], |
| 74 | [ 'skia_os != "win"', { |
| 75 | 'sources!': [ |
| 76 | '../bench/BenchSysTimer_windows.h', |
| 77 | '../bench/BenchSysTimer_windows.cpp', |
| 78 | ], |
| 79 | }], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 80 | ['skia_gpu == 1', { |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 81 | 'sources': [ |
| 82 | '../bench/BenchGpuTimer_gl.h', |
| 83 | '../bench/BenchGpuTimer_gl.cpp', |
| 84 | ], |
| 85 | }], |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 86 | ], |
| 87 | } |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 88 | ], |
| 89 | } |
| 90 | |
| 91 | # Local Variables: |
| 92 | # tab-width:2 |
| 93 | # indent-tabs-mode:nil |
| 94 | # End: |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 95 | # vim: set expandtab tabstop=2 shiftwidth=2: |