compliance package for license metadata: dumpgraph
package to read, consume, and analyze license metadata and dependency
graph.
Includes testdata/ and the the below command-line tool:
dumpgraph outputs edges of the graph as "target dependency annotations"
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Test: m systemlicense
Test: m dumpgraph; out/soong/host/linux-x86/dumpgraph ...
where ... is the path to the .meta_lic file for the system image. In my
case if
$ export PRODUCT=$(realpath $ANDROID_PRODUCT_OUT --relative-to=$PWD)
... can be expressed as:
${PRODUCT}/gen/META/lic_intermediates/${PRODUCT}/system.img.meta_lic
Change-Id: I5fe57d361da5155dbcb2c0d369626e9200c9d664
diff --git a/tools/compliance/Android.bp b/tools/compliance/Android.bp
index e56a471..1853e83 100644
--- a/tools/compliance/Android.bp
+++ b/tools/compliance/Android.bp
@@ -17,6 +17,13 @@
default_applicable_licenses: ["Android-Apache-2.0"],
}
+blueprint_go_binary {
+ name: "dumpgraph",
+ srcs: ["cmd/dumpgraph.go"],
+ deps: ["compliance-module"],
+ testSrcs: ["cmd/dumpgraph_test.go"],
+}
+
bootstrap_go_package {
name: "compliance-module",
srcs: [