Add a "license" property to ndk_headers.

This field points to the license file for the headers being shipped.

Test: make ndk && less $SOONG_OUT/ndk/NOTICE
Bug: None
Change-Id: I386f4e6f6d9776f422ffc09b8dab69e1911b08a4
This commit is contained in:
Dan Albert
2016-10-20 01:36:11 -07:00
parent 7b872837c6
commit c6345fb7ec
4 changed files with 40 additions and 6 deletions

View File

@@ -170,6 +170,7 @@ type HostOrDeviceSupported int
const (
_ HostOrDeviceSupported = iota
HostSupported
HostSupportedNoCross
DeviceSupported
HostAndDeviceSupported
HostAndDeviceDefault
@@ -326,8 +327,9 @@ func (a *ModuleBase) ArchSpecific() bool {
func (a *ModuleBase) OsClassSupported() []OsClass {
switch a.commonProperties.HostOrDeviceSupported {
case HostSupported:
// TODO(ccross): explicitly mark host cross support
return []OsClass{Host, HostCross}
case HostSupportedNoCross:
return []OsClass{Host}
case DeviceSupported:
return []OsClass{Device}
case HostAndDeviceSupported: