Add exclude_srcs property to ndk_headers modules.
Test: make checkbuild Bug: None Change-Id: I2778c1140ab50abc0f7dee66da35ebacef77ea72
This commit is contained in:
@@ -65,6 +65,9 @@ type headerProperties struct {
|
|||||||
// List of headers to install. Glob compatible. Common case is "include/**/*.h".
|
// List of headers to install. Glob compatible. Common case is "include/**/*.h".
|
||||||
Srcs []string
|
Srcs []string
|
||||||
|
|
||||||
|
// Source paths that should be excluded from the srcs glob.
|
||||||
|
Exclude_srcs []string
|
||||||
|
|
||||||
// Path to the NOTICE file associated with the headers.
|
// Path to the NOTICE file associated with the headers.
|
||||||
License *string
|
License *string
|
||||||
}
|
}
|
||||||
@@ -128,7 +131,7 @@ func (m *headerModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
srcFiles := ctx.ExpandSources(m.properties.Srcs, nil)
|
srcFiles := ctx.ExpandSources(m.properties.Srcs, m.properties.Exclude_srcs)
|
||||||
for _, header := range srcFiles {
|
for _, header := range srcFiles {
|
||||||
installDir := getHeaderInstallDir(ctx, header, String(m.properties.From),
|
installDir := getHeaderInstallDir(ctx, header, String(m.properties.From),
|
||||||
String(m.properties.To))
|
String(m.properties.To))
|
||||||
|
Reference in New Issue
Block a user