Force include test to run on every compile.

Also fix the tool to stop looking in the src dir for includes.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1839123004

Review URL: https://codereview.chromium.org/1839123004
This commit is contained in:
djsollen 2016-03-30 08:28:02 -07:00 committed by Commit bot
parent 40d8d62854
commit 7c9c4a775d

View File

@ -466,10 +466,12 @@
'<(skia_include_path)/views/SkWindow.h',
'<(skia_include_path)/gpu/vk',
],
'output_file' : [
'<(INTERMEDIATE_DIR)/test_public_includes.cpp',
],
},
'include_dirs': [
'<@(includes_to_test)',
'../src/core',
],
'sources': [
# unused_param_test.cpp is generated by the action below.
@ -481,15 +483,16 @@
'inputs': [
'../tools/generate_includes_cpp.py',
'<@(includes_to_test)',
# This causes the gyp generator on mac to fail
#'<@(paths_to_ignore)',
],
'outputs': [
'<(INTERMEDIATE_DIR)/test_public_includes.cpp',
'<@(output_file)',
# Force the script to always run so that we pick up when files have
# been deleted.
'filename_that_does_not_exists_but_forces_rebuild.txt',
],
'action': ['python', '../tools/generate_includes_cpp.py',
'--ignore', '<(paths_to_ignore)',
'<@(_outputs)', '<@(includes_to_test)'],
'<@(output_file)', '<@(includes_to_test)'],
},
],
},