| 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     { | 
|  | 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     }, | 
| 46     { | 126     { | 
| 47       'target_name': 'skdiff', | 127       'target_name': 'skdiff', | 
| 48       'type': 'executable', | 128       'type': 'executable', | 
| 49       'sources': [ | 129       'sources': [ | 
| 50         '../tools/skdiff.cpp', | 130         '../tools/skdiff.cpp', | 
| 51         '../tools/skdiff.h', | 131         '../tools/skdiff.h', | 
| 52         '../tools/skdiff_html.cpp', | 132         '../tools/skdiff_html.cpp', | 
| 53         '../tools/skdiff_html.h', | 133         '../tools/skdiff_html.h', | 
| 54         '../tools/skdiff_main.cpp', | 134         '../tools/skdiff_main.cpp', | 
| 55         '../tools/skdiff_utils.cpp', | 135         '../tools/skdiff_utils.cpp', | 
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 171       'target_name': 'skimage', | 251       'target_name': 'skimage', | 
| 172       'type': 'executable', | 252       'type': 'executable', | 
| 173       'sources': [ | 253       'sources': [ | 
| 174         '../tools/skimage_main.cpp', | 254         '../tools/skimage_main.cpp', | 
| 175       ], | 255       ], | 
| 176       'include_dirs': [ | 256       'include_dirs': [ | 
| 177         # For SkBitmapHasher.h | 257         # For SkBitmapHasher.h | 
| 178         '../src/utils/', | 258         '../src/utils/', | 
| 179       ], | 259       ], | 
| 180       'dependencies': [ | 260       'dependencies': [ | 
|  | 261         'gm_expectations', | 
| 181         'flags.gyp:flags', | 262         'flags.gyp:flags', | 
| 182         'gm.gyp:gm_expectations', |  | 
| 183         'jsoncpp.gyp:jsoncpp', | 263         'jsoncpp.gyp:jsoncpp', | 
| 184         'skia_lib.gyp:skia_lib', | 264         'skia_lib.gyp:skia_lib', | 
| 185       ], | 265       ], | 
| 186     }, | 266     }, | 
| 187     { | 267     { | 
| 188       'target_name': 'skpinfo', | 268       'target_name': 'skpinfo', | 
| 189       'type': 'executable', | 269       'type': 'executable', | 
| 190       'sources': [ | 270       'sources': [ | 
| 191         '../tools/skpinfo.cpp', | 271         '../tools/skpinfo.cpp', | 
| 192       ], | 272       ], | 
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 292         '../tools/PictureBenchmark.cpp', | 372         '../tools/PictureBenchmark.cpp', | 
| 293         '../tools/PictureResultsWriter.h', | 373         '../tools/PictureResultsWriter.h', | 
| 294         '../tools/bench_pictures_main.cpp', | 374         '../tools/bench_pictures_main.cpp', | 
| 295       ], | 375       ], | 
| 296       'include_dirs': [ | 376       'include_dirs': [ | 
| 297         '../src/core/', | 377         '../src/core/', | 
| 298         '../bench', | 378         '../bench', | 
| 299         '../src/lazy/', | 379         '../src/lazy/', | 
| 300       ], | 380       ], | 
| 301       'dependencies': [ | 381       'dependencies': [ | 
| 302         'bench.gyp:bench_timer', | 382         'timer', | 
| 303         'crash_handler.gyp:CrashHandler', | 383         'crash_handler', | 
| 304         'flags.gyp:flags', | 384         'flags.gyp:flags', | 
| 305         'jsoncpp.gyp:jsoncpp', | 385         'jsoncpp.gyp:jsoncpp', | 
| 306         'skia_lib.gyp:skia_lib', | 386         'skia_lib.gyp:skia_lib', | 
| 307         'tools.gyp:picture_renderer', | 387         'tools.gyp:picture_renderer', | 
| 308         'tools.gyp:picture_utils', | 388         'tools.gyp:picture_utils', | 
| 309         'tools.gyp:timer_data', |  | 
| 310       ], | 389       ], | 
| 311     }, | 390     }, | 
| 312     { | 391     { | 
| 313       'target_name': 'bench_record', | 392       'target_name': 'bench_record', | 
| 314       'type': 'executable', | 393       'type': 'executable', | 
| 315       'sources': [ | 394       'sources': [ | 
| 316         '../tools/bench_record.cpp', | 395         '../tools/bench_record.cpp', | 
| 317         '../tools/LazyDecodeBitmap.cpp', | 396         '../tools/LazyDecodeBitmap.cpp', | 
| 318       ], | 397       ], | 
| 319       'include_dirs': [ | 398       'include_dirs': [ | 
| 320         '../src/core/', | 399         '../src/core/', | 
| 321         '../src/images', | 400         '../src/images', | 
| 322         '../src/lazy', | 401         '../src/lazy', | 
| 323       ], | 402       ], | 
| 324       'dependencies': [ | 403       'dependencies': [ | 
| 325         'bench.gyp:bench_timer', | 404         'timer', | 
| 326         'flags.gyp:flags', | 405         'flags.gyp:flags', | 
| 327         'skia_lib.gyp:skia_lib', | 406         'skia_lib.gyp:skia_lib', | 
| 328       ], | 407       ], | 
| 329     }, | 408     }, | 
| 330     { | 409     { | 
| 331       'target_name': 'bench_playback', | 410       'target_name': 'bench_playback', | 
| 332       'type': 'executable', | 411       'type': 'executable', | 
| 333       'sources': [ | 412       'sources': [ | 
| 334         '../tools/bench_playback.cpp', | 413         '../tools/bench_playback.cpp', | 
| 335       ], | 414       ], | 
| 336       'include_dirs': [ | 415       'include_dirs': [ | 
| 337         '../src/core/', | 416         '../src/core/', | 
| 338         '../src/images', | 417         '../src/images', | 
| 339       ], | 418       ], | 
| 340       'dependencies': [ | 419       'dependencies': [ | 
| 341         'bench.gyp:bench_timer', | 420         'timer', | 
| 342         'flags.gyp:flags', | 421         'flags.gyp:flags', | 
| 343         'skia_lib.gyp:skia_lib', | 422         'skia_lib.gyp:skia_lib', | 
| 344       ], | 423       ], | 
| 345     }, | 424     }, | 
| 346     { | 425     { | 
| 347       'target_name': 'dump_record', | 426       'target_name': 'dump_record', | 
| 348       'type': 'executable', | 427       'type': 'executable', | 
| 349       'sources': [ | 428       'sources': [ | 
| 350         '../tools/dump_record.cpp', | 429         '../tools/dump_record.cpp', | 
| 351         '../tools/DumpRecord.cpp', | 430         '../tools/DumpRecord.cpp', | 
| 352         '../tools/LazyDecodeBitmap.cpp', | 431         '../tools/LazyDecodeBitmap.cpp', | 
| 353       ], | 432       ], | 
| 354       'include_dirs': [ | 433       'include_dirs': [ | 
| 355         '../src/core/', | 434         '../src/core/', | 
| 356         '../src/images', | 435         '../src/images', | 
| 357         '../src/lazy', | 436         '../src/lazy', | 
| 358       ], | 437       ], | 
| 359       'dependencies': [ | 438       'dependencies': [ | 
| 360         'bench.gyp:bench_timer', | 439         'timer', | 
| 361         'flags.gyp:flags', | 440         'flags.gyp:flags', | 
| 362         'skia_lib.gyp:skia_lib', | 441         'skia_lib.gyp:skia_lib', | 
| 363       ], | 442       ], | 
| 364     }, | 443     }, | 
| 365     { | 444     { | 
| 366       'target_name': 'picture_renderer', | 445       'target_name': 'picture_renderer', | 
| 367       'type': 'static_library', | 446       'type': 'static_library', | 
| 368       'sources': [ | 447       'sources': [ | 
| 369         '../tools/image_expectations.h', | 448         '../tools/image_expectations.h', | 
| 370         '../tools/image_expectations.cpp', | 449         '../tools/image_expectations.cpp', | 
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 498       'include_dirs': [ | 577       'include_dirs': [ | 
| 499         '../bench', | 578         '../bench', | 
| 500         '../tools/' | 579         '../tools/' | 
| 501       ], | 580       ], | 
| 502       'sources': [ | 581       'sources': [ | 
| 503         '../tools/bbh_shootout.cpp', | 582         '../tools/bbh_shootout.cpp', | 
| 504 | 583 | 
| 505         # Bench code: | 584         # Bench code: | 
| 506       ], | 585       ], | 
| 507       'dependencies': [ | 586       'dependencies': [ | 
| 508         'bench.gyp:bench_timer', | 587         'timer', | 
| 509         'flags.gyp:flags', | 588         'flags.gyp:flags', | 
| 510         'tools.gyp:timer_data', |  | 
| 511         'skia_lib.gyp:skia_lib', | 589         'skia_lib.gyp:skia_lib', | 
| 512         'tools.gyp:picture_renderer', | 590         'tools.gyp:picture_renderer', | 
| 513         'tools.gyp:picture_utils', | 591         'tools.gyp:picture_utils', | 
| 514       ], | 592       ], | 
| 515     }, | 593     }, | 
| 516     { | 594     { | 
| 517       'target_name': 'filter', | 595       'target_name': 'filter', | 
| 518       'type': 'executable', | 596       'type': 'executable', | 
| 519       'include_dirs' : [ | 597       'include_dirs' : [ | 
| 520         '../src/core', | 598         '../src/core', | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
| 537     { | 615     { | 
| 538       'target_name': 'test_image_decoder', | 616       'target_name': 'test_image_decoder', | 
| 539       'type': 'executable', | 617       'type': 'executable', | 
| 540       'sources': [ | 618       'sources': [ | 
| 541         '../tools/test_image_decoder.cpp', | 619         '../tools/test_image_decoder.cpp', | 
| 542       ], | 620       ], | 
| 543       'dependencies': [ | 621       'dependencies': [ | 
| 544         'skia_lib.gyp:skia_lib', | 622         'skia_lib.gyp:skia_lib', | 
| 545       ], | 623       ], | 
| 546     }, | 624     }, | 
| 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     } |  | 
| 558   ], | 625   ], | 
| 559   'conditions': [ | 626   'conditions': [ | 
| 560     ['skia_shared_lib', | 627     ['skia_shared_lib', | 
| 561       { | 628       { | 
| 562         'targets': [ | 629         'targets': [ | 
| 563           { | 630           { | 
| 564             'target_name': 'sklua', | 631             'target_name': 'sklua', | 
| 565             'product_name': 'skia', | 632             'product_name': 'skia', | 
| 566             'product_prefix': '', | 633             'product_prefix': '', | 
| 567             'product_dir': '<(PRODUCT_DIR)/', | 634             'product_dir': '<(PRODUCT_DIR)/', | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 619             'type': 'executable', | 686             'type': 'executable', | 
| 620             'sources': [ | 687             'sources': [ | 
| 621               '../tools/win_lcid.cpp', | 688               '../tools/win_lcid.cpp', | 
| 622             ], | 689             ], | 
| 623           }, | 690           }, | 
| 624         ], | 691         ], | 
| 625       }, | 692       }, | 
| 626     ], | 693     ], | 
| 627   ], | 694   ], | 
| 628 } | 695 } | 
| OLD | NEW | 
|---|