From ca47896204482bf4a6979e3838bf7f09f61cebeb Mon Sep 17 00:00:00 2001 From: giy <giy@omp-system.ru> Date: Fri, 02 Sep 2022 14:16:56 +0300 Subject: [PATCH] Обновление до версии 2.9.0 --- QtVsTools.Core/CompilerToolWrapper.cs | 81 +--------------------------------------- 1 files changed, 2 insertions(+), 79 deletions(-) diff --git a/QtVsTools.Core/CompilerToolWrapper.cs b/QtVsTools.Core/CompilerToolWrapper.cs index b9d95fc..f502f62 100644 --- a/QtVsTools.Core/CompilerToolWrapper.cs +++ b/QtVsTools.Core/CompilerToolWrapper.cs @@ -26,11 +26,11 @@ ** ****************************************************************************/ -using Microsoft.VisualStudio.VCProjectEngine; using System; using System.Collections.Generic; using System.IO; using System.Reflection; +using Microsoft.VisualStudio.VCProjectEngine; namespace QtVsTools.Core { @@ -44,7 +44,7 @@ /// Using VCCLCompilerTool directly will break the VS integration for Win CE. class CompilerToolWrapper { - private VCCLCompilerTool compilerTool; + private readonly VCCLCompilerTool compilerTool; private readonly Object compilerObj; private readonly Type compilerType; @@ -302,13 +302,6 @@ return GetStringProperty("AdditionalIncludeDirectories"); } - public string GetPrecompiledHeaderFile() - { - if (compilerTool != null) - return compilerTool.PrecompiledHeaderFile; - return GetStringProperty("PrecompiledHeaderFile"); - } - public string GetPrecompiledHeaderThrough() { if (compilerTool != null) @@ -326,20 +319,6 @@ if (obj == null) return pchOption.pchNone; return (pchOption)obj; - } - - public void SetDebugInformationFormat(debugOption value) - { - if (compilerTool != null) { - compilerTool.DebugInformationFormat = value; - } else { - compilerType.InvokeMember( - "DebugInformationFormat", - BindingFlags.SetProperty, - null, - compilerObj, - new object[] { value }); - } } public runtimeLibraryOption RuntimeLibrary @@ -364,62 +343,6 @@ } else { compilerTool.RuntimeLibrary = value; } - } - } - - public void SetOptimization(optimizeOption value) - { - if (compilerTool != null) { - compilerTool.Optimization = value; - } else { - compilerType.InvokeMember( - "Optimization", - BindingFlags.SetProperty, - null, - compilerObj, - new object[] { value }); - } - } - - public void SetTreatWChar_tAsBuiltInType(bool value) - { - if (compilerTool != null) { - compilerTool.TreatWChar_tAsBuiltInType = value; - } else { - compilerType.InvokeMember( - "TreatWChar_tAsBuiltInType", - BindingFlags.SetProperty, - null, - compilerObj, - new object[] { value }); - } - } - - public void SetPrecompiledHeaderFile(string file) - { - if (compilerTool != null) { - compilerTool.PrecompiledHeaderFile = file; - } else { - compilerType.InvokeMember( - "PrecompiledHeaderFile", - BindingFlags.SetProperty, - null, - compilerObj, - new object[] { file }); - } - } - - public void SetPrecompiledHeaderThrough(string value) - { - if (compilerTool != null) { - compilerTool.PrecompiledHeaderThrough = value; - } else { - compilerType.InvokeMember( - "PrecompiledHeaderThrough", - BindingFlags.SetProperty, - null, - compilerObj, - new object[] { value }); } } -- Gitblit v1.9.1