Revert "Add __ANDROID_APEX_<NAME>__ for apex variants"
This reverts commit d29e551efd
.
Reason for revert: some targets are broken
Bug: 142773030
Change-Id: I50ac6842ab8aa572c11262ee0ec965ddbe903b0e
This commit is contained in:
@@ -321,9 +321,7 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
|
||||
}
|
||||
|
||||
if ctx.apexName() != "" {
|
||||
// TODO(b/142582178): remove the value for __ANDROID_APEX__
|
||||
flags.GlobalFlags = append(flags.GlobalFlags, "-D__ANDROID_APEX__="+ctx.apexName())
|
||||
flags.GlobalFlags = append(flags.GlobalFlags, "-D__ANDROID_APEX_"+makeDefineString(ctx.apexName())+"__")
|
||||
}
|
||||
|
||||
instructionSet := String(compiler.Properties.Instruction_set)
|
||||
@@ -531,12 +529,6 @@ func (compiler *baseCompiler) hasSrcExt(ext string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// makeDefineString transforms a name of an APEX module into a value to be used as value for C define
|
||||
// For example, com.android.foo => COM_ANDROID_FOO
|
||||
func makeDefineString(name string) string {
|
||||
return strings.ReplaceAll(strings.ToUpper(name), ".", "_")
|
||||
}
|
||||
|
||||
var gnuToCReplacer = strings.NewReplacer("gnu", "c")
|
||||
|
||||
func ndkPathDeps(ctx ModuleContext) android.Paths {
|
||||
|
Reference in New Issue
Block a user