01d31bdc98
This reverts commit c6a321e4de
.
Original commit broke whe building sdk/ndk in postsubmit because of
missing target arch.
See: https://android-build.corp.google.com/artifact/submitted/11914755/mainline_modules_sdks-trunk_staging-userdebug/latest/view/logs%2Fbuild_error.log
Reapplying originaly commit and adding fix in patchest.
Test: DIST_DIR=/usr/local/google/dist/bug TARGET_RELEASE=trunk_staging TARGET_BUILD_VARIANT=userdebug UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true packages/modules/common/build/mainline_modules_sdks.sh
Test: m general-tests
Change-Id: Id844feb7ff9750bcd5af890a9fd26f7342344965
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
package tradefed
|
|
|
|
import (
|
|
"android/soong/android"
|
|
|
|
"github.com/google/blueprint"
|
|
)
|
|
|
|
// Data that test_module_config[_host] modules types will need from
|
|
// their dependencies to write out build rules and AndroidMkEntries.
|
|
type BaseTestProviderData struct {
|
|
// data files and apps for android_test
|
|
InstalledFiles android.Paths
|
|
// apk for android_test
|
|
OutputFile android.Path
|
|
// Either handwritten or generated TF xml.
|
|
TestConfig android.Path
|
|
// Other modules we require to be installed to run tests. We expect base to build them.
|
|
HostRequiredModuleNames []string
|
|
RequiredModuleNames []string
|
|
// List of test suites base uses.
|
|
TestSuites []string
|
|
// True indicates the base modules is built for Host.
|
|
IsHost bool
|
|
// Base's sdk version for AndroidMkEntries, generally only used for Host modules.
|
|
LocalSdkVersion string
|
|
// Base's certificate for AndroidMkEntries, generally only used for device modules.
|
|
LocalCertificate string
|
|
// Indicates if the base module was a unit test.
|
|
IsUnitTest bool
|
|
}
|
|
|
|
var BaseTestProviderKey = blueprint.NewProvider[BaseTestProviderData]()
|