2021-04-29 12:50:26 +02:00
|
|
|
// Copyright 2021 Google Inc. All rights reserved.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
package java
|
|
|
|
|
|
|
|
import (
|
|
|
|
"android/soong/android"
|
2021-05-07 00:38:10 +02:00
|
|
|
"android/soong/dexpreopt"
|
2021-05-26 03:16:02 +02:00
|
|
|
|
2021-05-17 22:13:44 +02:00
|
|
|
"github.com/google/blueprint"
|
2021-04-29 12:50:26 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
registerSystemserverClasspathBuildComponents(android.InitRegistrationContext)
|
2021-09-26 11:02:17 +02:00
|
|
|
|
2022-05-13 15:12:19 +02:00
|
|
|
android.RegisterSdkMemberType(SystemServerClasspathFragmentSdkMemberType)
|
2021-04-29 12:50:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func registerSystemserverClasspathBuildComponents(ctx android.RegistrationContext) {
|
|
|
|
ctx.RegisterModuleType("platform_systemserverclasspath", platformSystemServerClasspathFactory)
|
2021-05-13 20:01:52 +02:00
|
|
|
ctx.RegisterModuleType("systemserverclasspath_fragment", systemServerClasspathFactory)
|
2021-09-26 05:52:19 +02:00
|
|
|
ctx.RegisterModuleType("prebuilt_systemserverclasspath_fragment", prebuiltSystemServerClasspathModuleFactory)
|
2021-04-29 12:50:26 +02:00
|
|
|
}
|
|
|
|
|
2022-05-13 15:12:19 +02:00
|
|
|
var SystemServerClasspathFragmentSdkMemberType = &systemServerClasspathFragmentMemberType{
|
|
|
|
SdkMemberTypeBase: android.SdkMemberTypeBase{
|
|
|
|
PropertyName: "systemserverclasspath_fragments",
|
|
|
|
SupportsSdk: true,
|
|
|
|
|
|
|
|
// Support for adding systemserverclasspath_fragments to the sdk snapshot was only added in
|
|
|
|
// Tiramisu.
|
|
|
|
SupportedBuildReleaseSpecification: "Tiramisu+",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2021-04-29 12:50:26 +02:00
|
|
|
type platformSystemServerClasspathModule struct {
|
|
|
|
android.ModuleBase
|
|
|
|
|
|
|
|
ClasspathFragmentBase
|
|
|
|
}
|
|
|
|
|
|
|
|
func platformSystemServerClasspathFactory() android.Module {
|
|
|
|
m := &platformSystemServerClasspathModule{}
|
|
|
|
initClasspathFragment(m, SYSTEMSERVERCLASSPATH)
|
|
|
|
android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
|
|
|
|
return m
|
|
|
|
}
|
|
|
|
|
2021-05-13 20:01:52 +02:00
|
|
|
func (p *platformSystemServerClasspathModule) AndroidMkEntries() (entries []android.AndroidMkEntries) {
|
|
|
|
return p.classpathFragmentBase().androidMkEntries()
|
2021-04-29 12:50:26 +02:00
|
|
|
}
|
|
|
|
|
2021-05-13 20:01:52 +02:00
|
|
|
func (p *platformSystemServerClasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
2021-06-15 18:49:10 +02:00
|
|
|
configuredJars := p.configuredJars(ctx)
|
|
|
|
classpathJars := configuredJarListToClasspathJars(ctx, configuredJars, p.classpathType)
|
2021-10-29 21:46:45 +02:00
|
|
|
standaloneConfiguredJars := p.standaloneConfiguredJars(ctx)
|
|
|
|
standaloneClasspathJars := configuredJarListToClasspathJars(ctx, standaloneConfiguredJars, STANDALONE_SYSTEMSERVER_JARS)
|
2021-12-14 19:54:06 +01:00
|
|
|
configuredJars = configuredJars.AppendList(&standaloneConfiguredJars)
|
2021-10-29 21:46:45 +02:00
|
|
|
classpathJars = append(classpathJars, standaloneClasspathJars...)
|
2021-06-15 18:49:10 +02:00
|
|
|
p.classpathFragmentBase().generateClasspathProtoBuildActions(ctx, configuredJars, classpathJars)
|
2021-05-07 00:38:10 +02:00
|
|
|
}
|
|
|
|
|
2021-06-15 17:21:17 +02:00
|
|
|
func (p *platformSystemServerClasspathModule) configuredJars(ctx android.ModuleContext) android.ConfiguredJarList {
|
2021-06-15 18:49:10 +02:00
|
|
|
// TODO(satayev): include any apex jars that don't populate their classpath proto config.
|
|
|
|
return dexpreopt.GetGlobalConfig(ctx).SystemServerJars
|
2021-04-29 12:50:26 +02:00
|
|
|
}
|
2021-05-13 20:01:52 +02:00
|
|
|
|
2021-10-29 21:46:45 +02:00
|
|
|
func (p *platformSystemServerClasspathModule) standaloneConfiguredJars(ctx android.ModuleContext) android.ConfiguredJarList {
|
|
|
|
return dexpreopt.GetGlobalConfig(ctx).StandaloneSystemServerJars
|
|
|
|
}
|
|
|
|
|
2021-05-17 22:35:26 +02:00
|
|
|
type SystemServerClasspathModule struct {
|
2021-05-13 20:01:52 +02:00
|
|
|
android.ModuleBase
|
2021-05-17 22:35:26 +02:00
|
|
|
android.ApexModuleBase
|
2021-09-26 11:02:17 +02:00
|
|
|
android.SdkBase
|
2021-05-13 20:01:52 +02:00
|
|
|
|
|
|
|
ClasspathFragmentBase
|
2021-05-17 22:13:44 +02:00
|
|
|
|
|
|
|
properties systemServerClasspathFragmentProperties
|
2021-06-07 16:49:13 +02:00
|
|
|
|
|
|
|
// Collect the module directory for IDE info in java/jdeps.go.
|
|
|
|
modulePaths []string
|
2021-05-17 22:13:44 +02:00
|
|
|
}
|
|
|
|
|
2021-05-17 22:35:26 +02:00
|
|
|
func (s *SystemServerClasspathModule) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVersion android.ApiLevel) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-05-17 22:13:44 +02:00
|
|
|
type systemServerClasspathFragmentProperties struct {
|
2021-10-29 21:46:45 +02:00
|
|
|
// List of system_server classpath jars, could be either java_library, or java_sdk_library.
|
2021-05-17 22:13:44 +02:00
|
|
|
//
|
|
|
|
// The order of this list matters as it is the order that is used in the SYSTEMSERVERCLASSPATH.
|
|
|
|
Contents []string
|
2021-10-29 21:46:45 +02:00
|
|
|
|
|
|
|
// List of jars that system_server loads dynamically using separate classloaders.
|
|
|
|
//
|
|
|
|
// The order does not matter.
|
|
|
|
Standalone_contents []string
|
2021-05-13 20:01:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func systemServerClasspathFactory() android.Module {
|
2021-05-17 22:35:26 +02:00
|
|
|
m := &SystemServerClasspathModule{}
|
2021-05-17 22:13:44 +02:00
|
|
|
m.AddProperties(&m.properties)
|
2021-05-17 22:35:26 +02:00
|
|
|
android.InitApexModule(m)
|
2021-09-26 11:02:17 +02:00
|
|
|
android.InitSdkAwareModule(m)
|
2021-05-13 20:01:52 +02:00
|
|
|
initClasspathFragment(m, SYSTEMSERVERCLASSPATH)
|
|
|
|
android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
|
|
|
|
return m
|
|
|
|
}
|
|
|
|
|
2021-05-17 22:35:26 +02:00
|
|
|
func (s *SystemServerClasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
2021-10-29 21:46:45 +02:00
|
|
|
if len(s.properties.Contents) == 0 && len(s.properties.Standalone_contents) == 0 {
|
|
|
|
ctx.PropertyErrorf("contents", "Either contents or standalone_contents needs to be non-empty")
|
2021-05-17 22:13:44 +02:00
|
|
|
}
|
|
|
|
|
2021-06-15 18:49:10 +02:00
|
|
|
configuredJars := s.configuredJars(ctx)
|
|
|
|
classpathJars := configuredJarListToClasspathJars(ctx, configuredJars, s.classpathType)
|
2021-10-29 21:46:45 +02:00
|
|
|
standaloneConfiguredJars := s.standaloneConfiguredJars(ctx)
|
|
|
|
standaloneClasspathJars := configuredJarListToClasspathJars(ctx, standaloneConfiguredJars, STANDALONE_SYSTEMSERVER_JARS)
|
2021-12-14 19:54:06 +01:00
|
|
|
configuredJars = configuredJars.AppendList(&standaloneConfiguredJars)
|
2021-10-29 21:46:45 +02:00
|
|
|
classpathJars = append(classpathJars, standaloneClasspathJars...)
|
2021-06-15 18:49:10 +02:00
|
|
|
s.classpathFragmentBase().generateClasspathProtoBuildActions(ctx, configuredJars, classpathJars)
|
2021-06-07 16:49:13 +02:00
|
|
|
|
|
|
|
// Collect the module directory for IDE info in java/jdeps.go.
|
|
|
|
s.modulePaths = append(s.modulePaths, ctx.ModuleDir())
|
2021-05-13 20:01:52 +02:00
|
|
|
}
|
|
|
|
|
2021-06-15 17:21:17 +02:00
|
|
|
func (s *SystemServerClasspathModule) configuredJars(ctx android.ModuleContext) android.ConfiguredJarList {
|
2021-05-20 22:33:41 +02:00
|
|
|
global := dexpreopt.GetGlobalConfig(ctx)
|
|
|
|
|
2021-07-21 15:23:52 +02:00
|
|
|
possibleUpdatableModules := gatherPossibleApexModuleNamesAndStems(ctx, s.properties.Contents, systemServerClasspathFragmentContentDepTag)
|
2021-08-06 14:20:28 +02:00
|
|
|
jars, unknown := global.ApexSystemServerJars.Filter(possibleUpdatableModules)
|
|
|
|
// TODO(satayev): remove geotz ssc_fragment, since geotz is not part of SSCP anymore.
|
|
|
|
_, unknown = android.RemoveFromList("geotz", unknown)
|
2021-10-18 17:42:23 +02:00
|
|
|
// This module only exists in car products.
|
|
|
|
// So ignore it even if it is not in PRODUCT_APEX_SYSTEM_SERVER_JARS.
|
|
|
|
// TODO(b/203233647): Add better mechanism to make it optional.
|
|
|
|
_, unknown = android.RemoveFromList("car-frameworks-service-module", unknown)
|
2021-10-11 23:47:13 +02:00
|
|
|
|
2021-11-12 16:21:43 +01:00
|
|
|
// This module is optional, so it is not present in all products.
|
|
|
|
// (See PRODUCT_ISOLATED_COMPILATION_ENABLED.)
|
|
|
|
// So ignore it even if it is not in PRODUCT_APEX_SYSTEM_SERVER_JARS.
|
|
|
|
// TODO(b/203233647): Add better mechanism to make it optional.
|
|
|
|
_, unknown = android.RemoveFromList("service-compos", unknown)
|
|
|
|
|
2021-10-11 23:47:13 +02:00
|
|
|
// TODO(satayev): for apex_test we want to include all contents unconditionally to classpaths
|
|
|
|
// config. However, any test specific jars would not be present in ApexSystemServerJars. Instead,
|
|
|
|
// we should check if we are creating a config for apex_test via ApexInfo and amend the values.
|
|
|
|
// This is an exception to support end-to-end test for ApexdUnitTests, until such support exists.
|
|
|
|
if android.InList("test_service-apexd", possibleUpdatableModules) {
|
|
|
|
jars = jars.Append("com.android.apex.test_package", "test_service-apexd")
|
|
|
|
} else if global.ApexSystemServerJars.Len() > 0 && len(unknown) > 0 && !android.IsModuleInVersionedSdk(ctx.Module()) {
|
|
|
|
// For non test apexes, make sure that all contents are actually declared in make.
|
2021-10-04 16:42:53 +02:00
|
|
|
ctx.ModuleErrorf("%s in contents must also be declared in PRODUCT_APEX_SYSTEM_SERVER_JARS", unknown)
|
2021-08-06 14:20:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return jars
|
2021-05-13 20:01:52 +02:00
|
|
|
}
|
2021-05-17 22:13:44 +02:00
|
|
|
|
2021-10-29 21:46:45 +02:00
|
|
|
func (s *SystemServerClasspathModule) standaloneConfiguredJars(ctx android.ModuleContext) android.ConfiguredJarList {
|
|
|
|
global := dexpreopt.GetGlobalConfig(ctx)
|
|
|
|
|
|
|
|
possibleUpdatableModules := gatherPossibleApexModuleNamesAndStems(ctx, s.properties.Standalone_contents, systemServerClasspathFragmentContentDepTag)
|
|
|
|
jars, _ := global.ApexStandaloneSystemServerJars.Filter(possibleUpdatableModules)
|
|
|
|
|
|
|
|
// TODO(jiakaiz): add a check to ensure that the contents are declared in make.
|
|
|
|
|
|
|
|
return jars
|
|
|
|
}
|
|
|
|
|
2021-05-17 22:13:44 +02:00
|
|
|
type systemServerClasspathFragmentContentDependencyTag struct {
|
|
|
|
blueprint.BaseDependencyTag
|
|
|
|
}
|
|
|
|
|
2021-09-07 15:52:48 +02:00
|
|
|
// The systemserverclasspath_fragment contents must never depend on prebuilts.
|
|
|
|
func (systemServerClasspathFragmentContentDependencyTag) ReplaceSourceWithPrebuilt() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2021-09-26 11:02:17 +02:00
|
|
|
// SdkMemberType causes dependencies added with this tag to be automatically added to the sdk as if
|
|
|
|
// they were specified using java_systemserver_libs or java_sdk_libs.
|
|
|
|
func (b systemServerClasspathFragmentContentDependencyTag) SdkMemberType(child android.Module) android.SdkMemberType {
|
|
|
|
// If the module is a java_sdk_library then treat it as if it was specified in the java_sdk_libs
|
|
|
|
// property, otherwise treat if it was specified in the java_systemserver_libs property.
|
|
|
|
if javaSdkLibrarySdkMemberType.IsInstance(child) {
|
|
|
|
return javaSdkLibrarySdkMemberType
|
|
|
|
}
|
|
|
|
|
|
|
|
return javaSystemserverLibsSdkMemberType
|
|
|
|
}
|
|
|
|
|
|
|
|
func (b systemServerClasspathFragmentContentDependencyTag) ExportMember() bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
2021-05-26 03:16:02 +02:00
|
|
|
// Contents of system server fragments in an apex are considered to be directly in the apex, as if
|
|
|
|
// they were listed in java_libs.
|
|
|
|
func (systemServerClasspathFragmentContentDependencyTag) CopyDirectlyInAnyApex() {}
|
|
|
|
|
2021-09-26 05:54:25 +02:00
|
|
|
// Contents of system server fragments require files from prebuilt apex files.
|
|
|
|
func (systemServerClasspathFragmentContentDependencyTag) RequiresFilesFromPrebuiltApex() {}
|
|
|
|
|
2021-09-07 15:52:48 +02:00
|
|
|
var _ android.ReplaceSourceWithPrebuilt = systemServerClasspathFragmentContentDepTag
|
2021-09-26 11:02:17 +02:00
|
|
|
var _ android.SdkMemberDependencyTag = systemServerClasspathFragmentContentDepTag
|
2021-05-26 03:16:02 +02:00
|
|
|
var _ android.CopyDirectlyInAnyApexTag = systemServerClasspathFragmentContentDepTag
|
2021-09-26 05:54:25 +02:00
|
|
|
var _ android.RequiresFilesFromPrebuiltApexTag = systemServerClasspathFragmentContentDepTag
|
2021-05-26 03:16:02 +02:00
|
|
|
|
2021-05-17 22:13:44 +02:00
|
|
|
// The tag used for the dependency between the systemserverclasspath_fragment module and its contents.
|
|
|
|
var systemServerClasspathFragmentContentDepTag = systemServerClasspathFragmentContentDependencyTag{}
|
|
|
|
|
|
|
|
func IsSystemServerClasspathFragmentContentDepTag(tag blueprint.DependencyTag) bool {
|
|
|
|
return tag == systemServerClasspathFragmentContentDepTag
|
|
|
|
}
|
|
|
|
|
2021-05-17 22:35:26 +02:00
|
|
|
func (s *SystemServerClasspathModule) ComponentDepsMutator(ctx android.BottomUpMutatorContext) {
|
2021-05-17 22:13:44 +02:00
|
|
|
module := ctx.Module()
|
2021-09-26 05:52:19 +02:00
|
|
|
_, isSourceModule := module.(*SystemServerClasspathModule)
|
2021-10-29 21:46:45 +02:00
|
|
|
var deps []string
|
|
|
|
deps = append(deps, s.properties.Contents...)
|
|
|
|
deps = append(deps, s.properties.Standalone_contents...)
|
2021-05-17 22:13:44 +02:00
|
|
|
|
2021-10-29 21:46:45 +02:00
|
|
|
for _, name := range deps {
|
2021-09-26 05:52:19 +02:00
|
|
|
// A systemserverclasspath_fragment must depend only on other source modules, while the
|
|
|
|
// prebuilt_systemserverclasspath_fragment_fragment must only depend on other prebuilt modules.
|
|
|
|
if !isSourceModule {
|
|
|
|
name = android.PrebuiltNameFromSource(name)
|
|
|
|
}
|
2021-05-17 22:13:44 +02:00
|
|
|
ctx.AddDependency(module, systemServerClasspathFragmentContentDepTag, name)
|
|
|
|
}
|
|
|
|
}
|
2021-06-07 16:49:13 +02:00
|
|
|
|
|
|
|
// Collect information for opening IDE project files in java/jdeps.go.
|
|
|
|
func (s *SystemServerClasspathModule) IDEInfo(dpInfo *android.IdeInfo) {
|
|
|
|
dpInfo.Deps = append(dpInfo.Deps, s.properties.Contents...)
|
2021-10-29 21:46:45 +02:00
|
|
|
dpInfo.Deps = append(dpInfo.Deps, s.properties.Standalone_contents...)
|
2021-06-07 16:49:13 +02:00
|
|
|
dpInfo.Paths = append(dpInfo.Paths, s.modulePaths...)
|
|
|
|
}
|
2021-09-26 05:52:19 +02:00
|
|
|
|
2021-09-26 11:02:17 +02:00
|
|
|
type systemServerClasspathFragmentMemberType struct {
|
|
|
|
android.SdkMemberTypeBase
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *systemServerClasspathFragmentMemberType) AddDependencies(ctx android.SdkDependencyContext, dependencyTag blueprint.DependencyTag, names []string) {
|
|
|
|
ctx.AddVariationDependencies(nil, dependencyTag, names...)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *systemServerClasspathFragmentMemberType) IsInstance(module android.Module) bool {
|
|
|
|
_, ok := module.(*SystemServerClasspathModule)
|
|
|
|
return ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *systemServerClasspathFragmentMemberType) AddPrebuiltModule(ctx android.SdkMemberContext, member android.SdkMember) android.BpModule {
|
|
|
|
return ctx.SnapshotBuilder().AddPrebuiltModule(member, "prebuilt_systemserverclasspath_fragment")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *systemServerClasspathFragmentMemberType) CreateVariantPropertiesStruct() android.SdkMemberProperties {
|
|
|
|
return &systemServerClasspathFragmentSdkMemberProperties{}
|
|
|
|
}
|
|
|
|
|
|
|
|
type systemServerClasspathFragmentSdkMemberProperties struct {
|
|
|
|
android.SdkMemberPropertiesBase
|
|
|
|
|
2021-10-29 21:46:45 +02:00
|
|
|
// List of system_server classpath jars, could be either java_library, or java_sdk_library.
|
|
|
|
//
|
|
|
|
// The order of this list matters as it is the order that is used in the SYSTEMSERVERCLASSPATH.
|
2021-09-26 11:02:17 +02:00
|
|
|
Contents []string
|
2021-10-29 21:46:45 +02:00
|
|
|
|
|
|
|
// List of jars that system_server loads dynamically using separate classloaders.
|
|
|
|
//
|
|
|
|
// The order does not matter.
|
|
|
|
Standalone_contents []string
|
2021-09-26 11:02:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *systemServerClasspathFragmentSdkMemberProperties) PopulateFromVariant(ctx android.SdkMemberContext, variant android.Module) {
|
|
|
|
module := variant.(*SystemServerClasspathModule)
|
|
|
|
|
|
|
|
s.Contents = module.properties.Contents
|
2021-10-29 21:46:45 +02:00
|
|
|
s.Standalone_contents = module.properties.Standalone_contents
|
2021-09-26 11:02:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *systemServerClasspathFragmentSdkMemberProperties) AddToPropertySet(ctx android.SdkMemberContext, propertySet android.BpPropertySet) {
|
|
|
|
builder := ctx.SnapshotBuilder()
|
|
|
|
requiredMemberDependency := builder.SdkMemberReferencePropertyTag(true)
|
|
|
|
|
|
|
|
if len(s.Contents) > 0 {
|
|
|
|
propertySet.AddPropertyWithTag("contents", s.Contents, requiredMemberDependency)
|
|
|
|
}
|
2021-10-29 21:46:45 +02:00
|
|
|
|
|
|
|
if len(s.Standalone_contents) > 0 {
|
|
|
|
propertySet.AddPropertyWithTag("standalone_contents", s.Standalone_contents, requiredMemberDependency)
|
|
|
|
}
|
2021-09-26 11:02:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var _ android.SdkMemberType = (*systemServerClasspathFragmentMemberType)(nil)
|
|
|
|
|
2021-09-26 05:52:19 +02:00
|
|
|
// A prebuilt version of the systemserverclasspath_fragment module.
|
|
|
|
type prebuiltSystemServerClasspathModule struct {
|
|
|
|
SystemServerClasspathModule
|
|
|
|
prebuilt android.Prebuilt
|
|
|
|
}
|
|
|
|
|
|
|
|
func (module *prebuiltSystemServerClasspathModule) Prebuilt() *android.Prebuilt {
|
|
|
|
return &module.prebuilt
|
|
|
|
}
|
|
|
|
|
|
|
|
func (module *prebuiltSystemServerClasspathModule) Name() string {
|
|
|
|
return module.prebuilt.Name(module.ModuleBase.Name())
|
|
|
|
}
|
|
|
|
|
2021-09-26 05:54:25 +02:00
|
|
|
func (module *prebuiltSystemServerClasspathModule) RequiredFilesFromPrebuiltApex(ctx android.BaseModuleContext) []string {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
var _ android.RequiredFilesFromPrebuiltApex = (*prebuiltSystemServerClasspathModule)(nil)
|
|
|
|
|
2021-09-26 05:52:19 +02:00
|
|
|
func prebuiltSystemServerClasspathModuleFactory() android.Module {
|
|
|
|
m := &prebuiltSystemServerClasspathModule{}
|
|
|
|
m.AddProperties(&m.properties)
|
|
|
|
// This doesn't actually have any prebuilt files of its own so pass a placeholder for the srcs
|
|
|
|
// array.
|
|
|
|
android.InitPrebuiltModule(m, &[]string{"placeholder"})
|
|
|
|
android.InitApexModule(m)
|
2021-09-26 11:02:17 +02:00
|
|
|
android.InitSdkAwareModule(m)
|
2021-09-26 05:52:19 +02:00
|
|
|
android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
|
|
|
|
return m
|
|
|
|
}
|