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',
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
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': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'effects.gyp:effects',
|
|
|
|
'gpu.gyp:gr',
|
|
|
|
'gpu.gyp:skgr',
|
2011-06-01 13:23:29 +00:00
|
|
|
'images.gyp:images',
|
2011-12-14 17:12:04 +00:00
|
|
|
'ports.gyp:ports',
|
2011-06-01 13:23:29 +00:00
|
|
|
'utils.gyp:utils',
|
2012-06-22 18:24:56 +00:00
|
|
|
'bench_timer',
|
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',
|
|
|
|
'../bench/BenchGpuTimer_gl.h',
|
|
|
|
'../bench/BenchGpuTimer_gl.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/core',
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'gpu.gyp:gr',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_os != "mac"', {
|
|
|
|
'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',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}
|
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:
|