OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # GYP file to build various tools. | 5 # GYP file to build various tools. |
6 # | 6 # |
7 # To build on Linux: | 7 # To build on Linux: |
8 # ./gyp_skia tools.gyp && make tools | 8 # ./gyp_skia tools.gyp && make tools |
9 # | 9 # |
10 { | 10 { |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 '<(skia_include_path)/utils/SkJSONCPP.h', | 459 '<(skia_include_path)/utils/SkJSONCPP.h', |
460 '<(skia_include_path)/views/SkOSWindow_Android.h', | 460 '<(skia_include_path)/views/SkOSWindow_Android.h', |
461 '<(skia_include_path)/views/SkOSWindow_iOS.h', | 461 '<(skia_include_path)/views/SkOSWindow_iOS.h', |
462 '<(skia_include_path)/views/SkOSWindow_Mac.h', | 462 '<(skia_include_path)/views/SkOSWindow_Mac.h', |
463 '<(skia_include_path)/views/SkOSWindow_SDL.h', | 463 '<(skia_include_path)/views/SkOSWindow_SDL.h', |
464 '<(skia_include_path)/views/SkOSWindow_Unix.h', | 464 '<(skia_include_path)/views/SkOSWindow_Unix.h', |
465 '<(skia_include_path)/views/SkOSWindow_Win.h', | 465 '<(skia_include_path)/views/SkOSWindow_Win.h', |
466 '<(skia_include_path)/views/SkWindow.h', | 466 '<(skia_include_path)/views/SkWindow.h', |
467 '<(skia_include_path)/gpu/vk', | 467 '<(skia_include_path)/gpu/vk', |
468 ], | 468 ], |
| 469 'output_file' : [ |
| 470 '<(INTERMEDIATE_DIR)/test_public_includes.cpp', |
| 471 ], |
469 }, | 472 }, |
470 'include_dirs': [ | 473 'include_dirs': [ |
471 '<@(includes_to_test)', | 474 '<@(includes_to_test)', |
472 '../src/core', | |
473 ], | 475 ], |
474 'sources': [ | 476 'sources': [ |
475 # unused_param_test.cpp is generated by the action below. | 477 # unused_param_test.cpp is generated by the action below. |
476 '<(INTERMEDIATE_DIR)/test_public_includes.cpp', | 478 '<(INTERMEDIATE_DIR)/test_public_includes.cpp', |
477 ], | 479 ], |
478 'actions': [ | 480 'actions': [ |
479 { | 481 { |
480 'action_name': 'generate_includes_cpp', | 482 'action_name': 'generate_includes_cpp', |
481 'inputs': [ | 483 'inputs': [ |
482 '../tools/generate_includes_cpp.py', | 484 '../tools/generate_includes_cpp.py', |
483 '<@(includes_to_test)', | 485 '<@(includes_to_test)', |
484 # This causes the gyp generator on mac to fail | |
485 #'<@(paths_to_ignore)', | |
486 ], | 486 ], |
487 'outputs': [ | 487 'outputs': [ |
488 '<(INTERMEDIATE_DIR)/test_public_includes.cpp', | 488 '<@(output_file)', |
| 489 # Force the script to always run so that we pick up when files have |
| 490 # been deleted. |
| 491 'filename_that_does_not_exists_but_forces_rebuild.txt', |
489 ], | 492 ], |
490 'action': ['python', '../tools/generate_includes_cpp.py', | 493 'action': ['python', '../tools/generate_includes_cpp.py', |
491 '--ignore', '<(paths_to_ignore)', | 494 '--ignore', '<(paths_to_ignore)', |
492 '<@(_outputs)', '<@(includes_to_test)'], | 495 '<@(output_file)', '<@(includes_to_test)'], |
493 }, | 496 }, |
494 ], | 497 ], |
495 }, | 498 }, |
496 ], | 499 ], |
497 'conditions': [ | 500 'conditions': [ |
498 ['skia_shared_lib', | 501 ['skia_shared_lib', |
499 { | 502 { |
500 'targets': [ | 503 'targets': [ |
501 { | 504 { |
502 'target_name': 'sklua', | 505 'target_name': 'sklua', |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 'flags.gyp:flags', | 583 'flags.gyp:flags', |
581 'skia_lib.gyp:skia_lib', | 584 'skia_lib.gyp:skia_lib', |
582 'resources', | 585 'resources', |
583 ], | 586 ], |
584 }, | 587 }, |
585 ], | 588 ], |
586 }, | 589 }, |
587 ], | 590 ], |
588 ], | 591 ], |
589 } | 592 } |
OLD | NEW |