Validate aconfig libs are built with the correct modes.

Bug: 323071835
Test: Unit tests and manual tests.
Change-Id: I32de90826c7c8bb4d8495608e959d554820ab9a2
This commit is contained in:
Yu Liu
2024-03-05 00:36:31 +00:00
parent eefca7373c
commit 67a28425a7
16 changed files with 696 additions and 32 deletions

View File

@@ -18,7 +18,6 @@ package android
// product variables necessary for soong_build's operation.
import (
"android/soong/shared"
"encoding/json"
"fmt"
"os"
@@ -30,6 +29,8 @@ import (
"sync"
"unicode"
"android/soong/shared"
"github.com/google/blueprint"
"github.com/google/blueprint/bootstrap"
"github.com/google/blueprint/pathtools"
@@ -1932,6 +1933,10 @@ func (c *deviceConfig) GenerateAidlNdkPlatformBackend() bool {
return c.config.productVariables.GenerateAidlNdkPlatformBackend
}
func (c *deviceConfig) AconfigContainerValidation() string {
return c.config.productVariables.AconfigContainerValidation
}
func (c *config) IgnorePrefer32OnDevice() bool {
return c.productVariables.IgnorePrefer32OnDevice
}