diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-11-02 20:43:13 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-11-02 21:19:11 -0700 |
commit | 21ec49068f7be873e963dd8dc5cff610539540c5 (patch) | |
tree | c99797f9e04319a88c26d8bf189d740f63744dcd /java | |
parent | eb716e25590a50541c5c2b3be81ae0468ac35690 (diff) | |
download | build_soong-21ec49068f7be873e963dd8dc5cff610539540c5.tar.gz build_soong-21ec49068f7be873e963dd8dc5cff610539540c5.tar.bz2 build_soong-21ec49068f7be873e963dd8dc5cff610539540c5.zip |
Add subdir to GenPath
We were emulating this for proto files, standardize it and make the
other generators use it as well.
Test: Compare out/soong/build.ninja before/after change
Test: mmma -j system/tools/hidl
Change-Id: I1888c7b981749060a398387bbb9b481270bf6d75
Diffstat (limited to 'java')
-rw-r--r-- | java/gen.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/gen.go b/java/gen.go index 52a0c799..06247085 100644 --- a/java/gen.go +++ b/java/gen.go @@ -57,7 +57,7 @@ var ( ) func genAidl(ctx android.ModuleContext, aidlFile android.Path, aidlFlags string) android.Path { - javaFile := android.GenPathWithExt(ctx, aidlFile, "java") + javaFile := android.GenPathWithExt(ctx, "aidl", aidlFile, "java") depFile := javaFile.String() + ".d" ctx.ModuleBuild(pctx, android.ModuleBuildParams{ @@ -74,7 +74,7 @@ func genAidl(ctx android.ModuleContext, aidlFile android.Path, aidlFlags string) } func genLogtags(ctx android.ModuleContext, logtagsFile android.Path) android.Path { - javaFile := android.GenPathWithExt(ctx, logtagsFile, "java") + javaFile := android.GenPathWithExt(ctx, "logtags", logtagsFile, "java") ctx.ModuleBuild(pctx, android.ModuleBuildParams{ Rule: logtags, |