public vtConfiguration(IConfiguration configuration) { if (configuration == null) { return; } setupType = configuration.setupType; name = configuration.name; guid = configuration.guid; //sharedLibraries = configuration.sharedLibs.Select(lib => lib.path); //projectLibraries = configuration.localLibs.Select(lib => lib.isLocalSource ? lib.path : lib.unversionedLibFolder); sharedLibraries = configuration.sharedLibs.Select(lib => lib.sourceUri.Segments.Last()); projectLibraries = configuration.localLibs.Select(lib => lib.sourceUri.Segments.Last()); makefileExtension = configuration.makefileExtension; compilerBase = configuration.compilerBase.path; coreBase = configuration.coreBase.path; //copyCore = configuration.copyCore; coreStrategy = configuration.coreStrategy; stdLib = configuration.stdLib; // boardTxtPath = configuration.boardTxtPath; // copyBoardTxt = configuration.copyBoardTxt; board = new vtBoard(configuration.selectedBoard); }
public vtConfiguration(IConfiguration configuration) { if (configuration == null) { return; } setupType = configuration.setupType; name = configuration.name; guid = configuration.guid; sharedLibraries = configuration.sharedLibs.Select(lib => lib.path); localLibraries = configuration.localLibs.Select(lib => lib.sourceType == Library.SourceType.local ? lib.path : lib.unversionedLibFolder); makefileExtension = configuration.makefileExtension; compilerBase = configuration.compilerBase; coreBase = configuration.coreBase; copyCore = configuration.copyCore; boardTxtPath = configuration.boardTxtPath; copyBoardTxt = configuration.copyBoardTxt; board = new vtBoard(configuration.selectedBoard); }