Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  system_server_zip.go   Sprache: unbekannt

 
Spracherkennung für: .go vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

package dexpreopt

import "android/soong/android"

func init() {
 android.InitRegistrationContext.RegisterParallelSingletonType("system_server_zip_singleton", systemServerZipSingletonFactory)
}

func systemServerZipSingletonFactory() android.Singleton {
 return &systemServerZipSingleton{}
}

type systemServerZipSingleton struct{}

func (s *systemServerZipSingleton) GenerateBuildActions(ctx android.SingletonContext) {
 global := GetGlobalConfig(ctx)
 if global.DisablePreopt || global.OnlyPreoptArtBootImage {
  return
 }

 systemServerDexjarsDir := android.PathForOutput(ctx, SystemServerDexjarsDir)

 out := android.PathForOutput(ctx, "system_server.zip")
 builder := android.NewRuleBuilder(pctx, ctx).SandboxDisabled()
 cmd := builder.Command().BuiltTool("soong_zip").
  FlagWithOutput("-o ", out).
  FlagWithArg("-C ", systemServerDexjarsDir.String())

 for i := range global.SystemServerJars.Len() {
  jar := global.SystemServerJars.Jar(i) + ".jar"
  cmd.FlagWithInput("-f ", systemServerDexjarsDir.Join(ctx, jar))
 }
 for i := range global.StandaloneSystemServerJars.Len() {
  jar := global.StandaloneSystemServerJars.Jar(i) + ".jar"
  cmd.FlagWithInput("-f ", systemServerDexjarsDir.Join(ctx, jar))
 }
 for i := range global.ApexSystemServerJars.Len() {
  jar := global.ApexSystemServerJars.Jar(i) + ".jar"
  cmd.FlagWithInput("-f ", systemServerDexjarsDir.Join(ctx, jar))
 }
 for i := range global.ApexStandaloneSystemServerJars.Len() {
  jar := global.ApexStandaloneSystemServerJars.Jar(i) + ".jar"
  cmd.FlagWithInput("-f ", systemServerDexjarsDir.Join(ctx, jar))
 }

 builder.Build("system_server_zip", "building system_server.zip")

 ctx.DistForGoal("droidcore", out)
}

[Dauer der Verarbeitung: 0.20 Sekunden, vorverarbeitet 2026-06-28]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002