blob: dcf9b5f8c2b70b69d8709430f8efd89b06603d11 [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',
13 '../src/gpu',
14 ],
seanpaul@google.com1134f982011-09-15 14:24:33 +000015 'includes': [
reed@google.com57c49572011-10-31 14:33:35 +000016 'bench.gypi'
bungeman@google.com206c98a2011-05-31 21:21:54 +000017 ],
18 'dependencies': [
19 'core.gyp:core',
20 'effects.gyp:effects',
bungeman@google.com206c98a2011-05-31 21:21:54 +000021 'gpu.gyp:gr',
22 'gpu.gyp:skgr',
bungeman@google.comac2e6632011-06-01 13:23:29 +000023 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000024 'ports.gyp:ports',
bungeman@google.comac2e6632011-06-01 13:23:29 +000025 'utils.gyp:utils',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000026 'bench_timer',
bungeman@google.com206c98a2011-05-31 21:21:54 +000027 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +000028 },
twiz@google.coma31b8bb2012-06-22 18:24:56 +000029 {
30 'target_name' : 'bench_timer',
31 'type': 'static_library',
32 'sources': [
33 '../bench/BenchTimer.h',
34 '../bench/BenchTimer.cpp',
35 '../bench/BenchSysTimer_mach.h',
36 '../bench/BenchSysTimer_mach.cpp',
37 '../bench/BenchSysTimer_posix.h',
38 '../bench/BenchSysTimer_posix.cpp',
39 '../bench/BenchSysTimer_windows.h',
40 '../bench/BenchSysTimer_windows.cpp',
41 '../bench/BenchGpuTimer_gl.h',
42 '../bench/BenchGpuTimer_gl.cpp',
43 ],
44 'include_dirs': [
45 '../src/core',
46 '../src/gpu',
47 ],
48 'dependencies': [
49 'core.gyp:core',
50 'gpu.gyp:gr',
51 ],
52 'conditions': [
53 [ 'skia_os != "mac"', {
54 'sources!': [
55 '../bench/BenchSysTimer_mach.h',
56 '../bench/BenchSysTimer_mach.cpp',
57 ],
58 }],
59 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
60 'sources!': [
61 '../bench/BenchSysTimer_posix.h',
62 '../bench/BenchSysTimer_posix.cpp',
63 ],
64 }],
65 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
66 'link_settings': {
67 'libraries': [
68 '-lrt',
69 ],
70 },
71 }],
72 [ 'skia_os != "win"', {
73 'sources!': [
74 '../bench/BenchSysTimer_windows.h',
75 '../bench/BenchSysTimer_windows.cpp',
76 ],
77 }],
78 ],
79 }
bungeman@google.com206c98a2011-05-31 21:21:54 +000080 ],
81}
82
83# Local Variables:
84# tab-width:2
85# indent-tabs-mode:nil
86# End:
epoger@google.comccdbd2c2011-06-02 14:38:23 +000087# vim: set expandtab tabstop=2 shiftwidth=2: