diff options
Diffstat (limited to 'gyp/bench.gyp')
-rw-r--r-- | gyp/bench.gyp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/gyp/bench.gyp b/gyp/bench.gyp index 1935f9d757..dcf9b5f8c2 100644 --- a/gyp/bench.gyp +++ b/gyp/bench.gyp @@ -23,8 +23,60 @@ 'images.gyp:images', 'ports.gyp:ports', 'utils.gyp:utils', + 'bench_timer', ], }, + { + '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', + ], + }], + ], + } ], } |