Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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;
        }