/build/soong/cc/ |
D | toolchain.go | 23 type toolchainFactory func(arch common.Arch) Toolchain 25 var toolchainFactories = map[common.HostOrDevice]map[common.HostType]map[common.ArchType]toolchainF… 26 common.Host: map[common.HostType]map[common.ArchType]toolchainFactory{ 27 common.Linux: make(map[common.ArchType]toolchainFactory), 28 common.Darwin: make(map[common.ArchType]toolchainFactory), 29 common.Windows: make(map[common.ArchType]toolchainFactory), 31 common.Device: map[common.HostType]map[common.ArchType]toolchainFactory{ 32 common.NoHostType: make(map[common.ArchType]toolchainFactory), 36 func registerDeviceToolchainFactory(arch common.ArchType, factory toolchainFactory) { 37 toolchainFactories[common.Device][common.NoHostType][arch] = factory [all …]
|
D | gen.go | 50 func genYacc(ctx common.AndroidModuleContext, yaccFile common.Path, outFile common.ModuleGenPath, y… 51 headerFile = common.GenPathWithExt(ctx, yaccFile, "h") 53 ctx.ModuleBuild(pctx, common.ModuleBuildParams{ 55 Outputs: common.WritablePaths{outFile, headerFile}, 67 func genLex(ctx common.AndroidModuleContext, lexFile common.Path, outFile common.ModuleGenPath) { 68 ctx.ModuleBuild(pctx, common.ModuleBuildParams{ 75 func genSources(ctx common.AndroidModuleContext, srcFiles common.Paths, 76 buildFlags builderFlags) (common.Paths, common.Paths) { 78 var deps common.Paths 83 cFile := common.GenPathWithExt(ctx, srcFile, "c") [all …]
|
D | builder.go | 39 pctx = common.NewPackageContext("android/soong/cc") 143 func TransformSourceToObj(ctx common.AndroidModuleContext, subdir string, srcFiles common.Paths, 144 flags builderFlags, deps common.Paths) (objFiles common.Paths) { 146 objFiles = make(common.Paths, len(srcFiles)) 161 objFile := common.ObjPathWithExt(ctx, srcFile, subdir, "o") 198 ctx.ModuleBuild(pctx, common.ModuleBuildParams{ 214 func TransformObjToStaticLib(ctx common.AndroidModuleContext, objFiles common.Paths, 215 flags builderFlags, outputFile common.ModuleOutPath) { 220 ctx.ModuleBuild(pctx, common.ModuleBuildParams{ 235 func TransformDarwinObjToStaticLib(ctx common.AndroidModuleContext, objFiles common.Paths, [all …]
|
D | cc.go | 59 common.RegisterBottomUpMutator("link", linkageMutator) 60 common.RegisterBottomUpMutator("test_per_src", testPerSrcMutator) 61 common.RegisterBottomUpMutator("deps", depsMutator) 65 HostPrebuiltTag = pctx.VariableConfigMethod("HostPrebuiltTag", common.Config.PrebuiltOS) 158 if override := config.(common.Config).Getenv("LLVM_PREBUILTS_BASE"); override != "" { 164 if override := config.(common.Config).Getenv("LLVM_PREBUILTS_VERSION"); override != "" { 176 ObjFiles common.Paths 184 SharedLibs, LateSharedLibs common.Paths 185 StaticLibs, LateStaticLibs, WholeStaticLibs common.Paths 187 ObjFiles common.Paths [all …]
|
D | x86_device.go | 104 common.RegisterArchFeatures(common.X86, "atom", 107 common.RegisterArchFeatures(common.X86, "haswell", 116 common.RegisterArchFeatures(common.X86, "ivybridge", 124 common.RegisterArchFeatures(common.X86, "sandybridge", 130 common.RegisterArchFeatures(common.X86, "silvermont", 241 func x86ToolchainFactory(arch common.Arch) Toolchain { 264 registerDeviceToolchainFactory(common.X86, x86ToolchainFactory)
|
D | x86_64_device.go | 101 common.RegisterArchFeatures(common.X86_64, "", 107 common.RegisterArchFeatures(common.X86_64, "haswell", 115 common.RegisterArchFeatures(common.X86_64, "ivybridge", 123 common.RegisterArchFeatures(common.X86_64, "sandybridge", 129 common.RegisterArchFeatures(common.X86_64, "silvermont", 239 func x86_64ToolchainFactory(arch common.Arch) Toolchain { 262 registerDeviceToolchainFactory(common.X86_64, x86_64ToolchainFactory)
|
D | stl.go | 55 } else if ctx.HostType() == common.Windows { 100 if ctx.Arch().ArchType == common.Arm { 141 if ctx.Arch().ArchType == common.Arm { 150 …flags.CFlags = append(flags.CFlags, "-I"+common.PathForSource(ctx, "bionic/libstdc++/include").Str… 157 ndkSrcRoot := common.PathForSource(ctx, "prebuilts/ndk/current/sources/cxx-stl/system/include") 182 var hostDynamicGccLibs, hostStaticGccLibs map[common.HostType][]string 185 hostDynamicGccLibs = map[common.HostType][]string{ 186 common.Linux: []string{"-lgcc_s", "-lgcc", "-lc", "-lgcc_s", "-lgcc"}, 187 common.Darwin: []string{"-lc", "-lSystem"}, 188 common.Windows: []string{"-lmsvcr110", "-lmingw32", "-lgcc", "-lmoldname", [all …]
|
D | androidmk.go | 26 func (c *Module) AndroidMk() (ret common.AndroidMkData, err error) { 28 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) (err error) { 38 AndroidMk(*common.AndroidMkData) 56 func (library *baseLinker) AndroidMk(ret *common.AndroidMkData) { 64 func (library *libraryLinker) AndroidMk(ret *common.AndroidMkData) { 67 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error { 88 func (object *objectLinker) AndroidMk(ret *common.AndroidMkData) { 99 func (binary *binaryLinker) AndroidMk(ret *common.AndroidMkData) { 101 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error { 108 func (test *testLinker) AndroidMk(ret *common.AndroidMkData) { [all …]
|
/build/soong/java/ |
D | builder.go | 32 pctx = common.NewPackageContext("android/soong/java") 107 fileList, dir common.Path 114 func TransformJavaToClasses(ctx common.AndroidModuleContext, srcFiles common.Paths, srcFileLists co… 115 flags javaBuilderFlags, deps common.Paths) jarSpec { 117 classDir := common.PathForModuleOut(ctx, "classes") 118 classFileList := common.PathForModuleOut(ctx, "classes.list") 120 javacFlags := flags.javacFlags + common.JoinWithPrefix(srcFileLists.Strings(), "@") 124 ctx.ModuleBuild(pctx, common.ModuleBuildParams{ 140 func TransformClassesToJar(ctx common.AndroidModuleContext, classes []jarSpec, 141 manifest common.OptionalPath) common.Path { [all …]
|
D | java.go | 117 common.AndroidModuleBase 123 classpathFile common.Path 126 outputFile common.Path 134 exportAidlIncludeDirs common.Paths 136 logtagsSrcs common.Paths 140 ExtraSrcLists common.Paths 143 installFile common.Path 146 type AndroidJavaModuleContext common.AndroidBaseContext 149 GenerateJavaBuildActions(ctx common.AndroidModuleContext) 154 ClasspathFile() common.Path [all …]
|
D | app_builder.go | 82 func CreateResourceJavaFiles(ctx common.AndroidModuleContext, flags []string, 83 deps common.Paths) (common.Path, common.Path, common.Path) { 84 javaDir := common.PathForModuleGen(ctx, "R") 85 javaFileList := common.PathForModuleOut(ctx, "R.filelist") 86 publicResourcesFile := common.PathForModuleOut(ctx, "public_resources.xml") 87 proguardOptionsFile := common.PathForModuleOut(ctx, "proguard.options") 89 ctx.ModuleBuild(pctx, common.ModuleBuildParams{ 91 Outputs: common.WritablePaths{publicResourcesFile, proguardOptionsFile, javaFileList}, 105 func CreateExportPackage(ctx common.AndroidModuleContext, flags []string, deps common.Paths) common… 106 outputFile := common.PathForModuleOut(ctx, "package-export.apk") [all …]
|
D | gen.go | 59 func genAidl(ctx common.AndroidModuleContext, aidlFile common.Path, aidlFlags string) common.Path { 60 javaFile := common.GenPathWithExt(ctx, aidlFile, "java") 63 ctx.ModuleBuild(pctx, common.ModuleBuildParams{ 76 func genLogtags(ctx common.AndroidModuleContext, logtagsFile common.Path) common.Path { 77 javaFile := common.GenPathWithExt(ctx, logtagsFile, "java") 79 ctx.ModuleBuild(pctx, common.ModuleBuildParams{ 88 func (j *javaBase) genSources(ctx common.AndroidModuleContext, srcFiles common.Paths, 89 flags javaBuilderFlags) common.Paths { 111 logtags() common.Paths 117 var allLogtags common.Paths
|
D | app.go | 64 aaptJavaFileList common.Path 65 exportPackage common.Path 83 func (a *AndroidApp) GenerateJavaBuildActions(ctx common.AndroidModuleContext) { 146 certificate = filepath.Join(common.PathForSource(ctx).String(), certificate) 151 certificates = append(certificates, filepath.Join(common.PathForSource(ctx).String(), c)) 155 ctx.InstallFileName(common.PathForModuleInstall(ctx, "app"), ctx.ModuleName()+".apk", a.outputFile) 170 func (a *AndroidApp) aaptFlags(ctx common.AndroidModuleContext) ([]string, common.Paths, bool) { 186 assetDirs := common.PathsWithOptionalDefaultForModuleSrc(ctx, a.appProperties.Asset_dirs, "assets") 187 …resourceDirs := common.PathsWithOptionalDefaultForModuleSrc(ctx, a.appProperties.Android_resource_… 189 var overlayResourceDirs common.Paths [all …]
|
/build/soong/genrule/ |
D | genrule.go | 28 common.RegisterBottomUpMutator("genrule_deps", genruleDepsMutator) 32 pctx = common.NewPackageContext("android/soong/genrule") 41 GeneratedSourceFiles() common.Paths 45 HostToolPath() common.OptionalPath 62 common.AndroidModuleBase 68 deps common.Paths 71 outputFiles common.Paths 74 type taskFunc func(ctx common.AndroidModuleContext) []generateTask 77 in common.Paths 78 out common.ModuleGenPath [all …]
|
/build/core/ |
D | pdk_config.mk | 4 host/common/obj/JAVA_LIBRARIES/bouncycastle-host_intermediates 12 target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates \ 13 target/common/obj/JAVA_LIBRARIES/android-common_intermediates \ 14 target/common/obj/JAVA_LIBRARIES/android-ex-camera2_intermediates \ 15 target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates \ 16 target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates \ 17 target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates \ 18 target/common/obj/JAVA_LIBRARIES/core-oj_intermediates \ 19 target/common/obj/JAVA_LIBRARIES/core-libart_intermediates \ 20 target/common/obj/JAVA_LIBRARIES/core-junit_intermediates \ [all …]
|
/build/tools/releasetools/ |
D | img_from_target_files | 39 import common 41 OPTIONS = common.OPTIONS 46 common.ZipWrite( 61 args = common.ParseOptions(argv, __doc__, 69 common.Usage(__doc__) 72 OPTIONS.input_tmp, input_zip = common.UnzipTemp(args[0]) 89 common.ZipWrite( 98 OPTIONS.info_dict = common.LoadInfoDict(input_zip, OPTIONS.input_tmp) 100 boot_image = common.GetBootableImage( 106 recovery_image = common.GetBootableImage( [all …]
|
D | img_from_target_files.py | 39 import common 41 OPTIONS = common.OPTIONS 46 common.ZipWrite( 61 args = common.ParseOptions(argv, __doc__, 69 common.Usage(__doc__) 72 OPTIONS.input_tmp, input_zip = common.UnzipTemp(args[0]) 89 common.ZipWrite( 98 OPTIONS.info_dict = common.LoadInfoDict(input_zip, OPTIONS.input_tmp) 100 boot_image = common.GetBootableImage( 106 recovery_image = common.GetBootableImage( [all …]
|
D | add_img_to_target_files | 39 import common 41 OPTIONS = common.OPTIONS 65 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img, 68 block_list = common.MakeTempFile(prefix="system-blocklist-", suffix=".map") 71 common.ZipWrite(output_zip, imgname, prefix + "system.img") 72 common.ZipWrite(output_zip, block_list, prefix + "system.map") 90 block_list = common.MakeTempFile(prefix="vendor-blocklist-", suffix=".map") 93 common.ZipWrite(output_zip, imgname, prefix + "vendor.img") 94 common.ZipWrite(output_zip, block_list, prefix + "vendor.map") 106 img = common.MakeTempFile(prefix=what + "-", suffix=".img") [all …]
|
D | add_img_to_target_files.py | 39 import common 41 OPTIONS = common.OPTIONS 65 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img, 68 block_list = common.MakeTempFile(prefix="system-blocklist-", suffix=".map") 71 common.ZipWrite(output_zip, imgname, prefix + "system.img") 72 common.ZipWrite(output_zip, block_list, prefix + "system.map") 90 block_list = common.MakeTempFile(prefix="vendor-blocklist-", suffix=".map") 93 common.ZipWrite(output_zip, imgname, prefix + "vendor.img") 94 common.ZipWrite(output_zip, block_list, prefix + "vendor.map") 106 img = common.MakeTempFile(prefix=what + "-", suffix=".img") [all …]
|
D | make_recovery_patch.py | 24 import common 26 OPTIONS = common.OPTIONS 32 args = common.ParseOptions(argv, __doc__) 35 OPTIONS.info_dict = common.LoadInfoDict(input_dir) 37 recovery_img = common.GetBootableImage("recovery.img", "recovery.img", 39 boot_img = common.GetBootableImage("boot.img", "boot.img", 49 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
|
D | make_recovery_patch | 24 import common 26 OPTIONS = common.OPTIONS 32 args = common.ParseOptions(argv, __doc__) 35 OPTIONS.info_dict = common.LoadInfoDict(input_dir) 37 recovery_img = common.GetBootableImage("recovery.img", "recovery.img", 39 boot_img = common.GetBootableImage("boot.img", "boot.img", 49 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
|
D | sign_target_files_apks.py | 86 import common 88 OPTIONS = common.OPTIONS 98 certmap = common.ReadApkCerts(tf_zip) 155 common.SignFile(unsigned.name, signed.name, keyname, pw, 222 if key not in common.SPECIAL_CERT_STRINGS: 226 common.ZipWriteStr(output_tf_zip, out_info, signed_data) 230 common.ZipWriteStr(output_tf_zip, out_info, data) 237 common.ZipWriteStr(output_tf_zip, out_info, new_data) 244 common.ZipWriteStr(output_tf_zip, out_info, new_data) 263 common.ZipWriteStr(output_tf_zip, out_info, data) [all …]
|
D | sign_target_files_apks | 86 import common 88 OPTIONS = common.OPTIONS 98 certmap = common.ReadApkCerts(tf_zip) 155 common.SignFile(unsigned.name, signed.name, keyname, pw, 222 if key not in common.SPECIAL_CERT_STRINGS: 226 common.ZipWriteStr(output_tf_zip, out_info, signed_data) 230 common.ZipWriteStr(output_tf_zip, out_info, data) 237 common.ZipWriteStr(output_tf_zip, out_info, new_data) 244 common.ZipWriteStr(output_tf_zip, out_info, new_data) 263 common.ZipWriteStr(output_tf_zip, out_info, data) [all …]
|
D | ota_from_target_files.py | 130 import common 134 OPTIONS = common.OPTIONS 422 common.ZipWriteStr(output_zip, info2, data) 433 key_passwords = common.GetKeyPasswords([OPTIONS.package_key]) 436 common.SignFile(temp_zip_name, output_zip_name, OPTIONS.package_key, pw, 447 raise common.ExternalError( 451 raise common.ExternalError( 536 raise common.ExternalError("OEM source required for this build") 539 oem_dict = common.LoadDictionaryFromLines( 550 device_specific = common.DeviceSpecificParams( [all …]
|
/build/soong/ |
D | Android.bp | 19 "soong-common", 82 name: "soong-common", 83 pkgPath: "android/soong/common", 92 "common/androidmk.go", 93 "common/arch.go", 94 "common/config.go", 95 "common/defaults.go", 96 "common/defs.go", 97 "common/env.go", 98 "common/glob.go", [all …]
|