static MonoTouchLinkContext CreateLinkContext(LinkerOptions options, Pipeline pipeline) { var context = new MonoTouchLinkContext(pipeline, options.Resolver); context.CoreAction = options.LinkMode == LinkMode.None ? AssemblyAction.Copy : AssemblyAction.Link; context.LinkSymbols = options.LinkSymbols; context.OutputDirectory = options.OutputDirectory; context.SetParameter("debug-build", options.DebugBuild.ToString()); options.LinkContext = context; return(context); }
static MonoTouchLinkContext CreateLinkContext(LinkerOptions options, Pipeline pipeline) { var context = new MonoTouchLinkContext(pipeline, options.Resolver); context.CoreAction = options.LinkMode == LinkMode.None ? AssemblyAction.Copy : AssemblyAction.Link; context.LinkSymbols = options.LinkSymbols; context.OutputDirectory = options.OutputDirectory; context.SetParameter("debug-build", options.DebugBuild.ToString()); context.StaticRegistrar = options.Target.StaticRegistrar; context.Target = options.Target; context.ExcludedFeatures = new [] { "remoting", "com", "sre" }; options.LinkContext = context; return(context); }
static MonoTouchLinkContext CreateLinkContext(LinkerOptions options, Pipeline pipeline) { var context = new MonoTouchLinkContext(pipeline, options.Resolver); context.CoreAction = options.LinkMode == LinkMode.None ? AssemblyAction.Copy : AssemblyAction.Link; context.LinkSymbols = options.LinkSymbols; context.OutputDirectory = options.OutputDirectory; context.SetParameter("debug-build", options.DebugBuild.ToString()); context.Target = options.Target; context.ExcludedFeatures = new [] { "remoting", "com", "sre" }; context.SymbolWriterProvider = new CustomSymbolWriterProvider(); if (options.Application.Optimizations.StaticConstructorBeforeFieldInit == false) { context.DisabledOptimizations |= CodeOptimizations.BeforeFieldInit; } options.LinkContext = context; return(context); }
static MonoTouchLinkContext CreateLinkContext(LinkerOptions options, Pipeline pipeline) { var context = new MonoTouchLinkContext (pipeline, options.Resolver); context.CoreAction = options.LinkMode == LinkMode.None ? AssemblyAction.Copy : AssemblyAction.Link; context.LinkSymbols = options.LinkSymbols; context.OutputDirectory = options.OutputDirectory; context.SetParameter ("debug-build", options.DebugBuild.ToString ()); options.LinkContext = context; return context; }