blob: 43924ab30acedef3c798e7f0c3cad6e2de730852 [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',
commit-bot@chromium.org4cd9e212014-03-07 03:25:16 +000023 '../tools/sk_tool_utils.cpp',
rmistry@google.comd6bab022013-12-02 13:50:38 +000024 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000025 'conditions': [
26 ['skia_gpu == 1',
27 {
28 'include_dirs' : [
29 '../src/gpu',
30 ],
commit-bot@chromium.org78dd91d2014-01-27 19:52:51 +000031 'dependencies': [
32 'gputest.gyp:skgputest',
33 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000034 },
35 ],
36 ],
commit-bot@chromium.org6adce672014-02-03 14:48:17 +000037 'includes': [
commit-bot@chromium.org38aeb0f2014-02-26 23:01:57 +000038 'bench.gypi',
commit-bot@chromium.org6adce672014-02-03 14:48:17 +000039 'gmslides.gypi',
40 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +000041 },
twiz@google.coma31b8bb2012-06-22 18:24:56 +000042 {
43 'target_name' : 'bench_timer',
44 'type': 'static_library',
45 'sources': [
46 '../bench/BenchTimer.h',
47 '../bench/BenchTimer.cpp',
48 '../bench/BenchSysTimer_mach.h',
49 '../bench/BenchSysTimer_mach.cpp',
50 '../bench/BenchSysTimer_posix.h',
51 '../bench/BenchSysTimer_posix.cpp',
52 '../bench/BenchSysTimer_windows.h',
53 '../bench/BenchSysTimer_windows.cpp',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000054 ],
55 'include_dirs': [
56 '../src/core',
57 '../src/gpu',
commit-bot@chromium.org4cd9e212014-03-07 03:25:16 +000058 '../tools',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000059 ],
60 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000061 'skia_lib.gyp:skia_lib',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000062 ],
63 'conditions': [
caryclark@google.com594dd3c2012-09-24 19:33:57 +000064 [ 'skia_os not in ["mac", "ios"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +000065 'sources!': [
66 '../bench/BenchSysTimer_mach.h',
67 '../bench/BenchSysTimer_mach.cpp',
68 ],
69 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000070 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +000071 'sources!': [
72 '../bench/BenchSysTimer_posix.h',
73 '../bench/BenchSysTimer_posix.cpp',
74 ],
75 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000076 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +000077 'link_settings': {
78 'libraries': [
79 '-lrt',
80 ],
81 },
82 }],
83 [ 'skia_os != "win"', {
84 'sources!': [
85 '../bench/BenchSysTimer_windows.h',
86 '../bench/BenchSysTimer_windows.cpp',
87 ],
88 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000089 ['skia_gpu == 1', {
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000090 'sources': [
91 '../bench/BenchGpuTimer_gl.h',
92 '../bench/BenchGpuTimer_gl.cpp',
93 ],
94 }],
twiz@google.coma31b8bb2012-06-22 18:24:56 +000095 ],
96 }
bungeman@google.com206c98a2011-05-31 21:21:54 +000097 ],
98}