blob: 8dea597ef8c5d4290a577e0d93b9645a8e8f4a9a [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',
joshualitt189aef72015-09-08 07:08:11 -070027 '<!@(python find.py ../tools/VisualBench "*.cpp")',
28 '<!@(python find.py ../tools/VisualBench "*.h")',
joshualitt962cc982015-06-30 07:43:14 -070029 '<!@(python find.py ../bench "*.cpp")',
30 ],
31 'sources!': [
32 '../bench/nanobench.cpp',
33 '../bench/nanobenchAndroid.cpp',
joshualittda7b8432015-05-27 09:19:03 -070034 ],
35 'dependencies': [
joshualitt962cc982015-06-30 07:43:14 -070036 'etc1.gyp:libetc1',
37 'flags.gyp:flags',
joshualitt892b0c32015-08-18 12:13:34 -070038 'jsoncpp.gyp:jsoncpp',
mtkleincd1f2da2015-07-28 08:55:14 -070039 'gputest.gyp:skgputest',
joshualittda7b8432015-05-27 09:19:03 -070040 'skia_lib.gyp:skia_lib',
msarett7f691442015-09-22 11:56:16 -070041 'tools.gyp:bitmap_region_decoder',
joshualitt7fe8ee42015-06-01 10:03:54 -070042 'tools.gyp:proc_stats',
joshualitt962cc982015-06-30 07:43:14 -070043 'tools.gyp:sk_tool_utils',
joshualittda7b8432015-05-27 09:19:03 -070044 'tools.gyp:timer',
45 'views.gyp:views',
46 ],
47 'conditions' : [
joshualitt030dc842015-06-12 12:51:44 -070048 [ 'skia_os == "android"', {
49 'dependencies': [
50 'android_deps.gyp:Android_VisualBench',
51 'android_deps.gyp:native_app_glue',
52 ],
53 'link_settings': {
54 'libraries': [
55 '-landroid',
56 '-lGLESv2',
57 '-lEGL',
58 ],
mtkleincd1f2da2015-07-28 08:55:14 -070059 },
joshualitt030dc842015-06-12 12:51:44 -070060 }],
joshualittda7b8432015-05-27 09:19:03 -070061 ],
62 },
63 ],
64}