Merge "Add an __ANDROID_RAMDISK__ preprocessor define."
This commit is contained in:
commit
7309742728
1 changed files with 4 additions and 0 deletions
|
@ -406,6 +406,10 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
|
||||||
flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_RECOVERY__")
|
flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_RECOVERY__")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ctx.inRecovery() || ctx.inRamdisk() || ctx.inVendorRamdisk() {
|
||||||
|
flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_RAMDISK__")
|
||||||
|
}
|
||||||
|
|
||||||
if ctx.apexVariationName() != "" {
|
if ctx.apexVariationName() != "" {
|
||||||
flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_APEX__")
|
flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_APEX__")
|
||||||
if ctx.Device() {
|
if ctx.Device() {
|
||||||
|
|
Loading…
Reference in a new issue