diff options
author | Greg Daniel <egdaniel@google.com> | 2017-04-12 13:29:50 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-12 18:24:25 +0000 |
commit | 50130e427c4d02405a38e26c4f020159e6ac295a (patch) | |
tree | 4c57cecb53de7fe03e5b3302579e86da2a9d7451 /gn/find_headers.py | |
parent | 4ccd862d2940c47e7815c1309814e3de1c791e84 (diff) |
Allow including of vulkan.h as a required public api when using vulkan.
Bug: skia:
Change-Id: I3ac382edc12144dcda9ef168f752b14878e0e5ac
Reviewed-on: https://skia-review.googlesource.com/13262
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gn/find_headers.py')
-rwxr-xr-x | gn/find_headers.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gn/find_headers.py b/gn/find_headers.py index 4ade28de71..f02ebc93ab 100755 --- a/gn/find_headers.py +++ b/gn/find_headers.py @@ -15,14 +15,11 @@ import sys # very same mechanism Ninja uses to know which .h files affect which .cpp files. skia_h = sys.argv[1] -include_dirs = sys.argv[2:] +use_vulkan = eval(sys.argv[2]) +include_dirs = sys.argv[3:] blacklist = { "GrGLConfig_chrome.h", - "GrVkBackendContext.h", - "GrVkDefines.h", - "GrVkInterface.h", - "GrVkTypes.h", "SkFontMgr_fontconfig.h", } @@ -30,8 +27,9 @@ headers = [] for directory in include_dirs: for d, _, files in os.walk(directory): for f in files: - if f.endswith('.h') and f not in blacklist: - headers.append(os.path.join(d,f)) + if not d.endswith('vk') or use_vulkan: + if f.endswith('.h') and f not in blacklist: + headers.append(os.path.join(d,f)) headers.sort() with open(skia_h, "w") as f: |