summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/java/java.go b/java/java.go
index 125fde1ec..06dce052a 100644
--- a/java/java.go
+++ b/java/java.go
@@ -19,7 +19,6 @@ package java
// is handled in builder.go
import (
- "fmt"
"path/filepath"
"strconv"
"strings"
@@ -179,6 +178,9 @@ type CompilerDeviceProperties struct {
// directories that should be added as include directories for any aidl sources of modules
// that depend on this module, as well as to aidl for this module.
Export_include_dirs []string
+
+ // whether to generate traces (for systrace) for this interface
+ Generate_traces *bool
}
// If true, export a copy of the module as a -hostdex module for host testing.
@@ -559,6 +561,10 @@ func (j *Module) aidlFlags(ctx android.ModuleContext, aidlPreprocess android.Opt
flags = append(flags, "-I"+src.String())
}
+ if Bool(j.deviceProperties.Aidl.Generate_traces) {
+ flags = append(flags, "-t")
+ }
+
return flags
}
@@ -646,8 +652,6 @@ func (j *Module) collectDeps(ctx android.ModuleContext) deps {
}
case kotlinStdlibTag:
deps.kotlinStdlib = dep.HeaderJars()
- default:
- panic(fmt.Errorf("unknown dependency %q for %q", otherName, ctx.ModuleName()))
}
deps.aidlIncludeDirs = append(deps.aidlIncludeDirs, dep.AidlIncludeDirs()...)