Merge "Add trace flag for cpp/Java AIDL generation." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4ed6f97d8f
@@ -106,6 +106,9 @@ type BaseCompilerProperties struct {
|
|||||||
// list of directories relative to the Blueprints file that will
|
// list of directories relative to the Blueprints file that will
|
||||||
// be added to the aidl include paths.
|
// be added to the aidl include paths.
|
||||||
Local_include_dirs []string
|
Local_include_dirs []string
|
||||||
|
|
||||||
|
// whether to generate traces (for systrace) for this interface
|
||||||
|
Generate_traces *bool
|
||||||
}
|
}
|
||||||
|
|
||||||
Renderscript struct {
|
Renderscript struct {
|
||||||
@@ -477,6 +480,10 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
|
|||||||
flags.aidlFlags = append(flags.aidlFlags, includeDirsToFlags(rootAidlIncludeDirs))
|
flags.aidlFlags = append(flags.aidlFlags, includeDirsToFlags(rootAidlIncludeDirs))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if Bool(compiler.Properties.Aidl.Generate_traces) {
|
||||||
|
flags.aidlFlags = append(flags.aidlFlags, "-t")
|
||||||
|
}
|
||||||
|
|
||||||
flags.GlobalFlags = append(flags.GlobalFlags,
|
flags.GlobalFlags = append(flags.GlobalFlags,
|
||||||
"-I"+android.PathForModuleGen(ctx, "aidl").String())
|
"-I"+android.PathForModuleGen(ctx, "aidl").String())
|
||||||
}
|
}
|
||||||
|
@@ -175,6 +175,9 @@ type CompilerDeviceProperties struct {
|
|||||||
// directories that should be added as include directories for any aidl sources of modules
|
// 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.
|
// that depend on this module, as well as to aidl for this module.
|
||||||
Export_include_dirs []string
|
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.
|
// 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())
|
flags = append(flags, "-I"+src.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if Bool(j.deviceProperties.Aidl.Generate_traces) {
|
||||||
|
flags = append(flags, "-t")
|
||||||
|
}
|
||||||
|
|
||||||
return flags
|
return flags
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user