| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 'conditions': [ | 134 'conditions': [ |
| 135 [ 'skia_os == "nacl"', { | 135 [ 'skia_os == "nacl"', { |
| 136 'sources': [ | 136 'sources': [ |
| 137 '../platform_tools/nacl/src/nacl_hello.cpp', | 137 '../platform_tools/nacl/src/nacl_hello.cpp', |
| 138 ], | 138 ], |
| 139 }, { | 139 }, { |
| 140 'sources': [ | 140 'sources': [ |
| 141 '../tools/skhello.cpp', | 141 '../tools/skhello.cpp', |
| 142 ], | 142 ], |
| 143 'dependencies': [ | 143 'dependencies': [ |
| 144 'flags.gyp:flags', |
| 144 'pdf.gyp:pdf', | 145 'pdf.gyp:pdf', |
| 145 'flags.gyp:flags', | |
| 146 ], | 146 ], |
| 147 }], | 147 }], |
| 148 ], | 148 ], |
| 149 }, | 149 }, |
| 150 { | 150 { |
| 151 'target_name': 'skimage', | 151 'target_name': 'skimage', |
| 152 'type': 'executable', | 152 'type': 'executable', |
| 153 'sources': [ | 153 'sources': [ |
| 154 '../tools/skimage_main.cpp', | 154 '../tools/skimage_main.cpp', |
| 155 ], | 155 ], |
| 156 'include_dirs': [ | 156 'include_dirs': [ |
| 157 # For SkBitmapHasher.h | 157 # For SkBitmapHasher.h |
| 158 '../src/utils/', | 158 '../src/utils/', |
| 159 ], | 159 ], |
| 160 'dependencies': [ | 160 'dependencies': [ |
| 161 'skia_lib.gyp:skia_lib', | |
| 162 'flags.gyp:flags', | 161 'flags.gyp:flags', |
| 163 'gm.gyp:gm_expectations', | 162 'gm.gyp:gm_expectations', |
| 164 'jsoncpp.gyp:jsoncpp', | 163 'jsoncpp.gyp:jsoncpp', |
| 164 'skia_lib.gyp:skia_lib', |
| 165 'utils.gyp:utils', | 165 'utils.gyp:utils', |
| 166 ], | 166 ], |
| 167 }, | 167 }, |
| 168 | 168 |
| 169 { | 169 { |
| 170 'target_name': 'lua_app', | 170 'target_name': 'lua_app', |
| 171 'type': 'executable', | 171 'type': 'executable', |
| 172 'sources': [ | 172 'sources': [ |
| 173 '../tools/lua/lua_app.cpp', | 173 '../tools/lua/lua_app.cpp', |
| 174 '../src/utils/SkLua.cpp', | 174 '../src/utils/SkLua.cpp', |
| 175 ], | 175 ], |
| 176 'dependencies': [ | 176 'dependencies': [ |
| 177 'skia_lib.gyp:skia_lib', | |
| 178 'effects.gyp:effects', | 177 'effects.gyp:effects', |
| 179 'utils.gyp:utils', | |
| 180 'images.gyp:images', | 178 'images.gyp:images', |
| 179 'lua.gyp:lua', |
| 181 'pdf.gyp:pdf', | 180 'pdf.gyp:pdf', |
| 182 'ports.gyp:ports', | 181 'ports.gyp:ports', |
| 183 'lua.gyp:lua', | 182 'skia_lib.gyp:skia_lib', |
| 183 'utils.gyp:utils', |
| 184 ], | 184 ], |
| 185 }, | 185 }, |
| 186 { | 186 { |
| 187 'target_name': 'lua_pictures', | 187 'target_name': 'lua_pictures', |
| 188 'type': 'executable', | 188 'type': 'executable', |
| 189 'sources': [ | 189 'sources': [ |
| 190 '../tools/lua/lua_pictures.cpp', | 190 '../tools/lua/lua_pictures.cpp', |
| 191 '../src/utils/SkLuaCanvas.cpp', | 191 '../src/utils/SkLuaCanvas.cpp', |
| 192 '../src/utils/SkLua.cpp', | 192 '../src/utils/SkLua.cpp', |
| 193 ], | 193 ], |
| 194 'dependencies': [ | 194 'dependencies': [ |
| 195 'skia_lib.gyp:skia_lib', | |
| 196 'effects.gyp:effects', | 195 'effects.gyp:effects', |
| 197 'utils.gyp:utils', | 196 'flags.gyp:flags', |
| 198 'images.gyp:images', | 197 'images.gyp:images', |
| 198 'lua.gyp:lua', |
| 199 'tools.gyp:picture_renderer', | 199 'tools.gyp:picture_renderer', |
| 200 'tools.gyp:picture_utils', | 200 'tools.gyp:picture_utils', |
| 201 'pdf.gyp:pdf', | 201 'pdf.gyp:pdf', |
| 202 'ports.gyp:ports', | 202 'ports.gyp:ports', |
| 203 'flags.gyp:flags', | 203 'skia_lib.gyp:skia_lib', |
| 204 'lua.gyp:lua', | 204 'utils.gyp:utils', |
| 205 ], | 205 ], |
| 206 }, | 206 }, |
| 207 { | 207 { |
| 208 'target_name': 'render_pictures', | 208 'target_name': 'render_pictures', |
| 209 'type': 'executable', | 209 'type': 'executable', |
| 210 'sources': [ | 210 'sources': [ |
| 211 '../tools/render_pictures_main.cpp', | 211 '../tools/render_pictures_main.cpp', |
| 212 ], | 212 ], |
| 213 'include_dirs': [ | 213 'include_dirs': [ |
| 214 '../src/core', | 214 '../src/core', |
| 215 '../src/images', | 215 '../src/images', |
| 216 '../src/lazy', | 216 '../src/lazy', |
| 217 '../src/pipe/utils/', | 217 '../src/pipe/utils/', |
| 218 ], | 218 ], |
| 219 'dependencies': [ | 219 'dependencies': [ |
| 220 'flags.gyp:flags', |
| 220 'skia_lib.gyp:skia_lib', | 221 'skia_lib.gyp:skia_lib', |
| 221 'tools.gyp:picture_renderer', | 222 'tools.gyp:picture_renderer', |
| 222 'tools.gyp:picture_utils', | 223 'tools.gyp:picture_utils', |
| 223 'flags.gyp:flags', | |
| 224 ], | 224 ], |
| 225 }, | 225 }, |
| 226 { | 226 { |
| 227 'target_name': 'bench_pictures', | 227 'target_name': 'bench_pictures', |
| 228 'type': 'executable', | 228 'type': 'executable', |
| 229 'sources': [ | 229 'sources': [ |
| 230 '../bench/SkBenchLogger.h', | 230 '../bench/SkBenchLogger.h', |
| 231 '../bench/SkBenchLogger.cpp', | 231 '../bench/SkBenchLogger.cpp', |
| 232 '../bench/TimerData.h', | 232 '../bench/TimerData.h', |
| 233 '../bench/TimerData.cpp', | 233 '../bench/TimerData.cpp', |
| 234 '../tools/bench_pictures_main.cpp', | 234 '../tools/bench_pictures_main.cpp', |
| 235 '../tools/PictureBenchmark.cpp', | 235 '../tools/PictureBenchmark.cpp', |
| 236 ], | 236 ], |
| 237 'include_dirs': [ | 237 'include_dirs': [ |
| 238 '../src/core/', | 238 '../src/core/', |
| 239 '../bench', | 239 '../bench', |
| 240 '../src/lazy/', | 240 '../src/lazy/', |
| 241 ], | 241 ], |
| 242 'dependencies': [ | 242 'dependencies': [ |
| 243 'bench.gyp:bench_timer', |
| 244 'flags.gyp:flags', |
| 243 'skia_lib.gyp:skia_lib', | 245 'skia_lib.gyp:skia_lib', |
| 244 'tools.gyp:picture_utils', | 246 'tools.gyp:picture_utils', |
| 245 'tools.gyp:picture_renderer', | 247 'tools.gyp:picture_renderer', |
| 246 'bench.gyp:bench_timer', | |
| 247 'flags.gyp:flags', | |
| 248 ], | 248 ], |
| 249 }, | 249 }, |
| 250 { | 250 { |
| 251 'target_name': 'picture_renderer', | 251 'target_name': 'picture_renderer', |
| 252 'type': 'static_library', | 252 'type': 'static_library', |
| 253 'sources': [ | 253 'sources': [ |
| 254 '../tools/LazyDecodeBitmap.cpp', | 254 '../tools/LazyDecodeBitmap.cpp', |
| 255 '../tools/PictureRenderer.h', | 255 '../tools/PictureRenderer.h', |
| 256 '../tools/PictureRenderer.cpp', | 256 '../tools/PictureRenderer.cpp', |
| 257 '../tools/PictureRenderingFlags.h', | 257 '../tools/PictureRenderingFlags.h', |
| 258 '../tools/PictureRenderingFlags.cpp', | 258 '../tools/PictureRenderingFlags.cpp', |
| 259 '../tools/CopyTilesRenderer.h', | 259 '../tools/CopyTilesRenderer.h', |
| 260 '../tools/CopyTilesRenderer.cpp', | 260 '../tools/CopyTilesRenderer.cpp', |
| 261 '../src/pipe/utils/SamplePipeControllers.h', | 261 '../src/pipe/utils/SamplePipeControllers.h', |
| 262 '../src/pipe/utils/SamplePipeControllers.cpp', | 262 '../src/pipe/utils/SamplePipeControllers.cpp', |
| 263 ], | 263 ], |
| 264 'include_dirs': [ | 264 'include_dirs': [ |
| 265 '../src/core', | 265 '../src/core', |
| 266 '../src/images', | 266 '../src/images', |
| 267 '../src/lazy', | 267 '../src/lazy', |
| 268 '../src/pipe/utils/', | 268 '../src/pipe/utils/', |
| 269 '../src/utils/', | 269 '../src/utils/', |
| 270 ], | 270 ], |
| 271 'direct_dependent_settings': { |
| 272 'include_dirs': [ |
| 273 # needed for JSON headers used within PictureRenderer.h |
| 274 '../third_party/externals/jsoncpp-chromium/overrides/include/', |
| 275 '../third_party/externals/jsoncpp/include/', |
| 276 ], |
| 277 }, |
| 271 'dependencies': [ | 278 'dependencies': [ |
| 279 'flags.gyp:flags', |
| 280 'jsoncpp.gyp:jsoncpp', |
| 272 'skia_lib.gyp:skia_lib', | 281 'skia_lib.gyp:skia_lib', |
| 273 'tools.gyp:picture_utils', | 282 'tools.gyp:picture_utils', |
| 274 'flags.gyp:flags', | |
| 275 ], | 283 ], |
| 276 'conditions': [ | 284 'conditions': [ |
| 277 ['skia_gpu == 1', | 285 ['skia_gpu == 1', |
| 278 { | 286 { |
| 279 'include_dirs' : [ | 287 'include_dirs' : [ |
| 280 '../src/gpu', | 288 '../src/gpu', |
| 281 ], | 289 ], |
| 282 }, | 290 }, |
| 283 ], | 291 ], |
| 284 ], | 292 ], |
| 285 }, | 293 }, |
| 286 { | 294 { |
| 287 'target_name': 'render_pdfs', | 295 'target_name': 'render_pdfs', |
| 288 'type': 'executable', | 296 'type': 'executable', |
| 289 'sources': [ | 297 'sources': [ |
| 290 '../tools/render_pdfs_main.cpp', | 298 '../tools/render_pdfs_main.cpp', |
| 291 '../tools/PdfRenderer.cpp', | 299 '../tools/PdfRenderer.cpp', |
| 292 '../tools/PdfRenderer.h', | 300 '../tools/PdfRenderer.h', |
| 293 ], | 301 ], |
| 294 'include_dirs': [ | 302 'include_dirs': [ |
| 295 '../src/pipe/utils/', | 303 '../src/pipe/utils/', |
| 296 '../src/utils/', | 304 '../src/utils/', |
| 297 ], | 305 ], |
| 298 'dependencies': [ | 306 'dependencies': [ |
| 307 'pdf.gyp:pdf', |
| 299 'skia_lib.gyp:skia_lib', | 308 'skia_lib.gyp:skia_lib', |
| 300 'pdf.gyp:pdf', | |
| 301 'tools.gyp:picture_utils', | 309 'tools.gyp:picture_utils', |
| 302 ], | 310 ], |
| 303 'conditions': [ | 311 'conditions': [ |
| 304 ['skia_win_debuggers_path and skia_os == "win"', | 312 ['skia_win_debuggers_path and skia_os == "win"', |
| 305 { | 313 { |
| 306 'dependencies': [ | 314 'dependencies': [ |
| 307 'tools.gyp:win_dbghelp', | 315 'tools.gyp:win_dbghelp', |
| 308 ], | 316 ], |
| 309 }, | 317 }, |
| 310 ], | 318 ], |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 ], | 360 ], |
| 353 }, | 361 }, |
| 354 }, | 362 }, |
| 355 { | 363 { |
| 356 'target_name': 'pinspect', | 364 'target_name': 'pinspect', |
| 357 'type': 'executable', | 365 'type': 'executable', |
| 358 'sources': [ | 366 'sources': [ |
| 359 '../tools/pinspect.cpp', | 367 '../tools/pinspect.cpp', |
| 360 ], | 368 ], |
| 361 'dependencies': [ | 369 'dependencies': [ |
| 370 'flags.gyp:flags', |
| 362 'skia_lib.gyp:skia_lib', | 371 'skia_lib.gyp:skia_lib', |
| 363 'tools.gyp:picture_renderer', | 372 'tools.gyp:picture_renderer', |
| 364 'flags.gyp:flags', | |
| 365 ], | 373 ], |
| 366 }, | 374 }, |
| 367 { | 375 { |
| 368 'target_name': 'bbh_shootout', | 376 'target_name': 'bbh_shootout', |
| 369 'type': 'executable', | 377 'type': 'executable', |
| 370 'include_dirs': [ | 378 'include_dirs': [ |
| 371 '../bench', | 379 '../bench', |
| 372 '../tools/' | 380 '../tools/' |
| 373 ], | 381 ], |
| 374 'sources': [ | 382 'sources': [ |
| 375 '../tools/bbh_shootout.cpp', | 383 '../tools/bbh_shootout.cpp', |
| 376 | 384 |
| 377 # Bench code: | 385 # Bench code: |
| 378 '../bench/TimerData.h', | 386 '../bench/TimerData.h', |
| 379 '../bench/TimerData.cpp', | 387 '../bench/TimerData.cpp', |
| 380 ], | 388 ], |
| 381 'dependencies': [ | 389 'dependencies': [ |
| 390 'bench.gyp:bench_timer', |
| 391 'flags.gyp:flags', |
| 382 'skia_lib.gyp:skia_lib', | 392 'skia_lib.gyp:skia_lib', |
| 383 'bench.gyp:bench_timer', | 393 'tools.gyp:picture_renderer', |
| 384 'tools.gyp:picture_utils', | 394 'tools.gyp:picture_utils', |
| 385 'tools.gyp:picture_renderer', | |
| 386 'flags.gyp:flags', | |
| 387 ], | 395 ], |
| 388 }, | 396 }, |
| 389 { | 397 { |
| 390 'target_name': 'filter', | 398 'target_name': 'filter', |
| 391 'type': 'executable', | 399 'type': 'executable', |
| 392 'include_dirs' : [ | 400 'include_dirs' : [ |
| 393 '../src/core', | 401 '../src/core', |
| 394 '../src/utils/debugger', | 402 '../src/utils/debugger', |
| 395 ], | 403 ], |
| 396 'sources': [ | 404 'sources': [ |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 'type': 'executable', | 488 'type': 'executable', |
| 481 'sources': [ | 489 'sources': [ |
| 482 '../tools/win_lcid.cpp', | 490 '../tools/win_lcid.cpp', |
| 483 ], | 491 ], |
| 484 }, | 492 }, |
| 485 ], | 493 ], |
| 486 }, | 494 }, |
| 487 ], | 495 ], |
| 488 ], | 496 ], |
| 489 } | 497 } |
| OLD | NEW |