Lines Matching refs:pctx
24 var pctx = android.NewPackageContext("android/soong/rust/config") var
63 pctx.SourcePathVariable("RustDefaultBase", RustDefaultBase)
64 pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS)
66 pctx.VariableFunc("RustBase", func(ctx android.PackageVarContext) string {
73 pctx.VariableFunc("RustVersion", func(ctx android.PackageVarContext) string {
80 pctx.StaticVariable("RustPath", "${RustBase}/${HostPrebuiltTag}/${RustVersion}")
81 pctx.StaticVariable("RustBin", "${RustPath}/bin")
83 pctx.ImportAs("ccConfig", "android/soong/cc/config")
84 pctx.StaticVariable("RustLinker", "${ccConfig.ClangBin}/clang++")
85 pctx.StaticVariable("RustLinkerArgs", "-B ${ccConfig.ClangBin} -fuse-ld=lld")
87 pctx.StaticVariable("DeviceGlobalLinkFlags", strings.Join(deviceGlobalLinkFlags, " "))