| 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 25 matching lines...) Expand all Loading... |
| 36 'conditions': [ | 36 'conditions': [ |
| 37 ['skia_shared_lib', | 37 ['skia_shared_lib', |
| 38 { | 38 { |
| 39 'dependencies': [ | 39 'dependencies': [ |
| 40 'sklua', # This can only be built if skia is built as a shared lib
rary | 40 'sklua', # This can only be built if skia is built as a shared lib
rary |
| 41 ], | 41 ], |
| 42 }, | 42 }, |
| 43 ], | 43 ], |
| 44 ], | 44 ], |
| 45 }, | 45 }, |
| 46 { # This would go in gm.gyp, but it's also used by skimage below. | |
| 47 'target_name': 'gm_expectations', | |
| 48 'type': 'static_library', | |
| 49 'include_dirs' : [ '../src/utils/' ], | |
| 50 'sources': [ | |
| 51 '../gm/gm_expectations.cpp', | |
| 52 '../tools/sk_tool_utils.cpp', | |
| 53 ], | |
| 54 'dependencies': [ | |
| 55 'jsoncpp.gyp:jsoncpp', | |
| 56 'skia_lib.gyp:skia_lib', | |
| 57 ], | |
| 58 'direct_dependent_settings': { | |
| 59 'include_dirs': [ '../gm/' ], | |
| 60 }, | |
| 61 }, | |
| 62 { | 46 { |
| 63 'target_name': 'crash_handler', | |
| 64 'type': 'static_library', | |
| 65 'sources': [ '../tools/CrashHandler.cpp' ], | |
| 66 'dependencies': [ 'skia_lib.gyp:skia_lib' ], | |
| 67 'direct_dependent_settings': { | |
| 68 'include_dirs': [ '../tools' ], | |
| 69 }, | |
| 70 'all_dependent_settings': { | |
| 71 'msvs_settings': { | |
| 72 'VCLinkerTool': { | |
| 73 'AdditionalDependencies': [ 'Dbghelp.lib' ], | |
| 74 } | |
| 75 }, | |
| 76 } | |
| 77 }, | |
| 78 { | |
| 79 'target_name': 'resources', | |
| 80 'type': 'static_library', | |
| 81 'sources': [ '../tools/Resources.cpp' ], | |
| 82 'dependencies': [ | |
| 83 'flags.gyp:flags', | |
| 84 'skia_lib.gyp:skia_lib', | |
| 85 ], | |
| 86 'direct_dependent_settings': { | |
| 87 'include_dirs': [ '../tools/', ], | |
| 88 }, | |
| 89 }, | |
| 90 { | |
| 91 'target_name' : 'timer', | |
| 92 'type': 'static_library', | |
| 93 'sources': [ | |
| 94 '../tools/timer/Timer.cpp', | |
| 95 '../tools/timer/TimerData.cpp', | |
| 96 ], | |
| 97 'include_dirs': [ | |
| 98 '../src/core', | |
| 99 '../src/gpu', | |
| 100 ], | |
| 101 'direct_dependent_settings': { | |
| 102 'include_dirs': ['../tools/timer'], | |
| 103 }, | |
| 104 'dependencies': [ | |
| 105 'skia_lib.gyp:skia_lib', | |
| 106 'jsoncpp.gyp:jsoncpp', | |
| 107 ], | |
| 108 'conditions': [ | |
| 109 ['skia_gpu == 1', { | |
| 110 'sources': [ '../tools/timer/GpuTimer.cpp' ], | |
| 111 }], | |
| 112 [ 'skia_os in ["mac", "ios"]', { | |
| 113 'sources': [ '../tools/timer/SysTimer_mach.cpp' ], | |
| 114 }], | |
| 115 [ 'skia_os == "win"', { | |
| 116 'sources': [ '../tools/timer/SysTimer_windows.cpp' ], | |
| 117 }], | |
| 118 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chr
omeos"]', { | |
| 119 'sources': [ '../tools/timer/SysTimer_posix.cpp' ], | |
| 120 }], | |
| 121 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { | |
| 122 'link_settings': { 'libraries': [ '-lrt' ] }, | |
| 123 }], | |
| 124 ], | |
| 125 }, | |
| 126 { | |
| 127 'target_name': 'skdiff', | 47 'target_name': 'skdiff', |
| 128 'type': 'executable', | 48 'type': 'executable', |
| 129 'sources': [ | 49 'sources': [ |
| 130 '../tools/skdiff.cpp', | 50 '../tools/skdiff.cpp', |
| 131 '../tools/skdiff.h', | 51 '../tools/skdiff.h', |
| 132 '../tools/skdiff_html.cpp', | 52 '../tools/skdiff_html.cpp', |
| 133 '../tools/skdiff_html.h', | 53 '../tools/skdiff_html.h', |
| 134 '../tools/skdiff_main.cpp', | 54 '../tools/skdiff_main.cpp', |
| 135 '../tools/skdiff_utils.cpp', | 55 '../tools/skdiff_utils.cpp', |
| 136 '../tools/skdiff_utils.h', | 56 '../tools/skdiff_utils.h', |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 'target_name': 'skimage', | 171 'target_name': 'skimage', |
| 252 'type': 'executable', | 172 'type': 'executable', |
| 253 'sources': [ | 173 'sources': [ |
| 254 '../tools/skimage_main.cpp', | 174 '../tools/skimage_main.cpp', |
| 255 ], | 175 ], |
| 256 'include_dirs': [ | 176 'include_dirs': [ |
| 257 # For SkBitmapHasher.h | 177 # For SkBitmapHasher.h |
| 258 '../src/utils/', | 178 '../src/utils/', |
| 259 ], | 179 ], |
| 260 'dependencies': [ | 180 'dependencies': [ |
| 261 'gm_expectations', | |
| 262 'flags.gyp:flags', | 181 'flags.gyp:flags', |
| 182 'gm.gyp:gm_expectations', |
| 263 'jsoncpp.gyp:jsoncpp', | 183 'jsoncpp.gyp:jsoncpp', |
| 264 'skia_lib.gyp:skia_lib', | 184 'skia_lib.gyp:skia_lib', |
| 265 ], | 185 ], |
| 266 }, | 186 }, |
| 267 { | 187 { |
| 268 'target_name': 'skpinfo', | 188 'target_name': 'skpinfo', |
| 269 'type': 'executable', | 189 'type': 'executable', |
| 270 'sources': [ | 190 'sources': [ |
| 271 '../tools/skpinfo.cpp', | 191 '../tools/skpinfo.cpp', |
| 272 ], | 192 ], |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 '../tools/PictureBenchmark.cpp', | 292 '../tools/PictureBenchmark.cpp', |
| 373 '../tools/PictureResultsWriter.h', | 293 '../tools/PictureResultsWriter.h', |
| 374 '../tools/bench_pictures_main.cpp', | 294 '../tools/bench_pictures_main.cpp', |
| 375 ], | 295 ], |
| 376 'include_dirs': [ | 296 'include_dirs': [ |
| 377 '../src/core/', | 297 '../src/core/', |
| 378 '../bench', | 298 '../bench', |
| 379 '../src/lazy/', | 299 '../src/lazy/', |
| 380 ], | 300 ], |
| 381 'dependencies': [ | 301 'dependencies': [ |
| 382 'timer', | 302 'bench.gyp:bench_timer', |
| 383 'crash_handler', | 303 'crash_handler.gyp:CrashHandler', |
| 384 'flags.gyp:flags', | 304 'flags.gyp:flags', |
| 385 'jsoncpp.gyp:jsoncpp', | 305 'jsoncpp.gyp:jsoncpp', |
| 386 'skia_lib.gyp:skia_lib', | 306 'skia_lib.gyp:skia_lib', |
| 387 'tools.gyp:picture_renderer', | 307 'tools.gyp:picture_renderer', |
| 388 'tools.gyp:picture_utils', | 308 'tools.gyp:picture_utils', |
| 309 'tools.gyp:timer_data', |
| 389 ], | 310 ], |
| 390 }, | 311 }, |
| 391 { | 312 { |
| 392 'target_name': 'bench_record', | 313 'target_name': 'bench_record', |
| 393 'type': 'executable', | 314 'type': 'executable', |
| 394 'sources': [ | 315 'sources': [ |
| 395 '../tools/bench_record.cpp', | 316 '../tools/bench_record.cpp', |
| 396 '../tools/LazyDecodeBitmap.cpp', | 317 '../tools/LazyDecodeBitmap.cpp', |
| 397 ], | 318 ], |
| 398 'include_dirs': [ | 319 'include_dirs': [ |
| 399 '../src/core/', | 320 '../src/core/', |
| 400 '../src/images', | 321 '../src/images', |
| 401 '../src/lazy', | 322 '../src/lazy', |
| 402 ], | 323 ], |
| 403 'dependencies': [ | 324 'dependencies': [ |
| 404 'timer', | 325 'bench.gyp:bench_timer', |
| 405 'flags.gyp:flags', | 326 'flags.gyp:flags', |
| 406 'skia_lib.gyp:skia_lib', | 327 'skia_lib.gyp:skia_lib', |
| 407 ], | 328 ], |
| 408 }, | 329 }, |
| 409 { | 330 { |
| 410 'target_name': 'bench_playback', | 331 'target_name': 'bench_playback', |
| 411 'type': 'executable', | 332 'type': 'executable', |
| 412 'sources': [ | 333 'sources': [ |
| 413 '../tools/bench_playback.cpp', | 334 '../tools/bench_playback.cpp', |
| 414 ], | 335 ], |
| 415 'include_dirs': [ | 336 'include_dirs': [ |
| 416 '../src/core/', | 337 '../src/core/', |
| 417 '../src/images', | 338 '../src/images', |
| 418 ], | 339 ], |
| 419 'dependencies': [ | 340 'dependencies': [ |
| 420 'timer', | 341 'bench.gyp:bench_timer', |
| 421 'flags.gyp:flags', | 342 'flags.gyp:flags', |
| 422 'skia_lib.gyp:skia_lib', | 343 'skia_lib.gyp:skia_lib', |
| 423 ], | 344 ], |
| 424 }, | 345 }, |
| 425 { | 346 { |
| 426 'target_name': 'dump_record', | 347 'target_name': 'dump_record', |
| 427 'type': 'executable', | 348 'type': 'executable', |
| 428 'sources': [ | 349 'sources': [ |
| 429 '../tools/dump_record.cpp', | 350 '../tools/dump_record.cpp', |
| 430 '../tools/DumpRecord.cpp', | 351 '../tools/DumpRecord.cpp', |
| 431 '../tools/LazyDecodeBitmap.cpp', | 352 '../tools/LazyDecodeBitmap.cpp', |
| 432 ], | 353 ], |
| 433 'include_dirs': [ | 354 'include_dirs': [ |
| 434 '../src/core/', | 355 '../src/core/', |
| 435 '../src/images', | 356 '../src/images', |
| 436 '../src/lazy', | 357 '../src/lazy', |
| 437 ], | 358 ], |
| 438 'dependencies': [ | 359 'dependencies': [ |
| 439 'timer', | 360 'bench.gyp:bench_timer', |
| 440 'flags.gyp:flags', | 361 'flags.gyp:flags', |
| 441 'skia_lib.gyp:skia_lib', | 362 'skia_lib.gyp:skia_lib', |
| 442 ], | 363 ], |
| 443 }, | 364 }, |
| 444 { | 365 { |
| 445 'target_name': 'picture_renderer', | 366 'target_name': 'picture_renderer', |
| 446 'type': 'static_library', | 367 'type': 'static_library', |
| 447 'sources': [ | 368 'sources': [ |
| 448 '../tools/image_expectations.h', | 369 '../tools/image_expectations.h', |
| 449 '../tools/image_expectations.cpp', | 370 '../tools/image_expectations.cpp', |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 'include_dirs': [ | 498 'include_dirs': [ |
| 578 '../bench', | 499 '../bench', |
| 579 '../tools/' | 500 '../tools/' |
| 580 ], | 501 ], |
| 581 'sources': [ | 502 'sources': [ |
| 582 '../tools/bbh_shootout.cpp', | 503 '../tools/bbh_shootout.cpp', |
| 583 | 504 |
| 584 # Bench code: | 505 # Bench code: |
| 585 ], | 506 ], |
| 586 'dependencies': [ | 507 'dependencies': [ |
| 587 'timer', | 508 'bench.gyp:bench_timer', |
| 588 'flags.gyp:flags', | 509 'flags.gyp:flags', |
| 510 'tools.gyp:timer_data', |
| 589 'skia_lib.gyp:skia_lib', | 511 'skia_lib.gyp:skia_lib', |
| 590 'tools.gyp:picture_renderer', | 512 'tools.gyp:picture_renderer', |
| 591 'tools.gyp:picture_utils', | 513 'tools.gyp:picture_utils', |
| 592 ], | 514 ], |
| 593 }, | 515 }, |
| 594 { | 516 { |
| 595 'target_name': 'filter', | 517 'target_name': 'filter', |
| 596 'type': 'executable', | 518 'type': 'executable', |
| 597 'include_dirs' : [ | 519 'include_dirs' : [ |
| 598 '../src/core', | 520 '../src/core', |
| (...skipping 16 matching lines...) Expand all Loading... |
| 615 { | 537 { |
| 616 'target_name': 'test_image_decoder', | 538 'target_name': 'test_image_decoder', |
| 617 'type': 'executable', | 539 'type': 'executable', |
| 618 'sources': [ | 540 'sources': [ |
| 619 '../tools/test_image_decoder.cpp', | 541 '../tools/test_image_decoder.cpp', |
| 620 ], | 542 ], |
| 621 'dependencies': [ | 543 'dependencies': [ |
| 622 'skia_lib.gyp:skia_lib', | 544 'skia_lib.gyp:skia_lib', |
| 623 ], | 545 ], |
| 624 }, | 546 }, |
| 547 { |
| 548 'target_name': 'timer_data', |
| 549 'type': 'static_library', |
| 550 'sources': [ |
| 551 '../bench/TimerData.cpp', |
| 552 ], |
| 553 'dependencies': [ |
| 554 'skia_lib.gyp:skia_lib', |
| 555 'jsoncpp.gyp:jsoncpp' |
| 556 ] |
| 557 } |
| 625 ], | 558 ], |
| 626 'conditions': [ | 559 'conditions': [ |
| 627 ['skia_shared_lib', | 560 ['skia_shared_lib', |
| 628 { | 561 { |
| 629 'targets': [ | 562 'targets': [ |
| 630 { | 563 { |
| 631 'target_name': 'sklua', | 564 'target_name': 'sklua', |
| 632 'product_name': 'skia', | 565 'product_name': 'skia', |
| 633 'product_prefix': '', | 566 'product_prefix': '', |
| 634 'product_dir': '<(PRODUCT_DIR)/', | 567 'product_dir': '<(PRODUCT_DIR)/', |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 'type': 'executable', | 619 'type': 'executable', |
| 687 'sources': [ | 620 'sources': [ |
| 688 '../tools/win_lcid.cpp', | 621 '../tools/win_lcid.cpp', |
| 689 ], | 622 ], |
| 690 }, | 623 }, |
| 691 ], | 624 ], |
| 692 }, | 625 }, |
| 693 ], | 626 ], |
| 694 ], | 627 ], |
| 695 } | 628 } |
| OLD | NEW |