| OLD | NEW |
| 1 # GYP file to build various tools. | 1 # GYP file to build various tools. |
| 2 # | 2 # |
| 3 # To build on Linux: | 3 # To build on Linux: |
| 4 # ./gyp_skia tools.gyp && make tools | 4 # ./gyp_skia tools.gyp && make tools |
| 5 # | 5 # |
| 6 { | 6 { |
| 7 'includes': [ | 7 'includes': [ |
| 8 'apptype_console.gypi', | 8 'apptype_console.gypi', |
| 9 ], | 9 ], |
| 10 'targets': [ | 10 'targets': [ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 'sources': [ | 30 'sources': [ |
| 31 '../tools/skdiff.cpp', | 31 '../tools/skdiff.cpp', |
| 32 '../tools/skdiff.h', | 32 '../tools/skdiff.h', |
| 33 '../tools/skdiff_html.cpp', | 33 '../tools/skdiff_html.cpp', |
| 34 '../tools/skdiff_html.h', | 34 '../tools/skdiff_html.h', |
| 35 '../tools/skdiff_main.cpp', | 35 '../tools/skdiff_main.cpp', |
| 36 '../tools/skdiff_utils.cpp', | 36 '../tools/skdiff_utils.cpp', |
| 37 '../tools/skdiff_utils.h', | 37 '../tools/skdiff_utils.h', |
| 38 ], | 38 ], |
| 39 'dependencies': [ | 39 'dependencies': [ |
| 40 'skia_base_libs.gyp:skia_base_libs', | 40 'skia_lib.gyp:skia_lib', |
| 41 'effects.gyp:effects', | |
| 42 'images.gyp:images', | |
| 43 ], | 41 ], |
| 44 }, | 42 }, |
| 45 { | 43 { |
| 46 'target_name': 'skimagediff', | 44 'target_name': 'skimagediff', |
| 47 'type': 'executable', | 45 'type': 'executable', |
| 48 'sources': [ | 46 'sources': [ |
| 49 '../tools/skdiff.cpp', | 47 '../tools/skdiff.cpp', |
| 50 '../tools/skdiff.h', | 48 '../tools/skdiff.h', |
| 51 '../tools/skdiff_html.cpp', | 49 '../tools/skdiff_html.cpp', |
| 52 '../tools/skdiff_html.h', | 50 '../tools/skdiff_html.h', |
| 53 '../tools/skdiff_image.cpp', | 51 '../tools/skdiff_image.cpp', |
| 54 '../tools/skdiff_utils.cpp', | 52 '../tools/skdiff_utils.cpp', |
| 55 '../tools/skdiff_utils.h', | 53 '../tools/skdiff_utils.h', |
| 56 ], | 54 ], |
| 57 'dependencies': [ | 55 'dependencies': [ |
| 58 'skia_base_libs.gyp:skia_base_libs', | 56 'skia_lib.gyp:skia_lib', |
| 59 'effects.gyp:effects', | |
| 60 'images.gyp:images', | |
| 61 ], | 57 ], |
| 62 }, | 58 }, |
| 63 { | 59 { |
| 64 'target_name': 'skhello', | 60 'target_name': 'skhello', |
| 65 'type': 'executable', | 61 'type': 'executable', |
| 66 'sources': [ | 62 'sources': [ |
| 67 '../tools/skhello.cpp', | 63 '../tools/skhello.cpp', |
| 68 '../src/image/SkImage_Codec.cpp', | 64 '../src/image/SkImage_Codec.cpp', |
| 69 ], | 65 ], |
| 70 'dependencies': [ | 66 'dependencies': [ |
| 71 'skia_base_libs.gyp:skia_base_libs', | 67 'skia_lib.gyp:skia_lib', |
| 72 'effects.gyp:effects', | |
| 73 'flags.gyp:flags', | 68 'flags.gyp:flags', |
| 74 'images.gyp:images', | |
| 75 ], | 69 ], |
| 76 }, | 70 }, |
| 77 { | 71 { |
| 78 'target_name': 'skimage', | 72 'target_name': 'skimage', |
| 79 'type': 'executable', | 73 'type': 'executable', |
| 80 'sources': [ | 74 'sources': [ |
| 81 '../tools/skimage_main.cpp', | 75 '../tools/skimage_main.cpp', |
| 82 ], | 76 ], |
| 83 'include_dirs': [ | 77 'include_dirs': [ |
| 84 # For SkBitmapHasher.h | 78 # For SkBitmapHasher.h |
| 85 '../src/utils/', | 79 '../src/utils/', |
| 86 ], | 80 ], |
| 87 'dependencies': [ | 81 'dependencies': [ |
| 88 'skia_base_libs.gyp:skia_base_libs', | 82 'skia_lib.gyp:skia_lib', |
| 89 'effects.gyp:effects', | |
| 90 'flags.gyp:flags', | 83 'flags.gyp:flags', |
| 91 'gm.gyp:gm_expectations', | 84 'gm.gyp:gm_expectations', |
| 92 'images.gyp:images', | |
| 93 'jsoncpp.gyp:jsoncpp', | 85 'jsoncpp.gyp:jsoncpp', |
| 94 'utils.gyp:utils', | 86 'utils.gyp:utils', |
| 95 ], | 87 ], |
| 96 }, | 88 }, |
| 97 { | 89 { |
| 98 'target_name': 'lua_pictures', | 90 'target_name': 'lua_pictures', |
| 99 'type': 'executable', | 91 'type': 'executable', |
| 100 'sources': [ | 92 'sources': [ |
| 101 '../tools/lua/lua_pictures.cpp', | 93 '../tools/lua/lua_pictures.cpp', |
| 102 '../src/utils/SkLuaCanvas.cpp', | 94 '../src/utils/SkLuaCanvas.cpp', |
| 103 '../src/utils/SkLua.cpp', | 95 '../src/utils/SkLua.cpp', |
| 104 ], | 96 ], |
| 105 'dependencies': [ | 97 'dependencies': [ |
| 106 'skia_base_libs.gyp:skia_base_libs', | 98 'skia_lib.gyp:skia_lib', |
| 107 'effects.gyp:effects', | 99 'effects.gyp:effects', |
| 108 'utils.gyp:utils', | 100 'utils.gyp:utils', |
| 109 'images.gyp:images', | 101 'images.gyp:images', |
| 110 'tools.gyp:picture_renderer', | 102 'tools.gyp:picture_renderer', |
| 111 'tools.gyp:picture_utils', | 103 'tools.gyp:picture_utils', |
| 112 'ports.gyp:ports', | 104 'ports.gyp:ports', |
| 113 'flags.gyp:flags', | 105 'flags.gyp:flags', |
| 114 'lua.gyp:lua', | 106 'lua.gyp:lua', |
| 115 ], | 107 ], |
| 116 }, | 108 }, |
| 117 { | 109 { |
| 118 'target_name': 'render_pictures', | 110 'target_name': 'render_pictures', |
| 119 'type': 'executable', | 111 'type': 'executable', |
| 120 'sources': [ | 112 'sources': [ |
| 121 '../tools/render_pictures_main.cpp', | 113 '../tools/render_pictures_main.cpp', |
| 122 ], | 114 ], |
| 123 'include_dirs': [ | 115 'include_dirs': [ |
| 124 '../src/pipe/utils/', | 116 '../src/pipe/utils/', |
| 125 ], | 117 ], |
| 126 'dependencies': [ | 118 'dependencies': [ |
| 127 'skia_base_libs.gyp:skia_base_libs', | 119 'skia_lib.gyp:skia_lib', |
| 128 'tools.gyp:picture_renderer', | 120 'tools.gyp:picture_renderer', |
| 129 'tools.gyp:picture_utils', | 121 'tools.gyp:picture_utils', |
| 130 'ports.gyp:ports', | |
| 131 'flags.gyp:flags', | 122 'flags.gyp:flags', |
| 132 ], | 123 ], |
| 133 }, | 124 }, |
| 134 { | 125 { |
| 135 'target_name': 'bench_pictures', | 126 'target_name': 'bench_pictures', |
| 136 'type': 'executable', | 127 'type': 'executable', |
| 137 'sources': [ | 128 'sources': [ |
| 138 '../bench/SkBenchLogger.h', | 129 '../bench/SkBenchLogger.h', |
| 139 '../bench/SkBenchLogger.cpp', | 130 '../bench/SkBenchLogger.cpp', |
| 140 '../bench/TimerData.h', | 131 '../bench/TimerData.h', |
| 141 '../bench/TimerData.cpp', | 132 '../bench/TimerData.cpp', |
| 142 '../tools/bench_pictures_main.cpp', | 133 '../tools/bench_pictures_main.cpp', |
| 143 '../tools/PictureBenchmark.cpp', | 134 '../tools/PictureBenchmark.cpp', |
| 144 ], | 135 ], |
| 145 'include_dirs': [ | 136 'include_dirs': [ |
| 146 '../bench', | 137 '../bench', |
| 147 '../src/lazy/', | 138 '../src/lazy/', |
| 148 ], | 139 ], |
| 149 'dependencies': [ | 140 'dependencies': [ |
| 150 'skia_base_libs.gyp:skia_base_libs', | 141 'skia_lib.gyp:skia_lib', |
| 151 'effects.gyp:effects', | |
| 152 'tools.gyp:picture_utils', | 142 'tools.gyp:picture_utils', |
| 153 'tools.gyp:picture_renderer', | 143 'tools.gyp:picture_renderer', |
| 154 'bench.gyp:bench_timer', | 144 'bench.gyp:bench_timer', |
| 155 'ports.gyp:ports', | |
| 156 'flags.gyp:flags', | 145 'flags.gyp:flags', |
| 157 ], | 146 ], |
| 158 }, | 147 }, |
| 159 { | 148 { |
| 160 'target_name': 'picture_renderer', | 149 'target_name': 'picture_renderer', |
| 161 'type': 'static_library', | 150 'type': 'static_library', |
| 162 'sources': [ | 151 'sources': [ |
| 163 '../tools/PictureRenderer.h', | 152 '../tools/PictureRenderer.h', |
| 164 '../tools/PictureRenderer.cpp', | 153 '../tools/PictureRenderer.cpp', |
| 165 '../tools/PictureRenderingFlags.h', | 154 '../tools/PictureRenderingFlags.h', |
| 166 '../tools/PictureRenderingFlags.cpp', | 155 '../tools/PictureRenderingFlags.cpp', |
| 167 '../tools/CopyTilesRenderer.h', | 156 '../tools/CopyTilesRenderer.h', |
| 168 '../tools/CopyTilesRenderer.cpp', | 157 '../tools/CopyTilesRenderer.cpp', |
| 169 '../src/pipe/utils/SamplePipeControllers.h', | 158 '../src/pipe/utils/SamplePipeControllers.h', |
| 170 '../src/pipe/utils/SamplePipeControllers.cpp', | 159 '../src/pipe/utils/SamplePipeControllers.cpp', |
| 171 ], | 160 ], |
| 172 'include_dirs': [ | 161 'include_dirs': [ |
| 173 '../src/core/', | 162 '../src/core/', |
| 174 '../src/pipe/utils/', | 163 '../src/pipe/utils/', |
| 175 '../src/utils/', | 164 '../src/utils/', |
| 176 ], | 165 ], |
| 177 'dependencies': [ | 166 'dependencies': [ |
| 178 'skia_base_libs.gyp:skia_base_libs', | 167 'skia_lib.gyp:skia_lib', |
| 179 'effects.gyp:effects', | |
| 180 'images.gyp:images', | |
| 181 'tools.gyp:picture_utils', | 168 'tools.gyp:picture_utils', |
| 182 'flags.gyp:flags', | 169 'flags.gyp:flags', |
| 183 ], | 170 ], |
| 184 'conditions': [ | 171 'conditions': [ |
| 185 ['skia_gpu == 1', | 172 ['skia_gpu == 1', |
| 186 { | 173 { |
| 187 'include_dirs' : [ | 174 'include_dirs' : [ |
| 188 '../src/gpu', | 175 '../src/gpu', |
| 189 ], | 176 ], |
| 190 }, | 177 }, |
| 191 ], | 178 ], |
| 192 ], | 179 ], |
| 193 'export_dependent_settings': [ | |
| 194 'images.gyp:images', | |
| 195 ], | |
| 196 }, | 180 }, |
| 197 { | 181 { |
| 198 'target_name': 'render_pdfs', | 182 'target_name': 'render_pdfs', |
| 199 'type': 'executable', | 183 'type': 'executable', |
| 200 'sources': [ | 184 'sources': [ |
| 201 '../tools/render_pdfs_main.cpp', | 185 '../tools/render_pdfs_main.cpp', |
| 202 '../tools/PdfRenderer.cpp', | 186 '../tools/PdfRenderer.cpp', |
| 203 '../tools/PdfRenderer.h', | 187 '../tools/PdfRenderer.h', |
| 204 ], | 188 ], |
| 205 'include_dirs': [ | 189 'include_dirs': [ |
| 206 '../src/pipe/utils/', | 190 '../src/pipe/utils/', |
| 207 '../src/utils/', | 191 '../src/utils/', |
| 208 ], | 192 ], |
| 209 'dependencies': [ | 193 'dependencies': [ |
| 210 'core.gyp:core', | 194 'skia_lib.gyp:skia_lib', |
| 211 'effects.gyp:effects', | |
| 212 'images.gyp:images', | |
| 213 'pdf.gyp:pdf', | 195 'pdf.gyp:pdf', |
| 214 'ports.gyp:ports', | |
| 215 'tools.gyp:picture_utils', | 196 'tools.gyp:picture_utils', |
| 216 ], | 197 ], |
| 217 'conditions': [ | 198 'conditions': [ |
| 218 ['skia_win_debuggers_path and skia_os == "win"', | 199 ['skia_win_debuggers_path and skia_os == "win"', |
| 219 { | 200 { |
| 220 'dependencies': [ | 201 'dependencies': [ |
| 221 'tools.gyp:win_dbghelp', | 202 'tools.gyp:win_dbghelp', |
| 222 ], | 203 ], |
| 223 }, | 204 }, |
| 224 ], | 205 ], |
| (...skipping 26 matching lines...) Expand all Loading... |
| 251 ], | 232 ], |
| 252 }, | 233 }, |
| 253 { | 234 { |
| 254 'target_name': 'picture_utils', | 235 'target_name': 'picture_utils', |
| 255 'type': 'static_library', | 236 'type': 'static_library', |
| 256 'sources': [ | 237 'sources': [ |
| 257 '../tools/picture_utils.cpp', | 238 '../tools/picture_utils.cpp', |
| 258 '../tools/picture_utils.h', | 239 '../tools/picture_utils.h', |
| 259 ], | 240 ], |
| 260 'dependencies': [ | 241 'dependencies': [ |
| 261 'skia_base_libs.gyp:skia_base_libs', | 242 'skia_lib.gyp:skia_lib', |
| 262 ], | 243 ], |
| 263 'direct_dependent_settings': { | 244 'direct_dependent_settings': { |
| 264 'include_dirs': [ | 245 'include_dirs': [ |
| 265 '../tools/', | 246 '../tools/', |
| 266 ], | 247 ], |
| 267 }, | 248 }, |
| 268 }, | 249 }, |
| 269 { | 250 { |
| 270 'target_name': 'pinspect', | 251 'target_name': 'pinspect', |
| 271 'type': 'executable', | 252 'type': 'executable', |
| 272 'sources': [ | 253 'sources': [ |
| 273 '../tools/pinspect.cpp', | 254 '../tools/pinspect.cpp', |
| 274 ], | 255 ], |
| 275 'dependencies': [ | 256 'dependencies': [ |
| 276 'skia_base_libs.gyp:skia_base_libs', | 257 'skia_lib.gyp:skia_lib', |
| 277 'effects.gyp:effects', | |
| 278 'images.gyp:images', | |
| 279 ], | 258 ], |
| 280 }, | 259 }, |
| 281 { | 260 { |
| 282 'target_name': 'filter', | 261 'target_name': 'filter', |
| 283 'type': 'executable', | 262 'type': 'executable', |
| 284 'include_dirs' : [ | 263 'include_dirs' : [ |
| 285 '../src/core', | 264 '../src/core', |
| 286 '../debugger', | 265 '../debugger', |
| 287 ], | 266 ], |
| 288 'sources': [ | 267 'sources': [ |
| 289 '../tools/filtermain.cpp', | 268 '../tools/filtermain.cpp', |
| 290 '../tools/path_utils.h', | 269 '../tools/path_utils.h', |
| 291 '../tools/path_utils.cpp', | 270 '../tools/path_utils.cpp', |
| 292 '../debugger/SkDrawCommand.h', | 271 '../debugger/SkDrawCommand.h', |
| 293 '../debugger/SkDrawCommand.cpp', | 272 '../debugger/SkDrawCommand.cpp', |
| 294 '../debugger/SkDebugCanvas.h', | 273 '../debugger/SkDebugCanvas.h', |
| 295 '../debugger/SkDebugCanvas.cpp', | 274 '../debugger/SkDebugCanvas.cpp', |
| 296 '../debugger/SkObjectParser.h', | 275 '../debugger/SkObjectParser.h', |
| 297 '../debugger/SkObjectParser.cpp', | 276 '../debugger/SkObjectParser.cpp', |
| 298 ], | 277 ], |
| 299 'dependencies': [ | 278 'dependencies': [ |
| 300 'skia_base_libs.gyp:skia_base_libs', | 279 'skia_lib.gyp:skia_lib', |
| 301 'effects.gyp:effects', | |
| 302 'images.gyp:images', | |
| 303 'tools.gyp:picture_utils', | 280 'tools.gyp:picture_utils', |
| 304 ], | 281 ], |
| 305 }, | 282 }, |
| 306 ], | 283 ], |
| 307 'conditions': [ | 284 'conditions': [ |
| 308 ['skia_win_debuggers_path and skia_os == "win"', | 285 ['skia_win_debuggers_path and skia_os == "win"', |
| 309 { | 286 { |
| 310 'targets': [ | 287 'targets': [ |
| 311 { | 288 { |
| 312 'target_name': 'win_dbghelp', | 289 'target_name': 'win_dbghelp', |
| (...skipping 23 matching lines...) Expand all Loading... |
| 336 }, | 313 }, |
| 337 ], | 314 ], |
| 338 ], | 315 ], |
| 339 } | 316 } |
| 340 | 317 |
| 341 # Local Variables: | 318 # Local Variables: |
| 342 # tab-width:2 | 319 # tab-width:2 |
| 343 # indent-tabs-mode:nil | 320 # indent-tabs-mode:nil |
| 344 # End: | 321 # End: |
| 345 # vim: set expandtab tabstop=2 shiftwidth=2: | 322 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |