public override void CompileDynamicLibrary(string outFile, IEnumerable<string> sources, IEnumerable<string> includePaths, IEnumerable<string> libraries, IEnumerable<string> libraryPaths)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   GccCompiler.\u003CCompileDynamicLibrary\u003Ec__AnonStorey73 libraryCAnonStorey73 = new GccCompiler.\u003CCompileDynamicLibrary\u003Ec__AnonStorey73();
   // ISSUE: reference to a compiler-generated field
   libraryCAnonStorey73.\u003C\u003Ef__this = this;
   string[] array = sources.ToArray<string>();
   // ISSUE: reference to a compiler-generated field
   libraryCAnonStorey73.includeDirs = includePaths.Aggregate<string, string>(string.Empty, (Func<string, string, string>) ((current, sourceDir) => current + "-I" + sourceDir + " "));
   string empty = string.Empty;
   string str = NativeCompiler.Aggregate(libraryPaths.Union<string>((IEnumerable<string>) this.m_Settings.LibPaths), "-L", " ");
   // ISSUE: reference to a compiler-generated method
   NativeCompiler.ParallelFor<string>(array, new System.Action<string>(libraryCAnonStorey73.\u003C\u003Em__FD));
   this.ExecuteCommand(this.m_Settings.LinkerPath, string.Format("-shared {0} -o {1}", (object) this.m_Settings.MachineSpecification, (object) outFile), ((IEnumerable<string>) array).Where<string>(new Func<string, bool>(NativeCompiler.IsSourceFile)).Select<string, string>(new Func<string, string>(((NativeCompiler) this).ObjectFileFor)).Aggregate<string>((Func<string, string, string>) ((buff, s) => buff + " " + s)), str, empty);
 }
Exemple #2
0
        public override void CompileDynamicLibrary(string outFile, IEnumerable <string> sources, IEnumerable <string> includePaths, IEnumerable <string> libraries, IEnumerable <string> libraryPaths)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            GccCompiler.\u003CCompileDynamicLibrary\u003Ec__AnonStorey73 libraryCAnonStorey73 = new GccCompiler.\u003CCompileDynamicLibrary\u003Ec__AnonStorey73();
            // ISSUE: reference to a compiler-generated field
            libraryCAnonStorey73.\u003C\u003Ef__this = this;
            string[] array = sources.ToArray <string>();
            // ISSUE: reference to a compiler-generated field
            libraryCAnonStorey73.includeDirs = includePaths.Aggregate <string, string>(string.Empty, (Func <string, string, string>)((current, sourceDir) => current + "-I" + sourceDir + " "));
            string empty = string.Empty;
            string str   = NativeCompiler.Aggregate(libraryPaths.Union <string>((IEnumerable <string>) this.m_Settings.LibPaths), "-L", " ");

            // ISSUE: reference to a compiler-generated method
            NativeCompiler.ParallelFor <string>(array, new System.Action <string>(libraryCAnonStorey73.\u003C\u003Em__FD));
            this.ExecuteCommand(this.m_Settings.LinkerPath, string.Format("-shared {0} -o {1}", (object)this.m_Settings.MachineSpecification, (object)outFile), ((IEnumerable <string>)array).Where <string>(new Func <string, bool>(NativeCompiler.IsSourceFile)).Select <string, string>(new Func <string, string>(((NativeCompiler)this).ObjectFileFor)).Aggregate <string>((Func <string, string, string>)((buff, s) => buff + " " + s)), str, empty);
        }