2018-11-12 19:13:39 +01:00
|
|
|
// Copyright 2018 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 dexpreopt
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
2020-01-10 19:51:04 +01:00
|
|
|
"io/ioutil"
|
2019-02-15 19:39:37 +01:00
|
|
|
"strings"
|
2019-02-12 00:11:14 +01:00
|
|
|
|
|
|
|
"android/soong/android"
|
2018-11-12 19:13:39 +01:00
|
|
|
)
|
|
|
|
|
2020-01-07 00:11:37 +01:00
|
|
|
// GlobalConfig stores the configuration for dex preopting. The fields are set
|
|
|
|
// from product variables via dex_preopt_config.mk, except for SoongConfig
|
|
|
|
// which come from CreateGlobalSoongConfig.
|
2018-11-12 19:13:39 +01:00
|
|
|
type GlobalConfig struct {
|
2019-02-15 19:39:37 +01:00
|
|
|
DisablePreopt bool // disable preopt for all modules
|
2018-11-12 19:13:39 +01:00
|
|
|
DisablePreoptModules []string // modules with preopt disabled by product-specific config
|
|
|
|
|
|
|
|
OnlyPreoptBootImageAndSystemServer bool // only preopt jars in the boot image or system server
|
|
|
|
|
2019-02-22 16:34:40 +01:00
|
|
|
GenerateApexImage bool // generate an extra boot image only containing jars from the runtime apex
|
2019-04-04 19:45:20 +02:00
|
|
|
UseApexImage bool // use the apex image by default
|
2019-02-22 16:34:40 +01:00
|
|
|
|
2018-11-12 19:13:39 +01:00
|
|
|
HasSystemOther bool // store odex files that match PatternsOnSystemOther on the system_other partition
|
|
|
|
PatternsOnSystemOther []string // patterns (using '%' to denote a prefix match) to put odex on the system_other partition
|
|
|
|
|
2019-02-15 19:39:37 +01:00
|
|
|
DisableGenerateProfile bool // don't generate profiles
|
|
|
|
ProfileDir string // directory to find profiles in
|
2018-11-12 19:13:39 +01:00
|
|
|
|
2019-11-27 18:37:46 +01:00
|
|
|
BootJars []string // modules for jars that form the boot class path
|
|
|
|
UpdatableBootJars []string // jars within apex that form the boot class path
|
2019-02-11 23:21:24 +01:00
|
|
|
|
2019-11-08 11:54:21 +01:00
|
|
|
ArtApexJars []string // modules for jars that are in the ART APEX
|
2018-12-19 18:57:57 +01:00
|
|
|
|
2019-11-21 21:36:53 +01:00
|
|
|
SystemServerJars []string // jars that form the system server
|
|
|
|
SystemServerApps []string // apps that are loaded into system server
|
|
|
|
UpdatableSystemServerJars []string // jars within apex that are loaded into system server
|
|
|
|
SpeedApps []string // apps that should be speed optimized
|
2018-11-12 19:13:39 +01:00
|
|
|
|
|
|
|
PreoptFlags []string // global dex2oat flags that should be used if no module-specific dex2oat flags are specified
|
|
|
|
|
|
|
|
DefaultCompilerFilter string // default compiler filter to pass to dex2oat, overridden by --compiler-filter= in module-specific dex2oat flags
|
|
|
|
SystemServerCompilerFilter string // default compiler filter to pass to dex2oat for system server jars
|
|
|
|
|
2019-10-18 15:51:38 +02:00
|
|
|
GenerateDMFiles bool // generate Dex Metadata files
|
2018-11-12 19:13:39 +01:00
|
|
|
|
|
|
|
NoDebugInfo bool // don't generate debug info by default
|
2019-04-29 18:33:50 +02:00
|
|
|
DontResolveStartupStrings bool // don't resolve string literals loaded during application startup.
|
2018-11-12 19:13:39 +01:00
|
|
|
AlwaysSystemServerDebugInfo bool // always generate mini debug info for system server modules (overrides NoDebugInfo=true)
|
|
|
|
NeverSystemServerDebugInfo bool // never generate mini debug info for system server modules (overrides NoDebugInfo=false)
|
|
|
|
AlwaysOtherDebugInfo bool // always generate mini debug info for non-system server modules (overrides NoDebugInfo=true)
|
|
|
|
NeverOtherDebugInfo bool // never generate mini debug info for non-system server modules (overrides NoDebugInfo=true)
|
|
|
|
|
|
|
|
IsEng bool // build is a eng variant
|
|
|
|
SanitizeLite bool // build is the second phase of a SANITIZE_LITE build
|
|
|
|
|
|
|
|
DefaultAppImages bool // build app images (TODO: .art files?) by default
|
|
|
|
|
2019-02-11 23:21:24 +01:00
|
|
|
Dex2oatXmx string // max heap size for dex2oat
|
|
|
|
Dex2oatXms string // initial heap size for dex2oat
|
2018-11-12 19:13:39 +01:00
|
|
|
|
|
|
|
EmptyDirectory string // path to an empty directory
|
|
|
|
|
2019-02-12 00:11:14 +01:00
|
|
|
CpuVariant map[android.ArchType]string // cpu variant for each architecture
|
|
|
|
InstructionSetFeatures map[android.ArchType]string // instruction set for each architecture
|
2018-11-12 19:13:39 +01:00
|
|
|
|
2019-02-11 23:21:24 +01:00
|
|
|
// Only used for boot image
|
2019-06-26 19:01:36 +02:00
|
|
|
DirtyImageObjects android.OptionalPath // path to a dirty-image-objects file
|
|
|
|
BootImageProfiles android.Paths // path to a boot-image-profile.txt file
|
|
|
|
BootFlags string // extra flags to pass to dex2oat for the boot image
|
|
|
|
Dex2oatImageXmx string // max heap size for dex2oat for the boot image
|
|
|
|
Dex2oatImageXms string // initial heap size for dex2oat for the boot image
|
2019-02-11 23:21:24 +01:00
|
|
|
|
2020-01-07 00:11:37 +01:00
|
|
|
SoongConfig GlobalSoongConfig // settings read from dexpreopt_soong.config
|
2018-11-12 19:13:39 +01:00
|
|
|
}
|
|
|
|
|
2020-01-07 00:11:37 +01:00
|
|
|
// GlobalSoongConfig contains the global config that is generated from Soong,
|
|
|
|
// stored in dexpreopt_soong.config.
|
|
|
|
type GlobalSoongConfig struct {
|
|
|
|
// Paths to tools possibly used by the generated commands.
|
|
|
|
Profman android.Path
|
|
|
|
Dex2oat android.Path
|
|
|
|
Aapt android.Path
|
|
|
|
SoongZip android.Path
|
|
|
|
Zip2zip android.Path
|
|
|
|
ManifestCheck android.Path
|
2019-05-22 19:21:09 +02:00
|
|
|
ConstructContext android.Path
|
2018-11-12 19:13:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ModuleConfig struct {
|
2019-01-29 22:00:33 +01:00
|
|
|
Name string
|
|
|
|
DexLocation string // dex location on device
|
2019-02-15 19:39:37 +01:00
|
|
|
BuildPath android.OutputPath
|
|
|
|
DexPath android.Path
|
2019-05-22 19:21:09 +02:00
|
|
|
ManifestPath android.Path
|
2019-01-29 22:00:33 +01:00
|
|
|
UncompressedDex bool
|
|
|
|
HasApkLibraries bool
|
|
|
|
PreoptFlags []string
|
2018-11-12 19:13:39 +01:00
|
|
|
|
2019-02-15 19:39:37 +01:00
|
|
|
ProfileClassListing android.OptionalPath
|
2018-11-12 19:13:39 +01:00
|
|
|
ProfileIsTextListing bool
|
2019-07-24 14:19:29 +02:00
|
|
|
ProfileBootListing android.OptionalPath
|
2018-11-12 19:13:39 +01:00
|
|
|
|
2019-05-16 21:28:22 +02:00
|
|
|
EnforceUsesLibraries bool
|
|
|
|
PresentOptionalUsesLibraries []string
|
|
|
|
UsesLibraries []string
|
|
|
|
LibraryPaths map[string]android.Path
|
2018-11-12 19:13:39 +01:00
|
|
|
|
2019-11-08 11:54:21 +01:00
|
|
|
Archs []android.ArchType
|
|
|
|
DexPreoptImages []android.Path
|
|
|
|
DexPreoptImagesDeps []android.OutputPaths
|
|
|
|
DexPreoptImageLocations []string
|
2018-11-12 19:13:39 +01:00
|
|
|
|
2019-02-15 19:39:37 +01:00
|
|
|
PreoptBootClassPathDexFiles android.Paths // file paths of boot class path files
|
|
|
|
PreoptBootClassPathDexLocations []string // virtual locations of boot class path files
|
2019-02-11 23:21:24 +01:00
|
|
|
|
2018-11-12 19:13:39 +01:00
|
|
|
PreoptExtractedApk bool // Overrides OnlyPreoptModules
|
|
|
|
|
|
|
|
NoCreateAppImage bool
|
|
|
|
ForceCreateAppImage bool
|
|
|
|
|
|
|
|
PresignedPrebuilt bool
|
|
|
|
}
|
|
|
|
|
2020-01-07 00:11:37 +01:00
|
|
|
type globalSoongConfigSingleton struct{}
|
|
|
|
|
|
|
|
var pctx = android.NewPackageContext("android/soong/dexpreopt")
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
pctx.Import("android/soong/android")
|
|
|
|
android.RegisterSingletonType("dexpreopt-soong-config", func() android.Singleton {
|
|
|
|
return &globalSoongConfigSingleton{}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2019-02-15 19:39:37 +01:00
|
|
|
func constructPath(ctx android.PathContext, path string) android.Path {
|
|
|
|
buildDirPrefix := ctx.Config().BuildDir() + "/"
|
|
|
|
if path == "" {
|
|
|
|
return nil
|
|
|
|
} else if strings.HasPrefix(path, buildDirPrefix) {
|
|
|
|
return android.PathForOutput(ctx, strings.TrimPrefix(path, buildDirPrefix))
|
|
|
|
} else {
|
|
|
|
return android.PathForSource(ctx, path)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func constructPaths(ctx android.PathContext, paths []string) android.Paths {
|
|
|
|
var ret android.Paths
|
|
|
|
for _, path := range paths {
|
|
|
|
ret = append(ret, constructPath(ctx, path))
|
|
|
|
}
|
|
|
|
return ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func constructPathMap(ctx android.PathContext, paths map[string]string) map[string]android.Path {
|
|
|
|
ret := map[string]android.Path{}
|
|
|
|
for key, path := range paths {
|
|
|
|
ret[key] = constructPath(ctx, path)
|
|
|
|
}
|
|
|
|
return ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func constructWritablePath(ctx android.PathContext, path string) android.WritablePath {
|
|
|
|
if path == "" {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return constructPath(ctx, path).(android.WritablePath)
|
|
|
|
}
|
|
|
|
|
2020-01-07 00:11:37 +01:00
|
|
|
// LoadGlobalConfig reads the global dexpreopt.config file into a GlobalConfig
|
|
|
|
// struct, except the SoongConfig field which is set from the provided
|
|
|
|
// soongConfig argument. LoadGlobalConfig is used directly in Soong and in
|
|
|
|
// dexpreopt_gen called from Make to read the $OUT/dexpreopt.config written by
|
|
|
|
// Make.
|
2020-01-10 19:51:04 +01:00
|
|
|
func LoadGlobalConfig(ctx android.PathContext, path string, soongConfig GlobalSoongConfig) (GlobalConfig, []byte, error) {
|
2019-02-15 19:39:37 +01:00
|
|
|
type GlobalJSONConfig struct {
|
|
|
|
GlobalConfig
|
|
|
|
|
|
|
|
// Copies of entries in GlobalConfig that are not constructable without extra parameters. They will be
|
|
|
|
// used to construct the real value manually below.
|
|
|
|
DirtyImageObjects string
|
|
|
|
BootImageProfiles []string
|
|
|
|
}
|
|
|
|
|
|
|
|
config := GlobalJSONConfig{}
|
2020-01-10 19:51:04 +01:00
|
|
|
data, err := loadConfig(ctx, path, &config)
|
2019-02-15 19:39:37 +01:00
|
|
|
if err != nil {
|
2020-01-10 19:51:04 +01:00
|
|
|
return config.GlobalConfig, nil, err
|
2019-02-15 19:39:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Construct paths that require a PathContext.
|
|
|
|
config.GlobalConfig.DirtyImageObjects = android.OptionalPathForPath(constructPath(ctx, config.DirtyImageObjects))
|
|
|
|
config.GlobalConfig.BootImageProfiles = constructPaths(ctx, config.BootImageProfiles)
|
|
|
|
|
2020-01-07 00:11:37 +01:00
|
|
|
// Set this here to force the caller to provide a value for this struct (from
|
|
|
|
// either CreateGlobalSoongConfig or LoadGlobalSoongConfig).
|
|
|
|
config.GlobalConfig.SoongConfig = soongConfig
|
2019-02-15 19:39:37 +01:00
|
|
|
|
2020-01-10 19:51:04 +01:00
|
|
|
return config.GlobalConfig, data, nil
|
2018-11-12 19:13:39 +01:00
|
|
|
}
|
|
|
|
|
2019-02-15 19:39:37 +01:00
|
|
|
// LoadModuleConfig reads a per-module dexpreopt.config file into a ModuleConfig struct. It is not used in Soong, which
|
|
|
|
// receives a ModuleConfig struct directly from java/dexpreopt.go. It is used in dexpreopt_gen called from oMake to
|
|
|
|
// read the module dexpreopt.config written by Make.
|
2020-01-10 19:51:04 +01:00
|
|
|
func LoadModuleConfig(ctx android.PathContext, path string) (ModuleConfig, error) {
|
2019-02-15 19:39:37 +01:00
|
|
|
type ModuleJSONConfig struct {
|
|
|
|
ModuleConfig
|
|
|
|
|
|
|
|
// Copies of entries in ModuleConfig that are not constructable without extra parameters. They will be
|
|
|
|
// used to construct the real value manually below.
|
|
|
|
BuildPath string
|
|
|
|
DexPath string
|
2019-05-22 19:21:09 +02:00
|
|
|
ManifestPath string
|
2019-02-15 19:39:37 +01:00
|
|
|
ProfileClassListing string
|
|
|
|
LibraryPaths map[string]string
|
|
|
|
DexPreoptImages []string
|
2019-11-08 11:54:21 +01:00
|
|
|
DexPreoptImageLocations []string
|
2019-02-15 19:39:37 +01:00
|
|
|
PreoptBootClassPathDexFiles []string
|
|
|
|
}
|
|
|
|
|
|
|
|
config := ModuleJSONConfig{}
|
|
|
|
|
2020-01-10 19:51:04 +01:00
|
|
|
_, err := loadConfig(ctx, path, &config)
|
2019-02-15 19:39:37 +01:00
|
|
|
if err != nil {
|
|
|
|
return config.ModuleConfig, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// Construct paths that require a PathContext.
|
|
|
|
config.ModuleConfig.BuildPath = constructPath(ctx, config.BuildPath).(android.OutputPath)
|
|
|
|
config.ModuleConfig.DexPath = constructPath(ctx, config.DexPath)
|
2019-05-22 19:21:09 +02:00
|
|
|
config.ModuleConfig.ManifestPath = constructPath(ctx, config.ManifestPath)
|
2019-02-15 19:39:37 +01:00
|
|
|
config.ModuleConfig.ProfileClassListing = android.OptionalPathForPath(constructPath(ctx, config.ProfileClassListing))
|
|
|
|
config.ModuleConfig.LibraryPaths = constructPathMap(ctx, config.LibraryPaths)
|
|
|
|
config.ModuleConfig.DexPreoptImages = constructPaths(ctx, config.DexPreoptImages)
|
2019-11-08 11:54:21 +01:00
|
|
|
config.ModuleConfig.DexPreoptImageLocations = config.DexPreoptImageLocations
|
2019-02-15 19:39:37 +01:00
|
|
|
config.ModuleConfig.PreoptBootClassPathDexFiles = constructPaths(ctx, config.PreoptBootClassPathDexFiles)
|
|
|
|
|
2019-06-13 23:44:53 +02:00
|
|
|
// This needs to exist, but dependencies are already handled in Make, so we don't need to pass them through JSON.
|
2019-11-08 11:54:21 +01:00
|
|
|
config.ModuleConfig.DexPreoptImagesDeps = make([]android.OutputPaths, len(config.ModuleConfig.DexPreoptImages))
|
2019-06-13 23:44:53 +02:00
|
|
|
|
2019-02-15 19:39:37 +01:00
|
|
|
return config.ModuleConfig, nil
|
2018-11-12 19:13:39 +01:00
|
|
|
}
|
|
|
|
|
2020-01-07 00:11:37 +01:00
|
|
|
// CreateGlobalSoongConfig creates a GlobalSoongConfig from the current context.
|
|
|
|
// Should not be used in dexpreopt_gen.
|
|
|
|
func CreateGlobalSoongConfig(ctx android.PathContext) GlobalSoongConfig {
|
|
|
|
// Default to debug version to help find bugs.
|
|
|
|
// Set USE_DEX2OAT_DEBUG to false for only building non-debug versions.
|
|
|
|
var dex2oatBinary string
|
|
|
|
if ctx.Config().Getenv("USE_DEX2OAT_DEBUG") == "false" {
|
|
|
|
dex2oatBinary = "dex2oat"
|
|
|
|
} else {
|
|
|
|
dex2oatBinary = "dex2oatd"
|
|
|
|
}
|
|
|
|
|
|
|
|
return GlobalSoongConfig{
|
|
|
|
Profman: ctx.Config().HostToolPath(ctx, "profman"),
|
|
|
|
Dex2oat: ctx.Config().HostToolPath(ctx, dex2oatBinary),
|
|
|
|
Aapt: ctx.Config().HostToolPath(ctx, "aapt"),
|
|
|
|
SoongZip: ctx.Config().HostToolPath(ctx, "soong_zip"),
|
|
|
|
Zip2zip: ctx.Config().HostToolPath(ctx, "zip2zip"),
|
|
|
|
ManifestCheck: ctx.Config().HostToolPath(ctx, "manifest_check"),
|
|
|
|
ConstructContext: android.PathForSource(ctx, "build/make/core/construct_context.sh"),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type globalJsonSoongConfig struct {
|
|
|
|
Profman string
|
|
|
|
Dex2oat string
|
|
|
|
Aapt string
|
|
|
|
SoongZip string
|
|
|
|
Zip2zip string
|
|
|
|
ManifestCheck string
|
|
|
|
ConstructContext string
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadGlobalSoongConfig reads the dexpreopt_soong.config file into a
|
|
|
|
// GlobalSoongConfig struct. It is only used in dexpreopt_gen.
|
2020-01-10 19:51:04 +01:00
|
|
|
func LoadGlobalSoongConfig(ctx android.PathContext, path string) (GlobalSoongConfig, error) {
|
2020-01-07 00:11:37 +01:00
|
|
|
var jc globalJsonSoongConfig
|
|
|
|
|
2020-01-10 19:51:04 +01:00
|
|
|
_, err := loadConfig(ctx, path, &jc)
|
2020-01-07 00:11:37 +01:00
|
|
|
if err != nil {
|
|
|
|
return GlobalSoongConfig{}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
config := GlobalSoongConfig{
|
|
|
|
Profman: constructPath(ctx, jc.Profman),
|
|
|
|
Dex2oat: constructPath(ctx, jc.Dex2oat),
|
|
|
|
Aapt: constructPath(ctx, jc.Aapt),
|
|
|
|
SoongZip: constructPath(ctx, jc.SoongZip),
|
|
|
|
Zip2zip: constructPath(ctx, jc.Zip2zip),
|
|
|
|
ManifestCheck: constructPath(ctx, jc.ManifestCheck),
|
|
|
|
ConstructContext: constructPath(ctx, jc.ConstructContext),
|
|
|
|
}
|
|
|
|
|
|
|
|
return config, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *globalSoongConfigSingleton) GenerateBuildActions(ctx android.SingletonContext) {
|
|
|
|
config := CreateGlobalSoongConfig(ctx)
|
|
|
|
jc := globalJsonSoongConfig{
|
|
|
|
Profman: config.Profman.String(),
|
|
|
|
Dex2oat: config.Dex2oat.String(),
|
|
|
|
Aapt: config.Aapt.String(),
|
|
|
|
SoongZip: config.SoongZip.String(),
|
|
|
|
Zip2zip: config.Zip2zip.String(),
|
|
|
|
ManifestCheck: config.ManifestCheck.String(),
|
|
|
|
ConstructContext: config.ConstructContext.String(),
|
|
|
|
}
|
|
|
|
|
|
|
|
data, err := json.Marshal(jc)
|
|
|
|
if err != nil {
|
|
|
|
ctx.Errorf("failed to JSON marshal GlobalSoongConfig: %v", err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
ctx.Build(pctx, android.BuildParams{
|
|
|
|
Rule: android.WriteFile,
|
|
|
|
Output: android.PathForOutput(ctx, "dexpreopt_soong.config"),
|
|
|
|
Args: map[string]string{
|
|
|
|
"content": string(data),
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *globalSoongConfigSingleton) MakeVars(ctx android.MakeVarsContext) {
|
|
|
|
config := CreateGlobalSoongConfig(ctx)
|
|
|
|
|
|
|
|
ctx.Strict("DEX2OAT", config.Dex2oat.String())
|
|
|
|
ctx.Strict("DEXPREOPT_GEN_DEPS", strings.Join([]string{
|
|
|
|
config.Profman.String(),
|
|
|
|
config.Dex2oat.String(),
|
|
|
|
config.Aapt.String(),
|
|
|
|
config.SoongZip.String(),
|
|
|
|
config.Zip2zip.String(),
|
|
|
|
config.ManifestCheck.String(),
|
|
|
|
config.ConstructContext.String(),
|
|
|
|
}, " "))
|
|
|
|
}
|
|
|
|
|
2020-01-10 19:51:04 +01:00
|
|
|
func loadConfig(ctx android.PathContext, path string, config interface{}) ([]byte, error) {
|
|
|
|
r, err := ctx.Fs().Open(path)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
defer r.Close()
|
|
|
|
|
|
|
|
data, err := ioutil.ReadAll(r)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
err = json.Unmarshal(data, config)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
return data, nil
|
|
|
|
}
|
|
|
|
|
2019-02-15 19:39:37 +01:00
|
|
|
func GlobalConfigForTests(ctx android.PathContext) GlobalConfig {
|
|
|
|
return GlobalConfig{
|
|
|
|
DisablePreopt: false,
|
|
|
|
DisablePreoptModules: nil,
|
|
|
|
OnlyPreoptBootImageAndSystemServer: false,
|
|
|
|
HasSystemOther: false,
|
|
|
|
PatternsOnSystemOther: nil,
|
|
|
|
DisableGenerateProfile: false,
|
|
|
|
ProfileDir: "",
|
|
|
|
BootJars: nil,
|
2019-11-27 18:37:46 +01:00
|
|
|
UpdatableBootJars: nil,
|
2019-07-05 23:38:25 +02:00
|
|
|
ArtApexJars: nil,
|
2019-02-15 19:39:37 +01:00
|
|
|
SystemServerJars: nil,
|
|
|
|
SystemServerApps: nil,
|
2019-11-21 21:36:53 +01:00
|
|
|
UpdatableSystemServerJars: nil,
|
2019-02-15 19:39:37 +01:00
|
|
|
SpeedApps: nil,
|
|
|
|
PreoptFlags: nil,
|
|
|
|
DefaultCompilerFilter: "",
|
|
|
|
SystemServerCompilerFilter: "",
|
|
|
|
GenerateDMFiles: false,
|
|
|
|
NoDebugInfo: false,
|
2019-04-29 18:33:50 +02:00
|
|
|
DontResolveStartupStrings: false,
|
2019-02-15 19:39:37 +01:00
|
|
|
AlwaysSystemServerDebugInfo: false,
|
|
|
|
NeverSystemServerDebugInfo: false,
|
|
|
|
AlwaysOtherDebugInfo: false,
|
|
|
|
NeverOtherDebugInfo: false,
|
|
|
|
IsEng: false,
|
|
|
|
SanitizeLite: false,
|
|
|
|
DefaultAppImages: false,
|
|
|
|
Dex2oatXmx: "",
|
|
|
|
Dex2oatXms: "",
|
|
|
|
EmptyDirectory: "empty_dir",
|
|
|
|
CpuVariant: nil,
|
|
|
|
InstructionSetFeatures: nil,
|
|
|
|
DirtyImageObjects: android.OptionalPath{},
|
|
|
|
BootImageProfiles: nil,
|
|
|
|
BootFlags: "",
|
|
|
|
Dex2oatImageXmx: "",
|
|
|
|
Dex2oatImageXms: "",
|
2020-01-07 00:11:37 +01:00
|
|
|
SoongConfig: GlobalSoongConfig{
|
2019-05-22 19:21:09 +02:00
|
|
|
Profman: android.PathForTesting("profman"),
|
|
|
|
Dex2oat: android.PathForTesting("dex2oat"),
|
|
|
|
Aapt: android.PathForTesting("aapt"),
|
|
|
|
SoongZip: android.PathForTesting("soong_zip"),
|
|
|
|
Zip2zip: android.PathForTesting("zip2zip"),
|
|
|
|
ManifestCheck: android.PathForTesting("manifest_check"),
|
|
|
|
ConstructContext: android.PathForTesting("construct_context.sh"),
|
2019-02-15 19:39:37 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|