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