private CompileResult ImportCCPPDll(SourceProjectNativeReference reference) { // Depending on platform we'll have to do different stuff if (reference.Platform == "Windows") { // Get paths string dllfile = reference.ReferencePath; string libfile = dllfile.Replace(".dll", ".lib"); // Make sure the library file exists if (!File.Exists(libfile)) { return(new CompileResult(false, $"Unable to locate '{libfile}' which is required when referencing C/C++ code.")); } // Create lib obj Lib lib = new Lib(); if (!lib.FromFile(libfile)) { return(new CompileResult(false, $"Failed to read '{libfile}'. Make sure it's a valid lib file!")); } // Add external bindable this.m_externalBindables.Add(lib); } else { return(new CompileResult(false, "Attempt to reference a non-windows library. This is currently not supported.")); } return(new CompileResult(true)); }
private CompileResult ImportCsDll(SourceProjectNativeReference reference, Domain domain) => throw new NotImplementedException();