blob: 4bf559ae98fab5689dcb3b464f57a6bb55d29c84 [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',
joshualitt7fe8ee42015-06-01 10:03:54 -070020 '../src/core',
joshualitt962cc982015-06-30 07:43:14 -070021 '../src/effects',
joshualittda7b8432015-05-27 09:19:03 -070022 '../src/images',
23 ],
24 'sources': [
joshualitt962cc982015-06-30 07:43:14 -070025 '../gm/gm.cpp',
joshualitt91b6f322015-06-30 06:50:10 -070026 '../tools/VisualBench/VisualBench.h',
27 '../tools/VisualBench/VisualBench.cpp',
joshualitt962cc982015-06-30 07:43:14 -070028 '../tools/VisualBench/VisualBenchmarkStream.h',
29 '../tools/VisualBench/VisualBenchmarkStream.cpp',
30 '../tools/VisualBench/VisualSKPBench.h',
31 '../tools/VisualBench/VisualSKPBench.cpp',
32 '<!@(python find.py ../bench "*.cpp")',
33 ],
34 'sources!': [
35 '../bench/nanobench.cpp',
36 '../bench/nanobenchAndroid.cpp',
joshualittda7b8432015-05-27 09:19:03 -070037 ],
38 'dependencies': [
joshualitt962cc982015-06-30 07:43:14 -070039 'etc1.gyp:libetc1',
40 'flags.gyp:flags',
41 'gputest.gyp:skgputest',
joshualittda7b8432015-05-27 09:19:03 -070042 'skia_lib.gyp:skia_lib',
joshualitt7fe8ee42015-06-01 10:03:54 -070043 'tools.gyp:proc_stats',
joshualitt962cc982015-06-30 07:43:14 -070044 'tools.gyp:sk_tool_utils',
joshualittda7b8432015-05-27 09:19:03 -070045 'tools.gyp:timer',
46 'views.gyp:views',
47 ],
48 'conditions' : [
joshualitt030dc842015-06-12 12:51:44 -070049 [ 'skia_os == "android"', {
50 'dependencies': [
51 'android_deps.gyp:Android_VisualBench',
52 'android_deps.gyp:native_app_glue',
53 ],
54 'link_settings': {
55 'libraries': [
56 '-landroid',
57 '-lGLESv2',
58 '-lEGL',
59 ],
60 },
61 }],
joshualittda7b8432015-05-27 09:19:03 -070062 ],
63 },
64 ],
65}