2011-06-02 14:38:23 +00:00
|
|
|
# GYP file to build performance testbench.
|
|
|
|
#
|
|
|
|
# To build and run on Linux:
|
|
|
|
# ./gyp_skia bench.gyp && make
|
|
|
|
# out/Debug/bench -repeat 2
|
|
|
|
#
|
|
|
|
# Building on other platforms not tested yet.
|
|
|
|
#
|
2011-05-31 21:21:54 +00:00
|
|
|
{
|
|
|
|
'includes': [
|
2011-06-02 14:38:23 +00:00
|
|
|
'apptype_console.gypi',
|
2011-07-01 17:16:26 +00:00
|
|
|
'common.gypi',
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'bench',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'../bench/benchmain.cpp',
|
2011-06-07 19:16:02 +00:00
|
|
|
'../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',
|
|
|
|
'../bench/BenchGpuTimer_none.h',
|
|
|
|
'../bench/BenchGpuTimer_none.cpp',
|
2011-05-31 21:21:54 +00:00
|
|
|
|
|
|
|
'../bench/SkBenchmark.h',
|
|
|
|
'../bench/SkBenchmark.cpp',
|
|
|
|
|
|
|
|
'../bench/BitmapBench.cpp',
|
|
|
|
'../bench/DecodeBench.cpp',
|
|
|
|
'../bench/FPSBench.cpp',
|
|
|
|
'../bench/GradientBench.cpp',
|
2011-06-15 22:00:58 +00:00
|
|
|
'../bench/MatrixBench.cpp',
|
2011-05-31 21:21:54 +00:00
|
|
|
'../bench/PathBench.cpp',
|
|
|
|
'../bench/RectBench.cpp',
|
|
|
|
'../bench/RepeatTileBench.cpp',
|
2011-06-15 22:00:58 +00:00
|
|
|
'../bench/ScalarBench.cpp',
|
2011-05-31 21:21:54 +00:00
|
|
|
'../bench/TextBench.cpp',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'effects.gyp:effects',
|
|
|
|
'gpu.gyp:gr',
|
|
|
|
'gpu.gyp:skgr',
|
2011-06-01 13:23:29 +00:00
|
|
|
'images.gyp:images',
|
|
|
|
'utils.gyp:utils',
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
2011-06-07 19:16:02 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'OS != "mac"', {
|
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_mach.h',
|
|
|
|
'../bench/BenchSysTimer_mach.cpp',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'OS not in ["linux", "freebsd", "openbsd", "solaris"]', {
|
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_posix.h',
|
|
|
|
'../bench/BenchSysTimer_posix.cpp',
|
|
|
|
],
|
2011-06-15 22:00:58 +00:00
|
|
|
},{
|
2011-06-07 19:16:02 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lrt',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
[ 'OS != "win"', {
|
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_windows.h',
|
|
|
|
'../bench/BenchSysTimer_windows.cpp',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'OS in ["win", "mac", "linux", "freebsd", "openbsd", "solaris"]', {
|
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchGpuTimer_none.h',
|
|
|
|
'../bench/BenchGpuTimer_none.cpp',
|
|
|
|
],
|
2011-06-15 22:00:58 +00:00
|
|
|
},{
|
2011-06-07 19:16:02 +00:00
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchGpuTimer_gl.h',
|
|
|
|
'../bench/BenchGpuTimer_gl.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:
|