Create new 'skia_os' variable to replace use of 'OS' in most places.
[platform/upstream/libSkiaSharp.git] / gyp / bench.gyp
1 # GYP file to build performance testbench.
2 #
3 {
4   'includes': [
5     'apptype_console.gypi',
6     'common.gypi',
7   ],
8   'targets': [
9     {
10       'target_name': 'bench',
11       'type': 'executable',
12       'sources': [
13         '../bench/benchmain.cpp',
14         '../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',
26         
27         '../bench/SkBenchmark.h',
28         '../bench/SkBenchmark.cpp',
29         
30         '../bench/BitmapBench.cpp',
31         '../bench/DecodeBench.cpp',
32         '../bench/FPSBench.cpp',
33         '../bench/GradientBench.cpp',
34         '../bench/MatrixBench.cpp',
35         '../bench/PathBench.cpp',
36         '../bench/RectBench.cpp',
37         '../bench/RepeatTileBench.cpp',
38         '../bench/ScalarBench.cpp',
39         '../bench/TextBench.cpp',
40       ],
41       'dependencies': [
42         'core.gyp:core',
43         'effects.gyp:effects',
44         'gpu.gyp:gr',
45         'gpu.gyp:skgr',
46         'images.gyp:images',
47         'utils.gyp:utils',
48       ],
49       'conditions': [
50         [ 'skia_os != "mac"', {
51           'sources!': [
52             '../bench/BenchSysTimer_mach.h',
53             '../bench/BenchSysTimer_mach.cpp',
54           ],
55         }],
56         [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]', {
57           'sources!': [
58             '../bench/BenchSysTimer_posix.h',
59             '../bench/BenchSysTimer_posix.cpp',
60           ],
61         },{
62           'link_settings': {
63             'libraries': [
64               '-lrt',
65             ],
66           },
67         }],
68         [ 'skia_os != "win"', {
69           'sources!': [
70             '../bench/BenchSysTimer_windows.h',
71             '../bench/BenchSysTimer_windows.cpp',
72           ],
73         }],
74         [ 'skia_os in ["win", "mac", "linux", "freebsd", "openbsd", "solaris"]', {
75           'sources!': [
76             '../bench/BenchGpuTimer_none.h',
77             '../bench/BenchGpuTimer_none.cpp',
78           ],
79         },{
80           'sources!': [
81             '../bench/BenchGpuTimer_gl.h',
82             '../bench/BenchGpuTimer_gl.cpp',
83           ],
84         }],
85       ],
86     },
87   ],
88 }
89
90 # Local Variables:
91 # tab-width:2
92 # indent-tabs-mode:nil
93 # End:
94 # vim: set expandtab tabstop=2 shiftwidth=2: