2015-05-27 16:19:03 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
# GYP file to build visual bench tool
|
|
|
|
{
|
2015-06-16 19:21:00 +00:00
|
|
|
'includes': [
|
|
|
|
'apptype_console.gypi',
|
|
|
|
],
|
2015-05-27 16:19:03 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'visualbench',
|
|
|
|
'type': 'executable',
|
2015-06-30 14:43:14 +00:00
|
|
|
'includes' : [
|
|
|
|
'gmslides.gypi',
|
|
|
|
],
|
2015-05-27 16:19:03 +00:00
|
|
|
'include_dirs' : [
|
2015-06-30 14:43:14 +00:00
|
|
|
'../bench',
|
2015-05-27 16:19:03 +00:00
|
|
|
'../include/gpu',
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
2015-06-01 17:03:54 +00:00
|
|
|
'../src/core',
|
2015-06-30 14:43:14 +00:00
|
|
|
'../src/effects',
|
2015-05-27 16:19:03 +00:00
|
|
|
'../src/images',
|
|
|
|
],
|
|
|
|
'sources': [
|
2015-06-30 14:43:14 +00:00
|
|
|
'../gm/gm.cpp',
|
2015-06-30 13:50:10 +00:00
|
|
|
'../tools/VisualBench/VisualBench.h',
|
|
|
|
'../tools/VisualBench/VisualBench.cpp',
|
2015-06-30 14:43:14 +00:00
|
|
|
'../tools/VisualBench/VisualBenchmarkStream.h',
|
|
|
|
'../tools/VisualBench/VisualBenchmarkStream.cpp',
|
|
|
|
'../tools/VisualBench/VisualSKPBench.h',
|
|
|
|
'../tools/VisualBench/VisualSKPBench.cpp',
|
|
|
|
'<!@(python find.py ../bench "*.cpp")',
|
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../bench/nanobench.cpp',
|
|
|
|
'../bench/nanobenchAndroid.cpp',
|
2015-05-27 16:19:03 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2015-06-30 14:43:14 +00:00
|
|
|
'etc1.gyp:libetc1',
|
|
|
|
'flags.gyp:flags',
|
2015-07-28 15:55:14 +00:00
|
|
|
'gputest.gyp:skgputest',
|
2015-05-27 16:19:03 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2015-06-01 17:03:54 +00:00
|
|
|
'tools.gyp:proc_stats',
|
2015-06-30 14:43:14 +00:00
|
|
|
'tools.gyp:sk_tool_utils',
|
2015-05-27 16:19:03 +00:00
|
|
|
'tools.gyp:timer',
|
|
|
|
'views.gyp:views',
|
|
|
|
],
|
|
|
|
'conditions' : [
|
2015-06-12 19:51:44 +00:00
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
'dependencies': [
|
|
|
|
'android_deps.gyp:Android_VisualBench',
|
|
|
|
'android_deps.gyp:native_app_glue',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-landroid',
|
|
|
|
'-lGLESv2',
|
|
|
|
'-lEGL',
|
|
|
|
],
|
2015-07-28 15:55:14 +00:00
|
|
|
},
|
2015-06-12 19:51:44 +00:00
|
|
|
}],
|
2015-05-27 16:19:03 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|