blob: bae46f8d60acd6cf8ca47cf2077fadf52b685d63 [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',
epoger@google.com5351b372011-07-01 17:16:26 +00006 'common.gypi',
bungeman@google.com206c98a2011-05-31 21:21:54 +00007 ],
8 'targets': [
9 {
10 'target_name': 'bench',
11 'type': 'executable',
bungeman@google.com206c98a2011-05-31 21:21:54 +000012 'sources': [
13 '../bench/benchmain.cpp',
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000014 '../bench/BenchTimer.h',
15 '../bench/BenchTimer.cpp',
16 '../bench/BenchSysTimer_mach.h',
17 '../bench/BenchSysTimer_mach.cpp',
18 '../bench/BenchSysTimer_posix.h',
19 '../bench/BenchSysTimer_posix.cpp',
20 '../bench/BenchSysTimer_windows.h',
21 '../bench/BenchSysTimer_windows.cpp',
22 '../bench/BenchGpuTimer_gl.h',
23 '../bench/BenchGpuTimer_gl.cpp',
24 '../bench/BenchGpuTimer_none.h',
25 '../bench/BenchGpuTimer_none.cpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +000026
27 '../bench/SkBenchmark.h',
28 '../bench/SkBenchmark.cpp',
29
30 '../bench/BitmapBench.cpp',
reed@google.com25df8882011-07-14 19:03:58 +000031 '../bench/BlurBench.cpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +000032 '../bench/DecodeBench.cpp',
33 '../bench/FPSBench.cpp',
34 '../bench/GradientBench.cpp',
reed@google.com30db5992011-08-29 17:41:02 +000035 '../bench/MathBench.cpp',
bungeman@google.com48d5d8e2011-06-15 22:00:58 +000036 '../bench/MatrixBench.cpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +000037 '../bench/PathBench.cpp',
38 '../bench/RectBench.cpp',
39 '../bench/RepeatTileBench.cpp',
bungeman@google.com48d5d8e2011-06-15 22:00:58 +000040 '../bench/ScalarBench.cpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +000041 '../bench/TextBench.cpp',
42 ],
43 'dependencies': [
44 'core.gyp:core',
45 'effects.gyp:effects',
bungeman@google.com206c98a2011-05-31 21:21:54 +000046 'gpu.gyp:gr',
47 'gpu.gyp:skgr',
bungeman@google.comac2e6632011-06-01 13:23:29 +000048 'images.gyp:images',
49 'utils.gyp:utils',
bungeman@google.com206c98a2011-05-31 21:21:54 +000050 ],
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000051 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000052 [ 'skia_os != "mac"', {
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000053 'sources!': [
54 '../bench/BenchSysTimer_mach.h',
55 '../bench/BenchSysTimer_mach.cpp',
56 ],
57 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000058 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000059 'sources!': [
60 '../bench/BenchSysTimer_posix.h',
61 '../bench/BenchSysTimer_posix.cpp',
62 ],
bungeman@google.com48d5d8e2011-06-15 22:00:58 +000063 },{
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000064 'link_settings': {
65 'libraries': [
66 '-lrt',
67 ],
68 },
69 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000070 [ 'skia_os != "win"', {
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000071 'sources!': [
72 '../bench/BenchSysTimer_windows.h',
73 '../bench/BenchSysTimer_windows.cpp',
74 ],
75 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000076 [ 'skia_os in ["win", "mac", "linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000077 'sources!': [
78 '../bench/BenchGpuTimer_none.h',
79 '../bench/BenchGpuTimer_none.cpp',
80 ],
bungeman@google.com48d5d8e2011-06-15 22:00:58 +000081 },{
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000082 'sources!': [
83 '../bench/BenchGpuTimer_gl.h',
84 '../bench/BenchGpuTimer_gl.cpp',
85 ],
86 }],
87 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +000088 },
89 ],
90}
91
92# Local Variables:
93# tab-width:2
94# indent-tabs-mode:nil
95# End:
epoger@google.comccdbd2c2011-06-02 14:38:23 +000096# vim: set expandtab tabstop=2 shiftwidth=2: