diff options
author | Colin Cross <ccross@android.com> | 2015-04-15 12:29:45 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2015-04-16 14:06:12 -0700 |
commit | d0a3da2d88ed9f4cc2e2ae4387a1ec9236ef760c (patch) | |
tree | 850243cda2d740b9c92a28b8257750095b2dc6cf /androidmk | |
parent | c1e86a389610e83f977b7f1835ba1a203e3d656f (diff) | |
download | build_soong-d0a3da2d88ed9f4cc2e2ae4387a1ec9236ef760c.tar.gz build_soong-d0a3da2d88ed9f4cc2e2ae4387a1ec9236ef760c.tar.bz2 build_soong-d0a3da2d88ed9f4cc2e2ae4387a1ec9236ef760c.zip |
androidmk: add all-subdir-java-files
Change-Id: I7f3458231abcf7fb03595bb0f9277a0820ceb4f7
Diffstat (limited to 'androidmk')
-rw-r--r-- | androidmk/cmd/androidmk/android.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go index 404aed80..9396afe3 100644 --- a/androidmk/cmd/androidmk/android.go +++ b/androidmk/cmd/androidmk/android.go @@ -117,6 +117,10 @@ func allJavaFilesUnder(args []string) string { return fmt.Sprintf("%s/**/*.java", dir) } +func allSubdirJavaFiles(args []string) string { + return "**/*.java" +} + var moduleTypes = map[string]string{ "BUILD_SHARED_LIBRARY": "cc_library_shared", "BUILD_STATIC_LIBRARY": "cc_library_static", @@ -142,6 +146,7 @@ func androidScope() parser.Scope { globalScope.Set("CLEAR_VARS", clear_vars) globalScope.SetFunc("my-dir", mydir) globalScope.SetFunc("all-java-files-under", allJavaFilesUnder) + globalScope.SetFunc("all-subdir-java-files", allSubdirJavaFiles) for k, v := range moduleTypes { globalScope.Set(k, v) |