],
'targets': [
{
- 'target_name': 'bench',
+ 'target_name': 'nanobench',
'type': 'executable',
- 'dependencies': [
- 'bench_timer',
- 'crash_handler.gyp:CrashHandler',
- 'etc1.gyp:libetc1',
- 'flags.gyp:flags',
- 'jsoncpp.gyp:jsoncpp',
- 'resources.gyp:resources',
- 'skia_lib.gyp:skia_lib',
- ],
'sources': [
- '../bench/BenchLogger.cpp',
- '../bench/BenchLogger.h',
+ '../gm/gm.cpp',
'../bench/GMBench.cpp',
- '../bench/GMBench.h',
+ '../bench/SKPBench.cpp',
'../bench/ResultsWriter.cpp',
- '../bench/benchmain.cpp',
- '../tools/sk_tool_utils.cpp',
- ],
- 'conditions': [
- ['skia_gpu == 1',
- {
- 'include_dirs' : [
- '../src/gpu',
- ],
- 'dependencies': [
- 'gputest.gyp:skgputest',
- ],
- },
- ],
- ['skia_android_framework == 1',
- {
- 'libraries': [
- '-lskia',
- ],
- },
- ],
+ '../bench/nanobench.cpp',
],
'includes': [
'bench.gypi',
'gmslides.gypi',
],
- },
- {
- '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',
- '../tools',
- ],
- 'direct_dependent_settings': {
- 'include_dirs': ['../bench'],
- },
'dependencies': [
+ 'flags.gyp:flags_common',
+ 'jsoncpp.gyp:jsoncpp',
'skia_lib.gyp:skia_lib',
+ 'tools.gyp:crash_handler',
+ 'tools.gyp:timer',
],
- 'conditions': [
- [ 'skia_os not in ["mac", "ios"]', {
- 'sources!': [
- '../bench/BenchSysTimer_mach.h',
- '../bench/BenchSysTimer_mach.cpp',
- ],
- }],
- [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
- 'sources!': [
- '../bench/BenchSysTimer_posix.h',
- '../bench/BenchSysTimer_posix.cpp',
- ],
- }],
- [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
- 'link_settings': {
- 'libraries': [
- '-lrt',
- ],
- },
- }],
- [ 'skia_os != "win"', {
- 'sources!': [
- '../bench/BenchSysTimer_windows.h',
- '../bench/BenchSysTimer_windows.cpp',
- ],
- }],
- ['skia_gpu == 1', {
- 'sources': [
- '../bench/BenchGpuTimer_gl.h',
- '../bench/BenchGpuTimer_gl.cpp',
- ],
- }],
- ],
- }
+ },
],
}