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
This commit is contained in:
Bob Badour
2022-01-23 17:15:46 -08:00
parent e6fdd1403b
commit 6ea1457c9b
4 changed files with 1100 additions and 16 deletions

View File

@@ -45,6 +45,13 @@ blueprint_go_binary {
testSrcs: ["cmd/dumpresolutions_test.go"],
}
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"],