1 # GYP file to build performance testbench. 2 # 3 { 4 'includes': [ 5 'apptype_console.gypi', 6 ], 7 'targets': [ 8 { 9 'target_name': 'bench', 10 'type': 'executable', 11 'include_dirs' : [ 12 '../src/core', 13 '../src/effects', 14 '../src/utils', 15 ], 16 'includes': [ 17 'bench.gypi' 18 ], 19 'dependencies': [ 20 'skia_lib.gyp:skia_lib', 21 'bench_timer', 22 'flags.gyp:flags', 23 ], 24 'conditions': [ 25 ['skia_gpu == 1', 26 { 27 'include_dirs' : [ 28 '../src/gpu', 29 ], 30 }, 31 ], 32 ], 33 }, 34 { 35 'target_name' : 'bench_timer', 36 'type': 'static_library', 37 'sources': [ 38 '../bench/BenchTimer.h', 39 '../bench/BenchTimer.cpp', 40 '../bench/BenchSysTimer_mach.h', 41 '../bench/BenchSysTimer_mach.cpp', 42 '../bench/BenchSysTimer_posix.h', 43 '../bench/BenchSysTimer_posix.cpp', 44 '../bench/BenchSysTimer_windows.h', 45 '../bench/BenchSysTimer_windows.cpp', 46 ], 47 'include_dirs': [ 48 '../src/core', 49 '../src/gpu', 50 ], 51 'dependencies': [ 52 'skia_lib.gyp:skia_lib', 53 ], 54 'conditions': [ 55 [ 'skia_os not in ["mac", "ios"]', { 56 'sources!': [ 57 '../bench/BenchSysTimer_mach.h', 58 '../bench/BenchSysTimer_mach.cpp', 59 ], 60 }], 61 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', { 62 'sources!': [ 63 '../bench/BenchSysTimer_posix.h', 64 '../bench/BenchSysTimer_posix.cpp', 65 ], 66 }], 67 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { 68 'link_settings': { 69 'libraries': [ 70 '-lrt', 71 ], 72 }, 73 }], 74 [ 'skia_os != "win"', { 75 'sources!': [ 76 '../bench/BenchSysTimer_windows.h', 77 '../bench/BenchSysTimer_windows.cpp', 78 ], 79 }], 80 ['skia_gpu == 1', { 81 'sources': [ 82 '../bench/BenchGpuTimer_gl.h', 83 '../bench/BenchGpuTimer_gl.cpp', 84 ], 85 }], 86 ], 87 } 88 ], 89 } 90 91 # Local Variables: 92 # tab-width:2 93 # indent-tabs-mode:nil 94 # End: 95 # vim: set expandtab tabstop=2 shiftwidth=2: 96