Chromium Code Reviews| 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 14 matching lines...) Expand all Loading... | |
| 25 'skimage', | 25 'skimage', |
| 26 ], | 26 ], |
| 27 'conditions': [ | 27 'conditions': [ |
| 28 ['skia_shared_lib', | 28 ['skia_shared_lib', |
| 29 { | 29 { |
| 30 'dependencies': [ | 30 'dependencies': [ |
| 31 'sklua', # This can only be built if skia is built as a shared lib rary | 31 'sklua', # This can only be built if skia is built as a shared lib rary |
| 32 ], | 32 ], |
| 33 }, | 33 }, |
| 34 ], | 34 ], |
| 35 ['skia_os != "win"', | |
| 36 { | |
| 37 'dependencies': [ | |
| 38 'skpdiff', | |
| 39 ], | |
| 40 } | |
| 41 ] | |
| 35 ], | 42 ], |
| 36 }, | 43 }, |
| 37 { | 44 { |
| 38 'target_name': 'skdiff', | 45 'target_name': 'skdiff', |
| 39 'type': 'executable', | 46 'type': 'executable', |
| 40 'sources': [ | 47 'sources': [ |
| 41 '../tools/skdiff.cpp', | 48 '../tools/skdiff.cpp', |
| 42 '../tools/skdiff.h', | 49 '../tools/skdiff.h', |
| 43 '../tools/skdiff_html.cpp', | 50 '../tools/skdiff_html.cpp', |
| 44 '../tools/skdiff_html.h', | 51 '../tools/skdiff_html.h', |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 380 'targets': [ | 387 'targets': [ |
| 381 { | 388 { |
| 382 'target_name': 'win_lcid', | 389 'target_name': 'win_lcid', |
| 383 'type': 'executable', | 390 'type': 'executable', |
| 384 'sources': [ | 391 'sources': [ |
| 385 '../tools/win_lcid.cpp', | 392 '../tools/win_lcid.cpp', |
| 386 ], | 393 ], |
| 387 }, | 394 }, |
| 388 ], | 395 ], |
| 389 }, | 396 }, |
| 397 { | |
| 398 'targets': [ | |
|
djsollen
2013/07/17 19:47:10
this doesn't need to be in it's own target list ju
Zach Reizner
2013/07/17 19:56:17
for now I wanted to prevent it from building on wi
| |
| 399 { | |
| 400 'target_name': 'skpdiff', | |
| 401 'type': 'executable', | |
| 402 'sources': [ | |
| 403 '../tools/skpdiff/main.cpp', | |
|
djsollen
2013/07/17 19:47:10
to make it easier to search for can we call it skp
| |
| 404 '../tools/skpdiff/SkDiffContext.cpp', | |
| 405 '../tools/skpdiff/SkImageDiffer.cpp', | |
| 406 '../tools/skpdiff/SkPMetric.cpp', | |
| 407 '../tools/skpdiff/skpdiff_util.cpp', | |
| 408 '../tools/flags/SkCommandLineFlags.cpp', | |
| 409 ], | |
| 410 'include_dirs': [ | |
| 411 '../tools/flags' | |
| 412 ], | |
| 413 'dependencies': [ | |
| 414 'skia_lib.gyp:skia_lib', | |
| 415 ], | |
| 416 'cflags': [ | |
| 417 '-O3', | |
| 418 ], | |
| 419 'conditions': [ | |
| 420 ['skia_opencl', { | |
| 421 'sources': [ | |
| 422 '../tools/skpdiff/SkCLImageDiffer.cpp', | |
| 423 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', | |
| 424 ], | |
| 425 'link_settings': { | |
| 426 'libraries': [ | |
| 427 '-lOpenCL', | |
| 428 ], | |
| 429 }, | |
| 430 }, { | |
|
djsollen
2013/07/17 19:47:10
}, { # !skia_opencl
| |
| 431 'sources': [ | |
| 432 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', | |
| 433 ], | |
| 434 }], | |
| 435 ], | |
| 436 }, | |
| 437 ], | |
| 438 }, | |
| 390 ], | 439 ], |
| 391 ], | 440 ], |
| 392 } | 441 } |
| 393 | 442 |
| 394 # Local Variables: | 443 # Local Variables: |
| 395 # tab-width:2 | 444 # tab-width:2 |
| 396 # indent-tabs-mode:nil | 445 # indent-tabs-mode:nil |
| 397 # End: | 446 # End: |
| 398 # vim: set expandtab tabstop=2 shiftwidth=2: | 447 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |