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',
|
2011-10-31 14:33:35 +00:00
|
|
|
'include_dirs' : [
|
|
|
|
'../src/core',
|
2013-01-04 23:06:44 +00:00
|
|
|
'../src/effects',
|
2013-01-31 19:47:48 +00:00
|
|
|
'../src/utils',
|
2011-10-31 14:33:35 +00:00
|
|
|
],
|
2011-09-15 14:24:33 +00:00
|
|
|
'includes': [
|
2011-10-31 14:33:35 +00:00
|
|
|
'bench.gypi'
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2012-06-22 18:24:56 +00:00
|
|
|
'bench_timer',
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
2012-08-02 14:03:32 +00:00
|
|
|
'conditions': [
|
|
|
|
['skia_gpu == 1',
|
|
|
|
{
|
|
|
|
'include_dirs' : [
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
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',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/core',
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
|
|
|
'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',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
|
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_posix.h',
|
|
|
|
'../bench/BenchSysTimer_posix.cpp',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
|
|
|
|
'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
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
2011-06-02 14:38:23 +00:00
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|