blob: 4900826a9442863f0340e86b629693fb633b503a [file] [log] [blame]
joshualittda7b8432015-05-27 09:19:03 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5# GYP file to build visual bench tool
6{
bsalomon48297f72015-06-16 12:21:00 -07007 'includes': [
8 'apptype_console.gypi',
9 ],
joshualittda7b8432015-05-27 09:19:03 -070010 'targets': [
11 {
12 'target_name': 'visualbench',
13 'type': 'executable',
joshualitt962cc982015-06-30 07:43:14 -070014 'includes' : [
15 'gmslides.gypi',
16 ],
joshualittda7b8432015-05-27 09:19:03 -070017 'include_dirs' : [
joshualitt962cc982015-06-30 07:43:14 -070018 '../bench',
joshualittda7b8432015-05-27 09:19:03 -070019 '../include/gpu',
mtkleincd1f2da2015-07-28 08:55:14 -070020 '../include/private',
joshualitt7fe8ee42015-06-01 10:03:54 -070021 '../src/core',
joshualitt962cc982015-06-30 07:43:14 -070022 '../src/effects',
joshualittda7b8432015-05-27 09:19:03 -070023 '../src/images',
24 ],
25 'sources': [
joshualitt962cc982015-06-30 07:43:14 -070026 '../gm/gm.cpp',
joshualitt91b6f322015-06-30 06:50:10 -070027 '../tools/VisualBench/VisualBench.h',
28 '../tools/VisualBench/VisualBench.cpp',
joshualitt962cc982015-06-30 07:43:14 -070029 '../tools/VisualBench/VisualBenchmarkStream.h',
30 '../tools/VisualBench/VisualBenchmarkStream.cpp',
31 '../tools/VisualBench/VisualSKPBench.h',
32 '../tools/VisualBench/VisualSKPBench.cpp',
33 '<!@(python find.py ../bench "*.cpp")',
34 ],
35 'sources!': [
36 '../bench/nanobench.cpp',
37 '../bench/nanobenchAndroid.cpp',
joshualittda7b8432015-05-27 09:19:03 -070038 ],
39 'dependencies': [
joshualitt962cc982015-06-30 07:43:14 -070040 'etc1.gyp:libetc1',
41 'flags.gyp:flags',
mtkleincd1f2da2015-07-28 08:55:14 -070042 'gputest.gyp:skgputest',
joshualittda7b8432015-05-27 09:19:03 -070043 'skia_lib.gyp:skia_lib',
joshualitt7fe8ee42015-06-01 10:03:54 -070044 'tools.gyp:proc_stats',
joshualitt962cc982015-06-30 07:43:14 -070045 'tools.gyp:sk_tool_utils',
joshualittda7b8432015-05-27 09:19:03 -070046 'tools.gyp:timer',
47 'views.gyp:views',
48 ],
49 'conditions' : [
joshualitt030dc842015-06-12 12:51:44 -070050 [ 'skia_os == "android"', {
51 'dependencies': [
52 'android_deps.gyp:Android_VisualBench',
53 'android_deps.gyp:native_app_glue',
54 ],
55 'link_settings': {
56 'libraries': [
57 '-landroid',
58 '-lGLESv2',
59 '-lEGL',
60 ],
mtkleincd1f2da2015-07-28 08:55:14 -070061 },
joshualitt030dc842015-06-12 12:51:44 -070062 }],
joshualittda7b8432015-05-27 09:19:03 -070063 ],
64 },
65 ],
66}