blob: c2337f6bba2b7c044fb996532c3d4e4796fd99a9 [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build performance testbench.
2#
bungeman@google.com206c98a2011-05-31 21:21:54 +00003{
4 'includes': [
epoger@google.comccdbd2c2011-06-02 14:38:23 +00005 'apptype_console.gypi',
bungeman@google.com206c98a2011-05-31 21:21:54 +00006 ],
7 'targets': [
8 {
9 'target_name': 'bench',
10 'type': 'executable',
bungeman@google.com206c98a2011-05-31 21:21:54 +000011 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000012 'skia_lib.gyp:skia_lib',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000013 'bench_timer',
sglez@google.com586db932013-07-24 17:24:23 +000014 'flags.gyp:flags',
commit-bot@chromium.orge3bb3bc2013-12-03 18:16:48 +000015 'jsoncpp.gyp:jsoncpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +000016 ],
rmistry@google.comd6bab022013-12-02 13:50:38 +000017 'sources': [
rmistry@google.comd6bab022013-12-02 13:50:38 +000018 '../bench/SkBenchLogger.cpp',
19 '../bench/SkBenchLogger.h',
commit-bot@chromium.org6adce672014-02-03 14:48:17 +000020 '../bench/SkGMBench.cpp',
21 '../bench/SkGMBench.h',
rmistry@google.comd6bab022013-12-02 13:50:38 +000022 '../bench/benchmain.cpp',
23 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000024 'conditions': [
25 ['skia_gpu == 1',
26 {
27 'include_dirs' : [
28 '../src/gpu',
29 ],
commit-bot@chromium.org78dd91d2014-01-27 19:52:51 +000030 'dependencies': [
31 'gputest.gyp:skgputest',
32 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000033 },
34 ],
35 ],
commit-bot@chromium.org6adce672014-02-03 14:48:17 +000036 'includes': [
commit-bot@chromium.org38aeb0f2014-02-26 23:01:57 +000037 'bench.gypi',
commit-bot@chromium.org6adce672014-02-03 14:48:17 +000038 'gmslides.gypi',
39 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +000040 },
twiz@google.coma31b8bb2012-06-22 18:24:56 +000041 {
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.coma31b8bb2012-06-22 18:24:56 +000053 ],
54 'include_dirs': [
55 '../src/core',
56 '../src/gpu',
57 ],
58 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000059 'skia_lib.gyp:skia_lib',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000060 ],
61 'conditions': [
caryclark@google.com594dd3c2012-09-24 19:33:57 +000062 [ 'skia_os not in ["mac", "ios"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +000063 'sources!': [
64 '../bench/BenchSysTimer_mach.h',
65 '../bench/BenchSysTimer_mach.cpp',
66 ],
67 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000068 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +000069 'sources!': [
70 '../bench/BenchSysTimer_posix.h',
71 '../bench/BenchSysTimer_posix.cpp',
72 ],
73 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000074 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +000075 '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.comcf8fb1f2012-08-02 14:03:32 +000087 ['skia_gpu == 1', {
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000088 'sources': [
89 '../bench/BenchGpuTimer_gl.h',
90 '../bench/BenchGpuTimer_gl.cpp',
91 ],
92 }],
twiz@google.coma31b8bb2012-06-22 18:24:56 +000093 ],
94 }
bungeman@google.com206c98a2011-05-31 21:21:54 +000095 ],
96}