Merge "Add trace flag for cpp/Java AIDL generation." into pi-dev

This commit is contained in:
Martijn Coenen
2018-03-28 06:53:35 +00:00
committed by Android (Google) Code Review
2 changed files with 14 additions and 0 deletions

View File

@@ -175,6 +175,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.
@@ -534,6 +537,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
}