aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-05-22 18:07:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-25 15:02:52 +0000
commit6c8ad116d460fe892fff77b8f80e284e3487d59d (patch)
tree9590a054db35e4cad4c9964fd2ee67b8c06b5bab /BUILD.gn
parent869433fa113d1573d5d91fcafdca413b247ce1b0 (diff)
find_headers.py to better find headers.
The find_headers.py script claims to "recursively search each include directory for headers" but the recursive part has been left out. This changes find_headers to instead find all the sources which are in public include directories and list them with the shortest possible path. This removes the need for a blacklist and also handles includes in subdirectories of public include directories. Change-Id: Ib59256a2059d37d4459686c421923207ac7acf38 Reviewed-on: https://skia-review.googlesource.com/129660 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 3 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 10ec7e5831..8ccad68fdd 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1013,7 +1013,9 @@ if (skia_enable_tools) {
public_configs = [ ":skia.h_config" ]
skia_h = "$target_gen_dir/skia.h"
script = "gn/find_headers.py"
- args = [ rebase_path(skia_h, root_build_dir) ] +
+ args = [ rebase_path("//bin/gn") ] +
+ [ rebase_path("//") ] +
+ [ rebase_path(skia_h, root_build_dir) ] +
rebase_path(skia_public_includes)
depfile = "$skia_h.deps"
outputs = [