license metadata shipped libraries list
Introduce the below command-line tool:
shippedlibs outputs a text file listing 1 library per line containing
the libraries the shipped image is derived from.
Bug: 68860345
Bug: 151177513
Bug: 151953481
Bug: 213388645
Bug: 210912771
Test: m all
Test: m systemlicense
Test: m shippedlibs; out/soong/host/linux-x85/shippedlibs ...
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: I98e2c1eec94ad7878e911eee2458a26e12ee2b19
diff --git a/tools/compliance/Android.bp b/tools/compliance/Android.bp
index 0d7cf10..4f412ae 100644
--- a/tools/compliance/Android.bp
+++ b/tools/compliance/Android.bp
@@ -53,6 +53,13 @@
}
blueprint_go_binary {
+ name: "shippedlibs",
+ srcs: ["cmd/shippedlibs.go"],
+ deps: ["compliance-module"],
+ testSrcs: ["cmd/shippedlibs_test.go"],
+}
+
+blueprint_go_binary {
name: "textnotice",
srcs: ["cmd/textnotice.go"],
deps: ["compliance-module"],