From 19ff8b4662723d73c6dfc33d7585f66c25cd873d Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 24 May 2018 15:00:48 -0700 Subject: [PATCH] Add exclude_srcs property to ndk_headers modules. Test: make checkbuild Bug: None Change-Id: I2778c1140ab50abc0f7dee66da35ebacef77ea72 --- cc/ndk_headers.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cc/ndk_headers.go b/cc/ndk_headers.go index 866479dc0..663bd2af2 100644 --- a/cc/ndk_headers.go +++ b/cc/ndk_headers.go @@ -65,6 +65,9 @@ type headerProperties struct { // List of headers to install. Glob compatible. Common case is "include/**/*.h". Srcs []string + // Source paths that should be excluded from the srcs glob. + Exclude_srcs []string + // Path to the NOTICE file associated with the headers. License *string } @@ -128,7 +131,7 @@ func (m *headerModule) GenerateAndroidBuildActions(ctx android.ModuleContext) { return } - srcFiles := ctx.ExpandSources(m.properties.Srcs, nil) + srcFiles := ctx.ExpandSources(m.properties.Srcs, m.properties.Exclude_srcs) for _, header := range srcFiles { installDir := getHeaderInstallDir(ctx, header, String(m.properties.From), String(m.properties.To))