/build/soong/java/config/ |
D | config.go | 29 pctx = android.NewPackageContext("android/soong/java/config") var 65 pctx.Import("github.com/google/blueprint/bootstrap") 67 pctx.StaticVariable("JavacHeapSize", "2048M") 68 pctx.StaticVariable("JavacHeapFlags", "-J-Xmx${JavacHeapSize}") 69 …pctx.StaticVariable("DexFlags", "-JXX:OnError='cat hs_err_pid%p.log' -JXX:CICompilerCount=6 -JXX:+… 71 pctx.StaticVariable("CommonJdkFlags", strings.Join([]string{ 87 pctx.StaticVariable("JavaVmFlags", JavaVmFlags) 88 pctx.StaticVariable("JavacVmFlags", JavacVmFlags) 90 pctx.VariableConfigMethod("hostPrebuiltTag", android.Config.PrebuiltOS) 92 pctx.VariableFunc("JavaHome", func(ctx android.PackageVarContext) string { [all …]
|
D | kotlin.go | 28 pctx.SourcePathVariable("KotlincCmd", "external/kotlinc/bin/kotlinc") 29 pctx.SourcePathVariable("KotlinCompilerJar", "external/kotlinc/lib/kotlin-compiler.jar") 30 pctx.SourcePathVariable("KotlinPreloaderJar", "external/kotlinc/lib/kotlin-preloader.jar") 31 pctx.SourcePathVariable("KotlinReflectJar", "external/kotlinc/lib/kotlin-reflect.jar") 32 pctx.SourcePathVariable("KotlinScriptRuntimeJar", "external/kotlinc/lib/kotlin-script-runtime.jar") 33 pctx.SourcePathVariable("KotlinTrove4jJar", "external/kotlinc/lib/trove4j.jar") 34 pctx.SourcePathVariable("KotlinKaptJar", "external/kotlinc/lib/kotlin-annotation-processing.jar") 35 pctx.SourcePathVariable("KotlinAnnotationJar", "external/kotlinc/lib/annotations-13.0.jar") 36 pctx.SourcePathVariable("KotlinStdlibJar", KotlinStdlibJar) 39 pctx.StaticVariable("KotlincSuppressJDK9Warnings", strings.Join([]string{
|
/build/soong/cc/config/ |
D | global.go | 146 var pctx = android.NewPackageContext("android/soong/cc/config") var 153 pctx.StaticVariable("CommonGlobalConlyflags", strings.Join(commonGlobalConlyflags, " ")) 154 pctx.StaticVariable("DeviceGlobalCppflags", strings.Join(deviceGlobalCppflags, " ")) 155 pctx.StaticVariable("DeviceGlobalLdflags", strings.Join(deviceGlobalLdflags, " ")) 156 pctx.StaticVariable("DeviceGlobalLldflags", strings.Join(deviceGlobalLldflags, " ")) 157 pctx.StaticVariable("HostGlobalCppflags", strings.Join(hostGlobalCppflags, " ")) 158 pctx.StaticVariable("HostGlobalLdflags", strings.Join(hostGlobalLdflags, " ")) 159 pctx.StaticVariable("HostGlobalLldflags", strings.Join(hostGlobalLldflags, " ")) 161 pctx.VariableFunc("CommonClangGlobalCflags", func(ctx android.PackageVarContext) string { 182 pctx.VariableFunc("DeviceClangGlobalCflags", func(ctx android.PackageVarContext) string { [all …]
|
D | arm_device.go | 171 pctx.StaticVariable("armGccVersion", armGccVersion) 173 pctx.SourcePathVariable("ArmGccRoot", 176 pctx.StaticVariable("ArmLdflags", strings.Join(armLdflags, " ")) 177 pctx.StaticVariable("ArmLldflags", strings.Join(armLldflags, " ")) 180 …pctx.StaticVariable("ArmToolchainClangCflags", strings.Join(ClangFilterUnknownCflags(armToolchainC… 181 pctx.StaticVariable("ArmClangCflags", strings.Join(ClangFilterUnknownCflags(armCflags), " ")) 182 pctx.StaticVariable("ArmClangLdflags", strings.Join(ClangFilterUnknownCflags(armLdflags), " ")) 183 pctx.StaticVariable("ArmClangLldflags", strings.Join(ClangFilterUnknownCflags(armLldflags), " ")) 184 pctx.StaticVariable("ArmClangCppflags", strings.Join(ClangFilterUnknownCflags(armCppflags), " ")) 187 pctx.StaticVariable("ArmClangArmCflags", strings.Join(ClangFilterUnknownCflags(armArmCflags), " ")) [all …]
|
D | x86_windows_host.go | 127 pctx.StaticVariable("WindowsGccVersion", windowsGccVersion) 129 pctx.SourcePathVariable("WindowsGccRoot", 132 pctx.StaticVariable("WindowsGccTriple", "x86_64-w64-mingw32") 134 pctx.StaticVariable("WindowsClangCflags", strings.Join(windowsClangCflags, " ")) 135 pctx.StaticVariable("WindowsClangLdflags", strings.Join(windowsClangLdflags, " ")) 136 pctx.StaticVariable("WindowsClangLldflags", strings.Join(windowsClangLldflags, " ")) 137 pctx.StaticVariable("WindowsClangCppflags", strings.Join(windowsClangCppflags, " ")) 139 pctx.StaticVariable("WindowsX86ClangCflags", 141 pctx.StaticVariable("WindowsX8664ClangCflags", 143 pctx.StaticVariable("WindowsX86ClangLdflags", strings.Join(windowsX86ClangLdflags, " ")) [all …]
|
D | x86_linux_host.go | 119 pctx.StaticVariable("LinuxGccVersion", linuxGccVersion) 120 pctx.StaticVariable("LinuxGlibcVersion", linuxGlibcVersion) 123 pctx.StaticVariable("ShortLinuxGccVersion", strings.Join(p[:2], ".")) 125 pctx.StaticVariable("ShortLinuxGccVersion", linuxGccVersion) 128 pctx.SourcePathVariable("LinuxGccRoot", 131 pctx.StaticVariable("LinuxGccTriple", "x86_64-linux") 133 pctx.StaticVariable("LinuxClangCflags", strings.Join(linuxClangCflags, " ")) 134 pctx.StaticVariable("LinuxClangLdflags", strings.Join(linuxClangLdflags, " ")) 135 pctx.StaticVariable("LinuxClangLldflags", strings.Join(linuxClangLldflags, " ")) 137 pctx.StaticVariable("LinuxX86ClangCflags", [all …]
|
D | arm64_device.go | 88 pctx.StaticVariable("arm64GccVersion", arm64GccVersion) 90 pctx.SourcePathVariable("Arm64GccRoot", 93 pctx.StaticVariable("Arm64Ldflags", strings.Join(arm64Ldflags, " ")) 94 pctx.StaticVariable("Arm64Lldflags", strings.Join(arm64Lldflags, " ")) 96 pctx.StaticVariable("Arm64ClangCflags", strings.Join(ClangFilterUnknownCflags(arm64Cflags), " ")) 97 pctx.StaticVariable("Arm64ClangLdflags", strings.Join(ClangFilterUnknownCflags(arm64Ldflags), " ")) 98 …pctx.StaticVariable("Arm64ClangLldflags", strings.Join(ClangFilterUnknownCflags(arm64Lldflags), " … 99 …pctx.StaticVariable("Arm64ClangCppflags", strings.Join(ClangFilterUnknownCflags(arm64Cppflags), " … 101 pctx.StaticVariable("Arm64ClangArmv8ACflags", strings.Join(arm64ArchVariantCflags["armv8-a"], " ")) 102 …pctx.StaticVariable("Arm64ClangArmv82ACflags", strings.Join(arm64ArchVariantCflags["armv8-2a"], " … [all …]
|
D | x86_device.go | 107 pctx.StaticVariable("x86GccVersion", x86GccVersion) 109 pctx.SourcePathVariable("X86GccRoot", 112 pctx.StaticVariable("X86ToolchainCflags", "-m32") 113 pctx.StaticVariable("X86ToolchainLdflags", "-m32") 115 pctx.StaticVariable("X86Ldflags", strings.Join(x86Ldflags, " ")) 116 pctx.StaticVariable("X86Lldflags", strings.Join(x86Lldflags, " ")) 119 pctx.StaticVariable("X86ClangCflags", strings.Join(ClangFilterUnknownCflags(x86ClangCflags), " ")) 120 pctx.StaticVariable("X86ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86Ldflags), " ")) 121 pctx.StaticVariable("X86ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86Lldflags), " ")) 122 pctx.StaticVariable("X86ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86Cppflags), " ")) [all …]
|
D | x86_64_device.go | 96 pctx.StaticVariable("x86_64GccVersion", x86_64GccVersion) 98 pctx.SourcePathVariable("X86_64GccRoot", 101 pctx.StaticVariable("X86_64ToolchainCflags", "-m64") 102 pctx.StaticVariable("X86_64ToolchainLdflags", "-m64") 104 pctx.StaticVariable("X86_64Ldflags", strings.Join(x86_64Ldflags, " ")) 105 pctx.StaticVariable("X86_64Lldflags", strings.Join(x86_64Lldflags, " ")) 108 pctx.StaticVariable("X86_64ClangCflags", strings.Join(ClangFilterUnknownCflags(x86_64Cflags), " ")) 109 …pctx.StaticVariable("X86_64ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86_64Ldflags), " … 110 …pctx.StaticVariable("X86_64ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86_64Lldflags), … 111 …pctx.StaticVariable("X86_64ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86_64Cppflags), … [all …]
|
D | x86_darwin_host.go | 95 pctx.VariableFunc("macSdkRoot", func(ctx android.PackageVarContext) string { 98 pctx.StaticVariable("macMinVersion", "10.10") 99 pctx.VariableFunc("MacArPath", func(ctx android.PackageVarContext) string { 103 pctx.VariableFunc("MacStripPath", func(ctx android.PackageVarContext) string { 107 pctx.VariableFunc("MacToolPath", func(ctx android.PackageVarContext) string { 111 pctx.StaticVariable("DarwinGccVersion", darwinGccVersion) 112 pctx.SourcePathVariable("DarwinGccRoot", 115 pctx.StaticVariable("DarwinGccTriple", "i686-apple-darwin11") 117 pctx.StaticVariable("DarwinClangCflags", strings.Join(darwinClangCflags, " ")) 118 pctx.StaticVariable("DarwinClangLdflags", strings.Join(darwinClangLdflags, " ")) [all …]
|
D | clang.go | 92 pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{ 133 pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{ 144 pctx.StaticVariable("ClangExtraTargetCflags", strings.Join([]string{ 148 pctx.StaticVariable("ClangExtraNoOverrideCflags", strings.Join([]string{ 183 pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{
|
/build/soong/tradefed/ |
D | config.go | 22 pctx = android.NewPackageContext("android/soong/tradefed") var 26 pctx.SourcePathVariable("AutoGenTestConfigScript", "build/make/tools/auto_gen_test_config.py") 27 …pctx.SourcePathVariable("InstrumentationTestConfigTemplate", "build/make/core/instrumentation_test… 28 pctx.SourcePathVariable("JavaTestConfigTemplate", "build/make/core/java_test_config_template.xml") 29 …pctx.SourcePathVariable("JavaHostTestConfigTemplate", "build/make/core/java_host_test_config_templ… 30 …pctx.SourcePathVariable("NativeBenchmarkTestConfigTemplate", "build/make/core/native_benchmark_tes… 31 …pctx.SourcePathVariable("NativeHostTestConfigTemplate", "build/make/core/native_host_test_config_t… 32 …pctx.SourcePathVariable("NativeTestConfigTemplate", "build/make/core/native_test_config_template.x… 33 …pctx.SourcePathVariable("PythonBinaryHostTestConfigTemplate", "build/make/core/python_binary_host_… 34 …pctx.SourcePathVariable("RustDeviceTestConfigTemplate", "build/make/core/rust_device_test_config_t… [all …]
|
/build/soong/rust/config/ |
D | global.go | 24 var pctx = android.NewPackageContext("android/soong/rust/config") var 64 pctx.SourcePathVariable("RustDefaultBase", RustDefaultBase) 65 pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS) 67 pctx.VariableFunc("RustBase", func(ctx android.PackageVarContext) string { 74 pctx.VariableFunc("RustVersion", func(ctx android.PackageVarContext) string { 81 pctx.StaticVariable("RustPath", "${RustBase}/${HostPrebuiltTag}/${RustVersion}") 82 pctx.StaticVariable("RustBin", "${RustPath}/bin") 84 pctx.ImportAs("ccConfig", "android/soong/cc/config") 85 pctx.StaticVariable("RustLinker", "${ccConfig.ClangBin}/clang++") 86 pctx.StaticVariable("RustLinkerArgs", "") [all …]
|
D | x86_linux_host.go | 39 pctx.StaticVariable("LinuxToolchainRustFlags", strings.Join(LinuxRustFlags, " ")) 40 pctx.StaticVariable("LinuxToolchainLinkFlags", strings.Join(LinuxRustLinkFlags, " ")) 41 pctx.StaticVariable("LinuxToolchainX86RustFlags", strings.Join(linuxX86Rustflags, " ")) 42 pctx.StaticVariable("LinuxToolchainX86LinkFlags", strings.Join(linuxX86Linkflags, " ")) 43 pctx.StaticVariable("LinuxToolchainX8664RustFlags", strings.Join(linuxX8664Rustflags, " ")) 44 pctx.StaticVariable("LinuxToolchainX8664LinkFlags", strings.Join(linuxX8664Linkflags, " "))
|
/build/soong/android/ |
D | defs.go | 23 pctx = NewPackageContext("android/soong/android") var 25 cpPreserveSymlinks = pctx.VariableConfigMethod("cpPreserveSymlinks", 31 Phony = pctx.AndroidStaticRule("Phony", 40 GeneratedFile = pctx.AndroidStaticRule("GeneratedFile", 48 Cp = pctx.AndroidStaticRule("Cp", 55 CpExecutable = pctx.AndroidStaticRule("CpExecutable", 63 Touch = pctx.AndroidStaticRule("Touch", 70 Symlink = pctx.AndroidStaticRule("Symlink", 77 ErrorRule = pctx.AndroidStaticRule("Error", 84 Cat = pctx.AndroidStaticRule("Cat", [all …]
|
D | singleton.go | 36 Variable(pctx PackageContext, name, value string) 37 …Rule(pctx PackageContext, name string, params blueprint.RuleParams, argNames ...string) blueprint.… 38 Build(pctx PackageContext, params BuildParams) 50 SetNinjaBuildDir(pctx PackageContext, value string) 55 Eval(pctx PackageContext, ninjaStr string) (string, error) 132 func (s *singletonContextAdaptor) Variable(pctx PackageContext, name, value string) { 133 s.SingletonContext.Variable(pctx.PackageContext, name, value) 136 func (s *singletonContextAdaptor) Rule(pctx PackageContext, name string, params blueprint.RuleParam… 149 rule := s.SingletonContext.Rule(pctx.PackageContext, name, params, argNames...) 156 func (s *singletonContextAdaptor) Build(pctx PackageContext, params BuildParams) { [all …]
|
D | notices.go | 24 pctx.SourcePathVariable("merge_notices", "build/soong/scripts/mergenotice.py") 25 pctx.SourcePathVariable("generate_notice", "build/soong/scripts/generate-notice-files.py") 27 pctx.HostBinToolVariable("minigzip", "minigzip") 38 mergeNoticesRule = pctx.AndroidStaticRule("mergeNoticesRule", blueprint.RuleParams{ 44 generateNoticeRule = pctx.AndroidStaticRule("generateNoticeRule", blueprint.RuleParams{ 55 ctx.Build(pctx, BuildParams{ 82 ctx.Build(pctx, BuildParams{
|
/build/soong/python/ |
D | builder.go | 29 pctx = android.NewPackageContext("android/soong/python") var 31 zip = pctx.AndroidStaticRule("zip", 38 combineZip = pctx.AndroidStaticRule("combineZip", 45 hostPar = pctx.AndroidStaticRule("hostPar", 55 embeddedPar = pctx.AndroidStaticRule("embeddedPar", 65 embeddedParNoMain = pctx.AndroidStaticRule("embeddedParNoMain", 75 pctx.Import("github.com/google/blueprint/bootstrap") 76 pctx.Import("android/soong/android") 78 pctx.HostBinToolVariable("parCmd", "soong_zip") 79 pctx.HostBinToolVariable("mergeParCmd", "merge_zips") [all …]
|
/build/soong/cc/ |
D | builder.go | 41 pctx = android.NewPackageContext("android/soong/cc") var 43 cc = pctx.AndroidRemoteStaticRule("cc", android.RemoteRuleSupports{Goma: true, RBE: true}, 52 ccNoDeps = pctx.AndroidStaticRule("ccNoDeps", 59 ld, ldRE = remoteexec.StaticRules(pctx, "ld", 79 partialLd, partialLdRE = remoteexec.StaticRules(pctx, "partialLd", 93 ar = pctx.AndroidStaticRule("ar", 102 arWithLibs = pctx.AndroidStaticRule("arWithLibs", 111 darwinStrip = pctx.AndroidStaticRule("darwinStrip", 117 prefixSymbols = pctx.AndroidStaticRule("prefixSymbols", 124 _ = pctx.SourcePathVariable("stripPath", "build/soong/scripts/strip.sh") [all …]
|
/build/blueprint/ |
D | package_ctx.go | 253 pctx *packageContext member 284 return v.pctx 292 return packageNamespacePrefix(pkgNames[v.pctx]) + v.name_ 296 ninjaStr, err := parseNinjaString(v.pctx.scope, v.value_) 305 return v.pctx.pkgPath + "." + v.name_ 309 pctx *packageContext member 384 return v.pctx 392 return packageNamespacePrefix(pkgNames[v.pctx]) + v.name_ 401 ninjaStr, err := parseNinjaString(v.pctx.scope, value) 411 return v.pctx.pkgPath + "." + v.name_ [all …]
|
D | singleton_ctx.go | 63 Variable(pctx PackageContext, name, value string) 67 Rule(pctx PackageContext, name string, params RuleParams, argNames ...string) Rule 70 Build(pctx PackageContext, params BuildParams) 78 SetNinjaBuildDir(pctx PackageContext, value string) 87 Eval(pctx PackageContext, ninjaStr string) (string, error) 216 func (s *singletonContext) Variable(pctx PackageContext, name, value string) { 217 s.scope.ReparentTo(pctx) 227 func (s *singletonContext) Rule(pctx PackageContext, name string, 230 s.scope.ReparentTo(pctx) 242 func (s *singletonContext) Build(pctx PackageContext, params BuildParams) { [all …]
|
/build/blueprint/bootstrap/ |
D | bootstrap.go | 35 pctx = blueprint.NewPackageContext("github.com/google/blueprint/bootstrap") var 37 …goTestMainCmd = pctx.StaticVariable("goTestMainCmd", filepath.Join(bootstrapDir, "bin", "gotestm… 38 …goTestRunnerCmd = pctx.StaticVariable("goTestRunnerCmd", filepath.Join(bootstrapDir, "bin", "gotes… 39 …pluginGenSrcCmd = pctx.StaticVariable("pluginGenSrcCmd", filepath.Join(bootstrapDir, "bin", "loadp… 41 parallelCompile = pctx.StaticVariable("parallelCompile", func() string { 59 compile = pctx.StaticRule("compile", 70 link = pctx.StaticRule("link", 80 goTestMain = pctx.StaticRule("gotestmain", 88 pluginGenSrc = pctx.StaticRule("pluginGenSrc", 96 test = pctx.StaticRule("test", [all …]
|
/build/soong/xml/ |
D | xml.go | 29 pctx = android.NewPackageContext("android/soong/xml") var 31 xmllintDtd = pctx.AndroidStaticRule("xmllint-dtd", 39 xmllintXsd = pctx.AndroidStaticRule("xmllint-xsd", 47 xmllintMinimal = pctx.AndroidStaticRule("xmllint-minimal", 57 pctx.HostBinToolVariable("XmlLintCmd", "xmllint") 83 ctx.Build(pctx, android.BuildParams{ 95 ctx.Build(pctx, android.BuildParams{ 111 ctx.Build(pctx, android.BuildParams{
|
/build/soong/java/ |
D | aapt2.go | 56 var aapt2CompileRule = pctx.AndroidStaticRule("aapt2Compile", 79 ctx.Build(pctx, android.BuildParams{ 97 var aapt2CompileZipRule = pctx.AndroidStaticRule("aapt2CompileZip", 113 ctx.Build(pctx, android.BuildParams{ 126 var aapt2LinkRule = pctx.AndroidStaticRule("aapt2Link", 143 var fileListToFileRule = pctx.AndroidStaticRule("fileListToFile", 150 var mergeAssetsRule = pctx.AndroidStaticRule("mergeAssets", 168 ctx.Build(pctx, android.BuildParams{ 182 ctx.Build(pctx, android.BuildParams{ 201 ctx.Build(pctx, android.BuildParams{ [all …]
|
/build/soong/apex/ |
D | builder.go | 35 pctx = android.NewPackageContext("android/apex") var 39 pctx.Import("android/soong/android") 40 pctx.Import("android/soong/java") 41 pctx.HostBinToolVariable("apexer", "apexer") 45 pctx.VariableFunc(name, func(ctx android.PackageVarContext) string { 54 pctx.HostBinToolVariable("avbtool", "avbtool") 55 pctx.HostBinToolVariable("e2fsdroid", "e2fsdroid") 56 pctx.HostBinToolVariable("merge_zips", "merge_zips") 57 pctx.HostBinToolVariable("mke2fs", "mke2fs") 58 pctx.HostBinToolVariable("resize2fs", "resize2fs") [all …]
|