summaryrefslogtreecommitdiff
path: root/vnames.json
diff options
context:
space:
mode:
author Sasha Smundak <asmundak@google.com> 2019-09-26 20:14:28 -0700
committer Sasha Smundak <asmundak@google.com> 2019-09-27 10:28:11 -0700
commit651436460a335d7e89efab9d6f3f872a397342db (patch)
treea5c35de036ea08354ef8482f1dbf579db979dbaf /vnames.json
parent2784fda1521e582de84e99a6ee65e8eb6281bb5e (diff)
Pass filename mappings to C++ and Java extractors.
Android builds by default put artifacts into out/ subdirectory of the source tree, causing the extractor to record their names as relative. The indexer considers such files as sources, which is wrong. Fortunately, the extractor can be fed a set of filename rewriting rules (see build/tools/vnames.json). Also, undo previous unsuccessful attempt use to absolute path for the output directory to distinguish between source code and artifacts. Bug: 141385476 Test: run the build, inspect compilation units of the kzip file Change-Id: I89ec3aed8fd14f43ea6e0b226d54f643346f6125
Diffstat (limited to 'vnames.json')
-rw-r--r--vnames.json18
1 files changed, 18 insertions, 0 deletions
diff --git a/vnames.json b/vnames.json
new file mode 100644
index 000000000..7b34c52f5
--- /dev/null
+++ b/vnames.json
@@ -0,0 +1,18 @@
+[
+ {
+ "pattern": "out/(.*)",
+ "vname": {
+ "corpus": "CORPUS",
+ "root": "out",
+ "path": "@1@"
+ }
+ },
+ {
+ "pattern": "(.*)",
+ "vname": {
+ "corpus": "CORPUS",
+ "path": "@1@"
+ }
+ }
+]
+