Files
build/tools/compliance/cmd/testdata/restricted/highest.apex.meta_lic
Bob Badour fa739da020 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
2021-12-06 16:37:17 -08:00

45 lines
1.3 KiB
Plaintext

package_name: "Android"
projects: "highest/apex"
license_kinds: "SPDX-license-identifier-Apache-2.0"
license_conditions: "notice"
license_texts: "build/soong/licenses/LICENSE"
is_container: true
built: "out/target/product/fictional/obj/ETC/highest_intermediates/highest.apex"
installed: "out/target/product/fictional/system/apex/highest.apex"
install_map {
from_path: "out/target/product/fictional/system/lib/liba.so"
container_path: "lib/liba.so"
}
install_map {
from_path: "out/target/product/fictional/system/lib/libb.so"
container_path: "lib/libb.so"
}
install_map {
from_path: "out/target/product/fictional/system/bin/bin1"
container_path: "bin/bin1"
}
install_map {
from_path: "out/target/product/fictional/system/bin/bin2"
container_path: "bin/bin2"
}
sources: "out/target/product/fictional/system/lib/liba.so"
sources: "out/target/product/fictional/system/lib/libb.so"
sources: "out/target/product/fictional/system/bin/bin1"
sources: "out/target/product/fictional/system/bin/bin2"
deps: {
file: "testdata/restricted/bin/bin1.meta_lic"
annotations: "static"
}
deps: {
file: "testdata/restricted/bin/bin2.meta_lic"
annotations: "static"
}
deps: {
file: "testdata/restricted/lib/liba.so.meta_lic"
annotations: "static"
}
deps: {
file: "testdata/restricted/lib/libb.so.meta_lic"
annotations: "static"
}