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-09-08 14:08:11 +00:00
|
|
|
'<!@(python find.py ../tools/VisualBench "*.cpp")',
|
|
|
|
'<!@(python find.py ../tools/VisualBench "*.h")',
|
2015-06-30 14:43:14 +00:00
|
|
|
'<!@(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-08-18 19:13:34 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
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-09-22 18:56:16 +00:00
|
|
|
'tools.gyp:bitmap_region_decoder',
|
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-11-05 19:49:35 +00:00
|
|
|
[ 'skia_os == "android" and skia_use_sdl == 0', {
|
2015-06-12 19:51:44 +00:00
|
|
|
'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-11-10 15:36:18 +00:00
|
|
|
[ 'skia_os == "android" and skia_use_sdl == 1', {
|
|
|
|
'dependencies': [
|
|
|
|
'android_deps.gyp:Android_VisualBenchSDL',
|
|
|
|
],
|
|
|
|
}],
|
2015-05-27 16:19:03 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|