2011-06-02 14:38:23 +00:00
|
|
|
# GYP file to build performance testbench.
|
|
|
|
#
|
2011-05-31 21:21:54 +00:00
|
|
|
{
|
|
|
|
'includes': [
|
2011-06-02 14:38:23 +00:00
|
|
|
'apptype_console.gypi',
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'bench',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2012-06-22 18:24:56 +00:00
|
|
|
'bench_timer',
|
2014-06-18 18:44:15 +00:00
|
|
|
'crash_handler.gyp:CrashHandler',
|
|
|
|
'etc1.gyp:libetc1',
|
2013-07-24 17:24:23 +00:00
|
|
|
'flags.gyp:flags',
|
2013-12-03 18:16:48 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
2014-06-18 21:32:48 +00:00
|
|
|
'resources.gyp:resources',
|
2014-06-18 18:44:15 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
2013-12-02 13:50:38 +00:00
|
|
|
'sources': [
|
2014-05-29 17:10:24 +00:00
|
|
|
'../bench/ResultsWriter.cpp',
|
2013-12-02 13:50:38 +00:00
|
|
|
'../bench/SkBenchLogger.cpp',
|
|
|
|
'../bench/SkBenchLogger.h',
|
2014-02-03 14:48:17 +00:00
|
|
|
'../bench/SkGMBench.cpp',
|
|
|
|
'../bench/SkGMBench.h',
|
2013-12-02 13:50:38 +00:00
|
|
|
'../bench/benchmain.cpp',
|
2014-03-07 03:25:16 +00:00
|
|
|
'../tools/sk_tool_utils.cpp',
|
2013-12-02 13:50:38 +00:00
|
|
|
],
|
2012-08-02 14:03:32 +00:00
|
|
|
'conditions': [
|
|
|
|
['skia_gpu == 1',
|
|
|
|
{
|
|
|
|
'include_dirs' : [
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
2014-01-27 19:52:51 +00:00
|
|
|
'dependencies': [
|
|
|
|
'gputest.gyp:skgputest',
|
|
|
|
],
|
2012-08-02 14:03:32 +00:00
|
|
|
},
|
|
|
|
],
|
2014-05-16 13:15:41 +00:00
|
|
|
['skia_android_framework == 1',
|
|
|
|
{
|
|
|
|
'libraries': [
|
|
|
|
'-lskia',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2012-08-02 14:03:32 +00:00
|
|
|
],
|
2014-02-03 14:48:17 +00:00
|
|
|
'includes': [
|
2014-02-26 23:01:57 +00:00
|
|
|
'bench.gypi',
|
2014-02-03 14:48:17 +00:00
|
|
|
'gmslides.gypi',
|
|
|
|
],
|
2011-05-31 21:21:54 +00:00
|
|
|
},
|
2012-06-22 18:24:56 +00:00
|
|
|
{
|
|
|
|
'target_name' : 'bench_timer',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'../bench/BenchTimer.h',
|
|
|
|
'../bench/BenchTimer.cpp',
|
|
|
|
'../bench/BenchSysTimer_mach.h',
|
|
|
|
'../bench/BenchSysTimer_mach.cpp',
|
|
|
|
'../bench/BenchSysTimer_posix.h',
|
|
|
|
'../bench/BenchSysTimer_posix.cpp',
|
|
|
|
'../bench/BenchSysTimer_windows.h',
|
|
|
|
'../bench/BenchSysTimer_windows.cpp',
|
|
|
|
],
|
2014-04-28 15:30:02 +00:00
|
|
|
'include_dirs': [
|
2012-06-22 18:24:56 +00:00
|
|
|
'../src/core',
|
|
|
|
'../src/gpu',
|
2014-03-07 03:25:16 +00:00
|
|
|
'../tools',
|
2012-06-22 18:24:56 +00:00
|
|
|
],
|
2014-04-28 15:30:02 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': ['../bench'],
|
|
|
|
},
|
2012-06-22 18:24:56 +00:00
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2012-06-22 18:24:56 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2012-09-24 19:33:57 +00:00
|
|
|
[ 'skia_os not in ["mac", "ios"]', {
|
2012-06-22 18:24:56 +00:00
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_mach.h',
|
|
|
|
'../bench/BenchSysTimer_mach.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2013-06-11 15:52:19 +00:00
|
|
|
[ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
|
2012-06-22 18:24:56 +00:00
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_posix.h',
|
|
|
|
'../bench/BenchSysTimer_posix.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2013-06-11 15:52:19 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
|
2012-06-22 18:24:56 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lrt',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
[ 'skia_os != "win"', {
|
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_windows.h',
|
|
|
|
'../bench/BenchSysTimer_windows.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2012-08-02 14:03:32 +00:00
|
|
|
['skia_gpu == 1', {
|
|
|
|
'sources': [
|
|
|
|
'../bench/BenchGpuTimer_gl.h',
|
|
|
|
'../bench/BenchGpuTimer_gl.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2012-06-22 18:24:56 +00:00
|
|
|
],
|
|
|
|
}
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
|
|
|
}
|