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_base_libs.gyp:skia_base_libs', 21 'effects.gyp:effects', 22 'images.gyp:images', 23 'bench_timer', 24 ], 25 'conditions': [ 26 ['skia_gpu == 1', 27 { 28 'include_dirs' : [ 29 '../src/gpu', 30 ], 31 }, 32 ], 33 ], 34 }, 35 { 36 'target_name' : 'bench_timer', 37 'type': 'static_library', 38 'sources': [ 39 '../bench/BenchTimer.h', 40 '../bench/BenchTimer.cpp', 41 '../bench/BenchSysTimer_mach.h', 42 '../bench/BenchSysTimer_mach.cpp', 43 '../bench/BenchSysTimer_posix.h', 44 '../bench/BenchSysTimer_posix.cpp', 45 '../bench/BenchSysTimer_windows.h', 46 '../bench/BenchSysTimer_windows.cpp', 47 ], 48 'include_dirs': [ 49 '../src/core', 50 '../src/gpu', 51 ], 52 'dependencies': [ 53 'skia_base_libs.gyp:skia_base_libs', 54 ], 55 'conditions': [ 56 [ 'skia_os not in ["mac", "ios"]', { 57 'sources!': [ 58 '../bench/BenchSysTimer_mach.h', 59 '../bench/BenchSysTimer_mach.cpp', 60 ], 61 }], 62 [ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', { 63 'sources!': [ 64 '../bench/BenchSysTimer_posix.h', 65 '../bench/BenchSysTimer_posix.cpp', 66 ], 67 }], 68 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 69 'link_settings': { 70 'libraries': [ 71 '-lrt', 72 ], 73 }, 74 }], 75 [ 'skia_os != "win"', { 76 'sources!': [ 77 '../bench/BenchSysTimer_windows.h', 78 '../bench/BenchSysTimer_windows.cpp', 79 ], 80 }], 81 ['skia_gpu == 1', { 82 'sources': [ 83 '../bench/BenchGpuTimer_gl.h', 84 '../bench/BenchGpuTimer_gl.cpp', 85 ], 86 }], 87 ], 88 } 89 ], 90 } 91 92 # Local Variables: 93 # tab-width:2 94 # indent-tabs-mode:nil 95 # End: 96 # vim: set expandtab tabstop=2 shiftwidth=2: 97