Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / gyp / bench.gyp
1 # GYP file to build performance testbench.
2 #
3 {
4   'includes': [
5     'apptype_console.gypi',
6   ],
7   'targets': [
8     {
9       'target_name': 'bench',
10       'type': 'executable',
11       'dependencies': [
12         'skia_lib.gyp:skia_lib',
13         'bench_timer',
14         'flags.gyp:flags',
15         'jsoncpp.gyp:jsoncpp',
16       ],
17       'sources': [
18         '../bench/SkBenchLogger.cpp',
19         '../bench/SkBenchLogger.h',
20         '../bench/SkGMBench.cpp',
21         '../bench/SkGMBench.h',
22         '../bench/benchmain.cpp',
23         '../tools/sk_tool_utils.cpp',
24       ],
25       'conditions': [
26         ['skia_gpu == 1',
27           {
28             'include_dirs' : [
29               '../src/gpu',
30             ],
31             'dependencies': [
32               'gputest.gyp:skgputest',
33             ],
34           },
35         ],
36       ],
37       'includes': [
38         'bench.gypi',
39         'gmslides.gypi',
40       ],
41     },
42     {
43       'target_name' : 'bench_timer',
44       'type': 'static_library',
45       'sources': [
46         '../bench/BenchTimer.h',
47         '../bench/BenchTimer.cpp',
48         '../bench/BenchSysTimer_mach.h',
49         '../bench/BenchSysTimer_mach.cpp',
50         '../bench/BenchSysTimer_posix.h',
51         '../bench/BenchSysTimer_posix.cpp',
52         '../bench/BenchSysTimer_windows.h',
53         '../bench/BenchSysTimer_windows.cpp',
54       ],
55       'include_dirs': [
56         '../src/core',
57         '../src/gpu',
58         '../tools',
59       ],
60       'direct_dependent_settings': {
61         'include_dirs': ['../bench'],
62       },
63       'dependencies': [
64         'skia_lib.gyp:skia_lib',
65       ],
66       'conditions': [
67         [ 'skia_os not in ["mac", "ios"]', {
68           'sources!': [
69             '../bench/BenchSysTimer_mach.h',
70             '../bench/BenchSysTimer_mach.cpp',
71           ],
72         }],
73         [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
74           'sources!': [
75             '../bench/BenchSysTimer_posix.h',
76             '../bench/BenchSysTimer_posix.cpp',
77           ],
78         }],
79         [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
80           'link_settings': {
81             'libraries': [
82               '-lrt',
83             ],
84           },
85         }],
86         [ 'skia_os != "win"', {
87           'sources!': [
88             '../bench/BenchSysTimer_windows.h',
89             '../bench/BenchSysTimer_windows.cpp',
90           ],
91         }],
92         ['skia_gpu == 1', {
93           'sources': [
94             '../bench/BenchGpuTimer_gl.h',
95             '../bench/BenchGpuTimer_gl.cpp',
96           ],
97         }],
98       ],
99     }
100   ],
101 }