license metadata html notice files
Introduce the below command-line tool:
htmlnotice outputs a NOTICE.html file constructed from the license
texts of the transitive closure of dependencies.
Bug: 68860345
Bug: 151177513
Bug: 151953481
Bug: 213388645
Bug: 210912771
Test: m all
Test: m systemlicense
Test: m htmlnotice; out/soong/host/linux-x85/htmlnotice ...
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: Idbbeb2939d8cbf497237516fe468004fcd2d72a1
diff --git a/tools/compliance/Android.bp b/tools/compliance/Android.bp
index 5684f2f..0d7cf10 100644
--- a/tools/compliance/Android.bp
+++ b/tools/compliance/Android.bp
@@ -46,6 +46,13 @@
}
blueprint_go_binary {
+ name: "htmlnotice",
+ srcs: ["cmd/htmlnotice.go"],
+ deps: ["compliance-module"],
+ testSrcs: ["cmd/htmlnotice_test.go"],
+}
+
+blueprint_go_binary {
name: "textnotice",
srcs: ["cmd/textnotice.go"],
deps: ["compliance-module"],