blob: be768f04aeb142d819cc1f1e94a166ff6ab64a41 [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.comac0d47e2013-01-04 23:06:44 +000013 '../src/effects',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000014 '../src/utils',
reed@google.com57c49572011-10-31 14:33:35 +000015 ],
seanpaul@google.com1134f982011-09-15 14:24:33 +000016 'includes': [
reed@google.com57c49572011-10-31 14:33:35 +000017 'bench.gypi'
bungeman@google.com206c98a2011-05-31 21:21:54 +000018 ],
19 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000020 'skia_base_libs.gyp:skia_base_libs',
bungeman@google.com206c98a2011-05-31 21:21:54 +000021 'effects.gyp:effects',
bungeman@google.comac2e6632011-06-01 13:23:29 +000022 'images.gyp:images',
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 ],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000031 },
32 ],
33 ],
bungeman@google.com206c98a2011-05-31 21:21:54 +000034 },
twiz@google.coma31b8bb2012-06-22 18:24:56 +000035 {
36 'target_name' : 'bench_timer',
37 'type': 'static_library',
38 'sources': [
39 '../bench/BenchTimer.h',
40 '../bench/BenchTimer.cpp',
41 '../bench/BenchSysTimer_mach.h',
42 '../bench/BenchSysTimer_mach.cpp',
43 '../bench/BenchSysTimer_posix.h',
44 '../bench/BenchSysTimer_posix.cpp',
45 '../bench/BenchSysTimer_windows.h',
46 '../bench/BenchSysTimer_windows.cpp',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000047 ],
48 'include_dirs': [
49 '../src/core',
50 '../src/gpu',
51 ],
52 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000053 'skia_base_libs.gyp:skia_base_libs',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000054 ],
55 'conditions': [
caryclark@google.com594dd3c2012-09-24 19:33:57 +000056 [ 'skia_os not in ["mac", "ios"]', {
twiz@google.coma31b8bb2012-06-22 18:24:56 +000057 'sources!': [
58 '../bench/BenchSysTimer_mach.h',
59 '../bench/BenchSysTimer_mach.cpp',
60 ],
61 }],
62 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
63 'sources!': [
64 '../bench/BenchSysTimer_posix.h',
65 '../bench/BenchSysTimer_posix.cpp',
66 ],
67 }],
68 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
69 'link_settings': {
70 'libraries': [
71 '-lrt',
72 ],
73 },
74 }],
75 [ 'skia_os != "win"', {
76 'sources!': [
77 '../bench/BenchSysTimer_windows.h',
78 '../bench/BenchSysTimer_windows.cpp',
79 ],
80 }],
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000081 ['skia_gpu == 1', {
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000082 'sources': [
83 '../bench/BenchGpuTimer_gl.h',
84 '../bench/BenchGpuTimer_gl.cpp',
85 ],
86 }],
twiz@google.coma31b8bb2012-06-22 18:24:56 +000087 ],
88 }
bungeman@google.com206c98a2011-05-31 21:21:54 +000089 ],
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: