Home
last modified time | relevance | path

Searched refs:pctx (Results 1 – 25 of 148) sorted by relevance

123456

/build/soong/java/config/
Dconfig.go29 pctx = android.NewPackageContext("android/soong/java/config") var
67 pctx.Import("github.com/google/blueprint/bootstrap")
69 pctx.StaticVariable("JavacHeapSize", "2048M")
70 pctx.StaticVariable("JavacHeapFlags", "-J-Xmx${JavacHeapSize}")
71pctx.StaticVariable("DexFlags", "-JXX:OnError='cat hs_err_pid%p.log' -JXX:CICompilerCount=6 -JXX:+…
73pctx.StaticVariable("DexJavaFlags", "-XX:OnError='cat hs_err_pid%p.log' -XX:CICompilerCount=6 -XX:…
75 pctx.StaticVariable("CommonJdkFlags", strings.Join([]string{
91 pctx.StaticVariable("JavaVmFlags", JavaVmFlags)
92 pctx.StaticVariable("JavacVmFlags", JavacVmFlags)
94 pctx.VariableConfigMethod("hostPrebuiltTag", android.Config.PrebuiltOS)
[all …]
Dkotlin.go28 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("KaptSuppressJDK9Warnings", strings.Join([]string{
[all …]
/build/soong/tradefed/
Dconfig.go22 pctx = android.NewPackageContext("android/soong/tradefed") var
26 pctx.SourcePathVariable("AutoGenTestConfigScript", "build/make/tools/auto_gen_test_config.py")
27pctx.SourcePathVariable("InstrumentationTestConfigTemplate", "build/make/core/instrumentation_test…
28 pctx.SourcePathVariable("JavaTestConfigTemplate", "build/make/core/java_test_config_template.xml")
29pctx.SourcePathVariable("JavaHostTestConfigTemplate", "build/make/core/java_host_test_config_templ…
30pctx.SourcePathVariable("JavaHostUnitTestConfigTemplate", "build/make/core/java_host_unit_test_con…
31pctx.SourcePathVariable("NativeBenchmarkTestConfigTemplate", "build/make/core/native_benchmark_tes…
32pctx.SourcePathVariable("NativeHostTestConfigTemplate", "build/make/core/native_host_test_config_t…
33pctx.SourcePathVariable("NativeTestConfigTemplate", "build/make/core/native_test_config_template.x…
34pctx.SourcePathVariable("PythonBinaryHostTestConfigTemplate", "build/make/core/python_binary_host_…
[all …]
/build/soong/cc/config/
Dglobal.go161 var pctx = android.NewPackageContext("android/soong/cc/config") var
188 pctx.VariableFunc("CommonClangGlobalCflags", func(ctx android.PackageVarContext) string {
213 pctx.VariableFunc("DeviceClangGlobalCflags", func(ctx android.PackageVarContext) string {
228 pctx.PrefixedExistentPathsForSourcesVariable("CommonGlobalIncludes", "-I",
241 pctx.SourcePathVariable("ClangDefaultBase", ClangDefaultBase)
242 pctx.VariableFunc("ClangBase", func(ctx android.PackageVarContext) string {
248 pctx.VariableFunc("ClangVersion", func(ctx android.PackageVarContext) string {
254 pctx.StaticVariable("ClangPath", "${ClangBase}/${HostPrebuiltTag}/${ClangVersion}")
255 pctx.StaticVariable("ClangBin", "${ClangPath}/bin")
257 pctx.VariableFunc("ClangShortVersion", func(ctx android.PackageVarContext) string {
[all …]
Darm_device.go170 pctx.StaticVariable("armGccVersion", armGccVersion)
172 pctx.SourcePathVariable("ArmGccRoot",
175 pctx.StaticVariable("ArmLdflags", strings.Join(armLdflags, " "))
176 pctx.StaticVariable("ArmLldflags", strings.Join(armLldflags, " "))
179pctx.StaticVariable("ArmToolchainClangCflags", strings.Join(ClangFilterUnknownCflags(armToolchainC…
180 pctx.StaticVariable("ArmClangCflags", strings.Join(ClangFilterUnknownCflags(armCflags), " "))
181 pctx.StaticVariable("ArmClangLdflags", strings.Join(ClangFilterUnknownCflags(armLdflags), " "))
182 pctx.StaticVariable("ArmClangLldflags", strings.Join(ClangFilterUnknownCflags(armLldflags), " "))
183 pctx.StaticVariable("ArmClangCppflags", strings.Join(ClangFilterUnknownCflags(armCppflags), " "))
186 pctx.StaticVariable("ArmClangArmCflags", strings.Join(ClangFilterUnknownCflags(armArmCflags), " "))
[all …]
Darm64_device.go94 pctx.StaticVariable("arm64GccVersion", arm64GccVersion)
96 pctx.SourcePathVariable("Arm64GccRoot",
99 pctx.StaticVariable("Arm64Ldflags", strings.Join(arm64Ldflags, " "))
100 pctx.StaticVariable("Arm64Lldflags", strings.Join(arm64Lldflags, " "))
102 pctx.StaticVariable("Arm64ClangCflags", strings.Join(ClangFilterUnknownCflags(arm64Cflags), " "))
103 pctx.StaticVariable("Arm64ClangLdflags", strings.Join(ClangFilterUnknownCflags(arm64Ldflags), " "))
104pctx.StaticVariable("Arm64ClangLldflags", strings.Join(ClangFilterUnknownCflags(arm64Lldflags), " …
105pctx.StaticVariable("Arm64ClangCppflags", strings.Join(ClangFilterUnknownCflags(arm64Cppflags), " …
107 pctx.StaticVariable("Arm64ClangArmv8ACflags", strings.Join(arm64ArchVariantCflags["armv8-a"], " "))
108pctx.StaticVariable("Arm64ClangArmv8ABranchProtCflags", strings.Join(arm64ArchVariantCflags["armv8…
[all …]
Dx86_windows_host.go134 pctx.StaticVariable("WindowsGccVersion", windowsGccVersion)
136 pctx.SourcePathVariable("WindowsGccRoot",
139 pctx.StaticVariable("WindowsGccTriple", "x86_64-w64-mingw32")
141 pctx.StaticVariable("WindowsClangCflags", strings.Join(windowsClangCflags, " "))
142 pctx.StaticVariable("WindowsClangLdflags", strings.Join(windowsClangLdflags, " "))
143 pctx.StaticVariable("WindowsClangLldflags", strings.Join(windowsClangLldflags, " "))
144 pctx.StaticVariable("WindowsClangCppflags", strings.Join(windowsClangCppflags, " "))
146 pctx.StaticVariable("WindowsX86ClangCflags",
148 pctx.StaticVariable("WindowsX8664ClangCflags",
150 pctx.StaticVariable("WindowsX86ClangLdflags", strings.Join(windowsX86ClangLdflags, " "))
[all …]
Dx86_linux_host.go119 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 …]
Dx86_device.go107 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 …]
Dx86_64_device.go96 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), " "))
109pctx.StaticVariable("X86_64ClangLdflags", strings.Join(ClangFilterUnknownCflags(x86_64Ldflags), " …
110pctx.StaticVariable("X86_64ClangLldflags", strings.Join(ClangFilterUnknownCflags(x86_64Lldflags), …
111pctx.StaticVariable("X86_64ClangCppflags", strings.Join(ClangFilterUnknownCflags(x86_64Cppflags), …
[all …]
Dx86_darwin_host.go96 pctx.VariableFunc("macSdkRoot", func(ctx android.PackageVarContext) string {
99 pctx.StaticVariable("macMinVersion", "10.10")
100 pctx.VariableFunc("MacArPath", func(ctx android.PackageVarContext) string {
104 pctx.VariableFunc("MacStripPath", func(ctx android.PackageVarContext) string {
108 pctx.VariableFunc("MacToolPath", func(ctx android.PackageVarContext) string {
112 pctx.StaticVariable("DarwinGccVersion", darwinGccVersion)
113 pctx.SourcePathVariable("DarwinGccRoot",
116 pctx.StaticVariable("DarwinGccTriple", "i686-apple-darwin11")
118 pctx.StaticVariable("DarwinClangCflags", strings.Join(darwinClangCflags, " "))
119 pctx.StaticVariable("DarwinClangLdflags", strings.Join(darwinClangLdflags, " "))
[all …]
/build/soong/rust/config/
Dglobal.go24 var pctx = android.NewPackageContext("android/soong/rust/config") var
77 pctx.SourcePathVariable("RustDefaultBase", RustDefaultBase)
78 pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS)
80 pctx.VariableFunc("RustBase", func(ctx android.PackageVarContext) string {
87 pctx.VariableFunc("RustVersion", func(ctx android.PackageVarContext) string {
94 pctx.StaticVariable("RustPath", "${RustBase}/${HostPrebuiltTag}/${RustVersion}")
95 pctx.StaticVariable("RustBin", "${RustPath}/bin")
97 pctx.ImportAs("cc_config", "android/soong/cc/config")
98 pctx.StaticVariable("RustLinker", "${cc_config.ClangBin}/clang++")
99 pctx.StaticVariable("RustLinkerArgs", "")
[all …]
Dx86_linux_host.go40 pctx.StaticVariable("LinuxToolchainRustFlags", strings.Join(LinuxRustFlags, " "))
41 pctx.StaticVariable("LinuxToolchainLinkFlags", strings.Join(LinuxRustLinkFlags, " "))
42 pctx.StaticVariable("LinuxToolchainX86RustFlags", strings.Join(linuxX86Rustflags, " "))
43 pctx.StaticVariable("LinuxToolchainX86LinkFlags", strings.Join(linuxX86Linkflags, " "))
44 pctx.StaticVariable("LinuxToolchainX8664RustFlags", strings.Join(linuxX8664Rustflags, " "))
45 pctx.StaticVariable("LinuxToolchainX8664LinkFlags", strings.Join(linuxX8664Linkflags, " "))
/build/soong/android/
Ddefs.go28 pctx = NewPackageContext("android/soong/android") var
30 cpPreserveSymlinks = pctx.VariableConfigMethod("cpPreserveSymlinks",
36 Phony = pctx.AndroidStaticRule("Phony",
45 GeneratedFile = pctx.AndroidStaticRule("GeneratedFile",
53 Cp = pctx.AndroidStaticRule("Cp",
61 CpIfChanged = pctx.AndroidStaticRule("CpIfChanged",
69 CpExecutable = pctx.AndroidStaticRule("CpExecutable",
77 Touch = pctx.AndroidStaticRule("Touch",
84 Symlink = pctx.AndroidStaticRule("Symlink",
92 ErrorRule = pctx.AndroidStaticRule("Error",
[all …]
Dnotices.go24 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{
Dsingleton.go46 Variable(pctx PackageContext, name, value string)
47 …Rule(pctx PackageContext, name string, params blueprint.RuleParams, argNames ...string) blueprint.…
48 Build(pctx PackageContext, params BuildParams)
60 SetNinjaBuildDir(pctx PackageContext, value string)
65 Eval(pctx PackageContext, ninjaStr string) (string, error)
142 func (s *singletonContextAdaptor) Variable(pctx PackageContext, name, value string) {
143 s.SingletonContext.Variable(pctx.PackageContext, name, value)
146 func (s *singletonContextAdaptor) Rule(pctx PackageContext, name string, params blueprint.RuleParam…
159 rule := s.SingletonContext.Rule(pctx.PackageContext, name, params, argNames...)
166 func (s *singletonContextAdaptor) Build(pctx PackageContext, params BuildParams) {
[all …]
/build/soong/python/
Dbuilder.go29 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/
Dbuilder.go40 pctx = android.NewPackageContext("android/soong/cc") var
43 cc = pctx.AndroidRemoteStaticRule("cc", android.RemoteRuleSupports{Goma: true, RBE: true},
53 ccNoDeps = pctx.AndroidStaticRule("ccNoDeps",
62 ld, ldRE = pctx.RemoteStaticRules("ld",
83 partialLd, partialLdRE = pctx.RemoteStaticRules("partialLd",
99 ar = pctx.AndroidStaticRule("ar",
110 arWithLibs = pctx.AndroidStaticRule("arWithLibs",
120 prefixSymbols = pctx.AndroidStaticRule("prefixSymbols",
127 _ = pctx.SourcePathVariable("stripPath", "build/soong/scripts/strip.sh")
128 _ = pctx.SourcePathVariable("xzCmd", "prebuilts/build-tools/${config.HostPrebuiltTag}/bin/xz")
[all …]
/build/blueprint/
Dpackage_ctx.go253 pctx *packageContext member
276 pctx: p,
289 return v.pctx
300 return packageNamespacePrefix(pkgNames[v.pctx]) + v.name_
308 ninjaStr, err := parseNinjaString(v.pctx.scope, v.value_)
317 return v.pctx.pkgPath + "." + v.name_
321 pctx *packageContext member
349 pctx: p,
392 pctx: p,
405 return v.pctx
[all …]
Dsingleton_ctx.go73 Variable(pctx PackageContext, name, value string)
77 Rule(pctx PackageContext, name string, params RuleParams, argNames ...string) Rule
80 Build(pctx PackageContext, params BuildParams)
88 SetNinjaBuildDir(pctx PackageContext, value string)
97 Eval(pctx PackageContext, ninjaStr string) (string, error)
235 func (s *singletonContext) Variable(pctx PackageContext, name, value string) {
236 s.scope.ReparentTo(pctx)
246 func (s *singletonContext) Rule(pctx PackageContext, name string,
249 s.scope.ReparentTo(pctx)
261 func (s *singletonContext) Build(pctx PackageContext, params BuildParams) {
[all …]
/build/soong/bloaty/
Dbloaty.go30 pctx = android.NewPackageContext("android/soong/bloaty") var
33 bloaty = pctx.AndroidStaticRule("bloaty",
41 bloatyMerger = pctx.AndroidStaticRule("bloatyMerger",
51 pctx.VariableConfigMethod("hostPrebuiltTag", android.Config.PrebuiltOS)
52 pctx.SourcePathVariable("bloaty", "prebuilts/build-tools/${hostPrebuiltTag}/bin/bloaty")
53 pctx.HostBinToolVariable("bloatyMerger", "bloaty_merger")
95 ctx.Build(pctx, android.BuildParams{
105 ctx.Build(pctx, android.BuildParams{
/build/soong/apex/
Dbuilder.go35 pctx = android.NewPackageContext("android/apex") var
39 pctx.Import("android/soong/android")
40 pctx.Import("android/soong/cc/config")
41 pctx.Import("android/soong/java")
42 pctx.HostBinToolVariable("apexer", "apexer")
46 pctx.VariableFunc(name, func(ctx android.PackageVarContext) string {
55 pctx.HostBinToolVariable("avbtool", "avbtool")
56 pctx.HostBinToolVariable("e2fsdroid", "e2fsdroid")
57 pctx.HostBinToolVariable("merge_zips", "merge_zips")
58 pctx.HostBinToolVariable("mke2fs", "mke2fs")
[all …]
/build/soong/xml/
Dxml.go29 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")
87 ctx.Build(pctx, android.BuildParams{
99 ctx.Build(pctx, android.BuildParams{
115 ctx.Build(pctx, android.BuildParams{
/build/soong/java/
Daapt2.go57 var aapt2CompileRule = pctx.AndroidStaticRule("aapt2Compile",
92 ctx.Build(pctx, android.BuildParams{
116 var aapt2CompileZipRule = pctx.AndroidStaticRule("aapt2CompileZip",
134 ctx.Build(pctx, android.BuildParams{
147 var aapt2LinkRule = pctx.AndroidStaticRule("aapt2Link",
164 var fileListToFileRule = pctx.AndroidStaticRule("fileListToFile",
171 var mergeAssetsRule = pctx.AndroidStaticRule("mergeAssets",
190 ctx.Build(pctx, android.BuildParams{
206 ctx.Build(pctx, android.BuildParams{
227 ctx.Build(pctx, android.BuildParams{
[all …]
/build/blueprint/bootstrap/
Dbootstrap.go33 pctx = blueprint.NewPackageContext("github.com/google/blueprint/bootstrap") var
35 …goTestMainCmd = pctx.StaticVariable("goTestMainCmd", filepath.Join(bootstrapDir, "bin", "gotestm…
36 …goTestRunnerCmd = pctx.StaticVariable("goTestRunnerCmd", filepath.Join(bootstrapDir, "bin", "gotes…
37 …pluginGenSrcCmd = pctx.StaticVariable("pluginGenSrcCmd", filepath.Join(bootstrapDir, "bin", "loadp…
39 parallelCompile = pctx.StaticVariable("parallelCompile", func() string {
57 compile = pctx.StaticRule("compile",
68 link = pctx.StaticRule("link",
78 goTestMain = pctx.StaticRule("gotestmain",
86 pluginGenSrc = pctx.StaticRule("pluginGenSrc",
94 test = pctx.StaticRule("test",
[all …]

123456