예제 #1
0
        /// <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);
        }
예제 #2
0
파일: CVXOps.cs 프로젝트: quangvd3/ClangVSx
        /// <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);
        }
예제 #3
0
파일: CVXOps.cs 프로젝트: tritao/ClangVSx
        /// <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;
        }
예제 #4
0
파일: CVXOps.cs 프로젝트: DevO2012/ClangVSx
        /// <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;
        }