/// <summary> /// compile a single VCFile, do nothing with the OBJ /// </summary> public bool CompileSingleFile(VCFile vcFile, VCProject vcProject, VCConfiguration vcCfg, String additionalCmds = "") { CVXBuildSystem buildSystem; try { buildSystem = new CVXBuildSystem(_vsOutputWindow, _outputPane); } catch (Exception ex) { MessageBox.Show(ex.Message, "ClangVSx Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } String prevEnv = Environment.CurrentDirectory; try { Environment.CurrentDirectory = vcProject.ProjectDirectory; WriteToOutputPane("Project Directory : " + Environment.CurrentDirectory + "\n"); return(buildSystem.CompileSingleFile(vcFile, vcProject, vcCfg, additionalCmds)); } catch (Exception ex) { WriteToOutputPane("Exception During File Compile : \n" + ex.Message + "\n"); } finally { Environment.CurrentDirectory = prevEnv; } return(false); }
/// <summary> /// compile a single VCFile, do nothing with the OBJ /// </summary> public bool CompileSingleFile(VCFile vcFile, VCProject vcProject, VCConfiguration vcCfg, String additionalCmds = "") { CVXBuildSystem buildSystem; try { buildSystem = new CVXBuildSystem(_vsOutputWindow, _outputPane); } catch (System.Exception ex) { MessageBox.Show(ex.Message, "ClangVSx Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } try { return(buildSystem.CompileSingleFile(vcFile, vcProject, vcCfg, additionalCmds)); } catch (System.Exception ex) { WriteToOutputPane("Exception During File Compile : \n" + ex.Message + "\n"); } return(false); }
/// <summary> /// compile a single VCFile, do nothing with the OBJ /// </summary> public bool CompileSingleFile(VCFile vcFile, VCProject vcProject, VCConfiguration vcCfg, String additionalCmds = "") { CVXBuildSystem buildSystem; try { buildSystem = new CVXBuildSystem(_vsOutputWindow, _outputPane); } catch (System.Exception ex) { MessageBox.Show(ex.Message, "ClangVSx Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return false; } try { return buildSystem.CompileSingleFile(vcFile, vcProject, vcCfg, additionalCmds); } catch (System.Exception ex) { WriteToOutputPane("Exception During File Compile : \n" + ex.Message + "\n"); } return false; }
/// <summary> /// compile a single VCFile, do nothing with the OBJ /// </summary> public bool CompileSingleFile(VCFile vcFile, VCProject vcProject, VCConfiguration vcCfg, String additionalCmds = "") { CVXBuildSystem buildSystem; try { buildSystem = new CVXBuildSystem(_vsOutputWindow, _outputPane); } catch (Exception ex) { MessageBox.Show(ex.Message, "ClangVSx Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return false; } String prevEnv = Environment.CurrentDirectory; try { Environment.CurrentDirectory = vcProject.ProjectDirectory; WriteToOutputPane("Project Directory : " + Environment.CurrentDirectory + "\n"); return buildSystem.CompileSingleFile(vcFile, vcProject, vcCfg, additionalCmds); } catch (Exception ex) { WriteToOutputPane("Exception During File Compile : \n" + ex.Message + "\n"); } finally { Environment.CurrentDirectory = prevEnv; } return false; }