diff options
author | Mathew Inwood <mathewi@google.com> | 2018-09-04 14:26:19 +0100 |
---|---|---|
committer | Mathew Inwood <mathewi@google.com> | 2018-09-04 14:57:44 +0100 |
commit | ebe29ce4c6677ace921ef0514cbf0a6958f6ddd2 (patch) | |
tree | 4dbb3ae443d6648d486628f19a64e81d3837d8a9 /java/androidmk.go | |
parent | e9446009785372c40e95b1c3025c691da7477174 (diff) | |
download | android_build_soong-ebe29ce4c6677ace921ef0514cbf0a6958f6ddd2.tar.gz android_build_soong-ebe29ce4c6677ace921ef0514cbf0a6958f6ddd2.tar.bz2 android_build_soong-ebe29ce4c6677ace921ef0514cbf0a6958f6ddd2.zip |
Adapt special case framework support.
I'm adding a annotation processor to the framework target that does not
run as part of the main build, but only for a parallel build target
framework-annotation-proc, which is identical to framework except that it
also runs an annotation processor. Update build rules to be aware of this
target so that it builds successfully.
Test: m framework-annotation-proc
Bug: 113853502
Change-Id: I8b20758dc8bd0e8cb2542414d7a45a2cd7d2e158
Diffstat (limited to 'java/androidmk.go')
-rw-r--r-- | java/androidmk.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/androidmk.go b/java/androidmk.go index 877d8408..bd88a1d1 100644 --- a/java/androidmk.go +++ b/java/androidmk.go @@ -70,7 +70,7 @@ func (library *Library) AndroidMk() android.AndroidMkData { // Temporary hack: export sources used to compile framework.jar to Make // to be used for droiddoc // TODO(ccross): remove this once droiddoc is in soong - if library.Name() == "framework" { + if (library.Name() == "framework") || (library.Name() == "framework-annotation-proc") { fmt.Fprintln(w, "SOONG_FRAMEWORK_SRCS :=", strings.Join(library.compiledJavaSrcs.Strings(), " ")) fmt.Fprintln(w, "SOONG_FRAMEWORK_SRCJARS :=", strings.Join(library.compiledSrcJars.Strings(), " ")) } |