bench.gypi revision 1cab2921ab279367f8206cdadc9259d12e603548
1# sources and conditions used in skia's bench.gyp and chromium's skia.gyp
2#
3{
4  'sources': [
5    '../bench/benchmain.cpp',
6    '../bench/BenchTimer.h',
7    '../bench/BenchTimer.cpp',
8    '../bench/BenchSysTimer_mach.h',
9    '../bench/BenchSysTimer_mach.cpp',
10    '../bench/BenchSysTimer_posix.h',
11    '../bench/BenchSysTimer_posix.cpp',
12    '../bench/BenchSysTimer_windows.h',
13    '../bench/BenchSysTimer_windows.cpp',
14    '../bench/BenchGpuTimer_gl.h',
15    '../bench/BenchGpuTimer_gl.cpp',
16
17    '../bench/SkBenchmark.h',
18    '../bench/SkBenchmark.cpp',
19
20    '../bench/AAClipBench.cpp',
21    '../bench/BitmapBench.cpp',
22    '../bench/BlurBench.cpp',
23    '../bench/ChromeBench.cpp',
24    '../bench/DecodeBench.cpp',
25    '../bench/FontScalerBench.cpp',
26    '../bench/GradientBench.cpp',
27    '../bench/MathBench.cpp',
28    '../bench/MatrixBench.cpp',
29    '../bench/MutexBench.cpp',
30    '../bench/PathBench.cpp',
31    '../bench/RectBench.cpp',
32    '../bench/RepeatTileBench.cpp',
33    '../bench/ScalarBench.cpp',
34    '../bench/ShaderMaskBench.cpp',
35    '../bench/TextBench.cpp',
36    '../bench/VertBench.cpp',
37  ],
38  'conditions': [
39    [ 'skia_os != "mac"', {
40      'sources!': [
41        '../bench/BenchSysTimer_mach.h',
42        '../bench/BenchSysTimer_mach.cpp',
43      ],
44    }],
45    [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
46      'sources!': [
47        '../bench/BenchSysTimer_posix.h',
48        '../bench/BenchSysTimer_posix.cpp',
49      ],
50    }],
51    [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
52      'link_settings': {
53        'libraries': [
54          '-lrt',
55        ],
56      },
57    }],
58    [ 'skia_os != "win"', {
59      'sources!': [
60        '../bench/BenchSysTimer_windows.h',
61        '../bench/BenchSysTimer_windows.cpp',
62      ],
63    }],
64  ],
65}
66
67# Local Variables:
68# tab-width:2
69# indent-tabs-mode:nil
70# End:
71# vim: set expandtab tabstop=2 shiftwidth=2:
72