aboutsummaryrefslogtreecommitdiffstats
path: root/java/app.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-10-16 18:07:29 -0700
committerColin Cross <ccross@android.com>2017-10-16 19:39:39 -0700
commit59149b6df59b8dcc7b4eddd2ebc95352608291a8 (patch)
tree4487ba6289a976f7e55fe500420493f5431dad0f /java/app.go
parente9a275b440f2e23217081e16bdbe74f981f00239 (diff)
downloadbuild_soong-59149b6df59b8dcc7b4eddd2ebc95352608291a8.tar.gz
build_soong-59149b6df59b8dcc7b4eddd2ebc95352608291a8.tar.bz2
build_soong-59149b6df59b8dcc7b4eddd2ebc95352608291a8.zip
Use jars containg sources for java generators
srcFileLists was an ill-fated attempt to deal with generators that produce a set of java sources that is not known ahead of time. For example, the list of files produced by protoc depends on the package statement in the .proto file. srcFileLists put the list of generated files into a file, which was then passed to javac using the @file syntax. This worked, but it was too easy to cause missing dependencies, and will not work well in a future distributed build environment. Switch to putting generated sources into a jar, and then pass them jar to javac using -sourcepath. Test: m checkbuild Change-Id: Iaab7a588a6c1239f7bf46e4f1b102b3ef517619b
Diffstat (limited to 'java/app.go')
-rw-r--r--java/app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/app.go b/java/app.go
index 490a03d9..42ae2366 100644
--- a/java/app.go
+++ b/java/app.go
@@ -89,7 +89,7 @@ func (a *AndroidApp) GenerateAndroidBuildActions(ctx android.ModuleContext) {
publicResourcesFile, proguardOptionsFile, aaptJavaFileList :=
CreateResourceJavaFiles(ctx, aaptRJavaFlags, aaptDeps)
a.aaptJavaFileList = aaptJavaFileList
- a.ExtraSrcLists = append(a.ExtraSrcLists, aaptJavaFileList)
+ // TODO(ccross): export aapt generated java files as a src jar
if a.appProperties.Export_package_resources {
aaptPackageFlags := append([]string(nil), aaptFlags...)