1# GYP file to build various tools. 2# 3# To build on Linux: 4# ./gyp_skia tools.gyp && make tools 5# 6# Building on other platforms not tested yet. 7# 8{ 9 'includes': [ 10 'apptype_console.gypi', 11 ], 12 'targets': [ 13 { 14 # Build all executable targets defined below. 15 'target_name': 'tools', 16 'type': 'none', 17 'dependencies': [ 18 'bench_pictures', 19 'filter', 20 'pinspect', 21 'render_pdfs', 22 'render_pictures', 23 'skdiff', 24 'skhello', 25 'skimage', 26 ], 27 }, 28 { 29 'target_name': 'skdiff', 30 'type': 'executable', 31 'sources': [ 32 '../tools/skdiff.cpp', 33 '../tools/skdiff.h', 34 '../tools/skdiff_html.cpp', 35 '../tools/skdiff_html.h', 36 '../tools/skdiff_main.cpp', 37 '../tools/skdiff_utils.cpp', 38 '../tools/skdiff_utils.h', 39 ], 40 'dependencies': [ 41 'skia_base_libs.gyp:skia_base_libs', 42 'effects.gyp:effects', 43 'images.gyp:images', 44 ], 45 }, 46 { 47 'target_name': 'skimagediff', 48 'type': 'executable', 49 'sources': [ 50 '../tools/skdiff.cpp', 51 '../tools/skdiff.h', 52 '../tools/skdiff_html.cpp', 53 '../tools/skdiff_html.h', 54 '../tools/skdiff_image.cpp', 55 '../tools/skdiff_utils.cpp', 56 '../tools/skdiff_utils.h', 57 ], 58 'dependencies': [ 59 'skia_base_libs.gyp:skia_base_libs', 60 'effects.gyp:effects', 61 'images.gyp:images', 62 ], 63 }, 64 { 65 'target_name': 'skhello', 66 'type': 'executable', 67 'sources': [ 68 '../tools/skhello.cpp', 69 ], 70 'dependencies': [ 71 'skia_base_libs.gyp:skia_base_libs', 72 'effects.gyp:effects', 73 'images.gyp:images', 74 ], 75 }, 76 { 77 'target_name': 'skimage', 78 'type': 'executable', 79 'sources': [ 80 '../tools/skimage_main.cpp', 81 ], 82 'dependencies': [ 83 'skia_base_libs.gyp:skia_base_libs', 84 'effects.gyp:effects', 85 'images.gyp:images', 86 ], 87 }, 88 { 89 'target_name': 'render_pictures', 90 'type': 'executable', 91 'sources': [ 92 '../tools/render_pictures_main.cpp', 93 ], 94 'include_dirs': [ 95 '../src/pipe/utils/', 96 ], 97 'dependencies': [ 98 'skia_base_libs.gyp:skia_base_libs', 99 'tools.gyp:picture_renderer', 100 'tools.gyp:picture_utils', 101 ], 102 }, 103 { 104 'target_name': 'bench_pictures', 105 'type': 'executable', 106 'sources': [ 107 '../bench/SkBenchLogger.h', 108 '../bench/SkBenchLogger.cpp', 109 '../bench/TimerData.h', 110 '../bench/TimerData.cpp', 111 '../tools/bench_pictures_main.cpp', 112 '../tools/PictureBenchmark.cpp', 113 ], 114 'include_dirs': [ 115 '../bench', 116 ], 117 'dependencies': [ 118 'skia_base_libs.gyp:skia_base_libs', 119 'effects.gyp:effects', 120 'tools.gyp:picture_utils', 121 'tools.gyp:picture_renderer', 122 'bench.gyp:bench_timer', 123 ], 124 }, 125 { 126 'target_name': 'picture_renderer', 127 'type': 'static_library', 128 'sources': [ 129 '../tools/PictureRenderer.h', 130 '../tools/PictureRenderer.cpp', 131 '../tools/CopyTilesRenderer.h', 132 '../tools/CopyTilesRenderer.cpp', 133 '../src/pipe/utils/SamplePipeControllers.h', 134 '../src/pipe/utils/SamplePipeControllers.cpp', 135 ], 136 'include_dirs': [ 137 '../src/core/', 138 '../src/pipe/utils/', 139 '../src/utils/', 140 ], 141 'dependencies': [ 142 'skia_base_libs.gyp:skia_base_libs', 143 'effects.gyp:effects', 144 'images.gyp:images', 145 'tools.gyp:picture_utils', 146 ], 147 'export_dependent_settings': [ 148 'images.gyp:images', 149 ], 150 }, 151 { 152 'target_name': 'render_pdfs', 153 'type': 'executable', 154 'sources': [ 155 '../tools/render_pdfs_main.cpp', 156 '../tools/PdfRenderer.cpp', 157 '../tools/PdfRenderer.h', 158 ], 159 'include_dirs': [ 160 '../src/pipe/utils/', 161 '../src/utils/', 162 ], 163 'dependencies': [ 164 'core.gyp:core', 165 'effects.gyp:effects', 166 'images.gyp:images', 167 'pdf.gyp:pdf', 168 'ports.gyp:ports', 169 'tools.gyp:picture_utils', 170 ], 171 }, 172 { 173 'target_name': 'picture_utils', 174 'type': 'static_library', 175 'sources': [ 176 '../tools/picture_utils.cpp', 177 '../tools/picture_utils.h', 178 ], 179 'dependencies': [ 180 'skia_base_libs.gyp:skia_base_libs', 181 ], 182 }, 183 { 184 'target_name': 'pinspect', 185 'type': 'executable', 186 'sources': [ 187 '../tools/pinspect.cpp', 188 ], 189 'dependencies': [ 190 'skia_base_libs.gyp:skia_base_libs', 191 'effects.gyp:effects', 192 'images.gyp:images', 193 ], 194 }, 195 { 196 'target_name': 'filter', 197 'type': 'executable', 198 'include_dirs' : [ 199 '../src/core', 200 '../debugger', 201 ], 202 'sources': [ 203 '../tools/filtermain.cpp', 204 '../tools/path_utils.h', 205 '../tools/path_utils.cpp', 206 '../debugger/SkDrawCommand.h', 207 '../debugger/SkDrawCommand.cpp', 208 '../debugger/SkDebugCanvas.h', 209 '../debugger/SkDebugCanvas.cpp', 210 '../debugger/SkObjectParser.h', 211 '../debugger/SkObjectParser.cpp', 212 ], 213 'dependencies': [ 214 'skia_base_libs.gyp:skia_base_libs', 215 'effects.gyp:effects', 216 'images.gyp:images', 217 'tools.gyp:picture_utils', 218 ], 219 }, 220 ], 221} 222 223# Local Variables: 224# tab-width:2 225# indent-tabs-mode:nil 226# End: 227# vim: set expandtab tabstop=2 shiftwidth=2: 228