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': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 20 | 'skia_base_libs.gyp:skia_base_libs', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 21 | 'effects.gyp:effects', |
bungeman@google.com | ac2e663 | 2011-06-01 13:23:29 +0000 | [diff] [blame] | 22 | 'images.gyp:images', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 23 | 'bench_timer', |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +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 | ], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 31 | }, |
| 32 | ], |
| 33 | ], |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 34 | }, |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 35 | { |
| 36 | 'target_name' : 'bench_timer', |
| 37 | 'type': 'static_library', |
| 38 | 'sources': [ |
| 39 | '../bench/BenchTimer.h', |
| 40 | '../bench/BenchTimer.cpp', |
| 41 | '../bench/BenchSysTimer_mach.h', |
| 42 | '../bench/BenchSysTimer_mach.cpp', |
| 43 | '../bench/BenchSysTimer_posix.h', |
| 44 | '../bench/BenchSysTimer_posix.cpp', |
| 45 | '../bench/BenchSysTimer_windows.h', |
| 46 | '../bench/BenchSysTimer_windows.cpp', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 47 | ], |
| 48 | 'include_dirs': [ |
| 49 | '../src/core', |
| 50 | '../src/gpu', |
| 51 | ], |
| 52 | 'dependencies': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 53 | 'skia_base_libs.gyp:skia_base_libs', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 54 | ], |
| 55 | 'conditions': [ |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 56 | [ 'skia_os not in ["mac", "ios"]', { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 57 | 'sources!': [ |
| 58 | '../bench/BenchSysTimer_mach.h', |
| 59 | '../bench/BenchSysTimer_mach.cpp', |
| 60 | ], |
| 61 | }], |
| 62 | [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', { |
| 63 | 'sources!': [ |
| 64 | '../bench/BenchSysTimer_posix.h', |
| 65 | '../bench/BenchSysTimer_posix.cpp', |
| 66 | ], |
| 67 | }], |
| 68 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
| 69 | 'link_settings': { |
| 70 | 'libraries': [ |
| 71 | '-lrt', |
| 72 | ], |
| 73 | }, |
| 74 | }], |
| 75 | [ 'skia_os != "win"', { |
| 76 | 'sources!': [ |
| 77 | '../bench/BenchSysTimer_windows.h', |
| 78 | '../bench/BenchSysTimer_windows.cpp', |
| 79 | ], |
| 80 | }], |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 81 | ['skia_gpu == 1', { |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 82 | 'sources': [ |
| 83 | '../bench/BenchGpuTimer_gl.h', |
| 84 | '../bench/BenchGpuTimer_gl.cpp', |
| 85 | ], |
| 86 | }], |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 87 | ], |
| 88 | } |
bungeman@google.com | 206c98a | 2011-05-31 21:21:54 +0000 | [diff] [blame] | 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: |