blob: 44ebbf2d0eae9abc431067547fce0e397e4a82c6 [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',
reed@google.com57c49572011-10-31 14:33:35 +000011 'include_dirs' : [
12 '../src/core',
reed@google.com57c49572011-10-31 14:33:35 +000013 ],
seanpaul@google.com1134f982011-09-15 14:24:33 +000014 'includes': [
reed@google.com57c49572011-10-31 14:33:35 +000015 'bench.gypi'
bungeman@google.com206c98a2011-05-31 21:21:54 +000016 ],
17 'dependencies': [
18 'core.gyp:core',
19 'effects.gyp:effects',
bungeman@google.comac2e6632011-06-01 13:23:29 +000020 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000021 'ports.gyp:ports',
bungeman@google.comac2e6632011-06-01 13:23:29 +000022 'utils.gyp:utils',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000023 'bench_timer',
bungeman@google.com206c98a2011-05-31 21:21:54 +000024 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000025 'conditions': [
26 ['skia_gpu == 1',
27 {
28 'include_dirs' : [
29 '../src/gpu',
30 ],
31 'dependencies': [
32 'gpu.gyp:gr',
33 'gpu.gyp:skgr',
34 ],
35 },
36 ],
37 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +000038 },
twiz@google.coma31b8bb2012-06-22 18:24:56 +000039 {
40 'target_name' : 'bench_timer',
41 'type': 'static_library',
42 'sources': [
43 '../bench/BenchTimer.h',
44 '../bench/BenchTimer.cpp',
45 '../bench/BenchSysTimer_mach.h',
46 '../bench/BenchSysTimer_mach.cpp',
47 '../bench/BenchSysTimer_posix.h',
48 '../bench/BenchSysTimer_posix.cpp',
49 '../bench/BenchSysTimer_windows.h',
50 '../bench/BenchSysTimer_windows.cpp',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000051 ],
52 'include_dirs': [
53 '../src/core',
54 '../src/gpu',
55 ],
56 'dependencies': [
57 'core.gyp:core',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000058 ],
59 'conditions': [
60 [ 'skia_os != "mac"', {
61 'sources!': [
62 '../bench/BenchSysTimer_mach.h',
63 '../bench/BenchSysTimer_mach.cpp',
64 ],
65 }],
66 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
67 'sources!': [
68 '../bench/BenchSysTimer_posix.h',
69 '../bench/BenchSysTimer_posix.cpp',
70 ],
71 }],
72 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
73 'link_settings': {
74 'libraries': [
75 '-lrt',
76 ],
77 },
78 }],
79 [ 'skia_os != "win"', {
80 'sources!': [
81 '../bench/BenchSysTimer_windows.h',
82 '../bench/BenchSysTimer_windows.cpp',
83 ],
84 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000085 ['skia_gpu == 1', {
86 'dependencies': [
87 'gpu.gyp:gr',
88 ],
89 'sources': [
90 '../bench/BenchGpuTimer_gl.h',
91 '../bench/BenchGpuTimer_gl.cpp',
92 ],
93 }],
twiz@google.coma31b8bb2012-06-22 18:24:56 +000094 ],
95 }
bungeman@google.com206c98a2011-05-31 21:21:54 +000096 ],
97}
98
99# Local Variables:
100# tab-width:2
101# indent-tabs-mode:nil
102# End:
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000103# vim: set expandtab tabstop=2 shiftwidth=2: