CommModifyKit.vcxproj 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ItemGroup Label="ProjectConfigurations">
  4. <ProjectConfiguration Include="Debug|Win32">
  5. <Configuration>Debug</Configuration>
  6. <Platform>Win32</Platform>
  7. </ProjectConfiguration>
  8. <ProjectConfiguration Include="Release|Win32">
  9. <Configuration>Release</Configuration>
  10. <Platform>Win32</Platform>
  11. </ProjectConfiguration>
  12. <ProjectConfiguration Include="Debug|x64">
  13. <Configuration>Debug</Configuration>
  14. <Platform>x64</Platform>
  15. </ProjectConfiguration>
  16. <ProjectConfiguration Include="Release|x64">
  17. <Configuration>Release</Configuration>
  18. <Platform>x64</Platform>
  19. </ProjectConfiguration>
  20. </ItemGroup>
  21. <PropertyGroup Label="Globals">
  22. <VCProjectVersion>16.0</VCProjectVersion>
  23. <Keyword>Win32Proj</Keyword>
  24. <ProjectGuid>{A1B2C3D4-0001-0001-0001-000000000001}</ProjectGuid>
  25. <RootNamespace>CommModifyKit</RootNamespace>
  26. <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
  27. </PropertyGroup>
  28. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  29. <!-- Debug|Win32 -->
  30. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
  31. <ConfigurationType>DynamicLibrary</ConfigurationType>
  32. <UseDebugLibraries>true</UseDebugLibraries>
  33. <PlatformToolset>v142</PlatformToolset>
  34. <CharacterSet>Unicode</CharacterSet>
  35. </PropertyGroup>
  36. <!-- Release|Win32 -->
  37. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
  38. <ConfigurationType>DynamicLibrary</ConfigurationType>
  39. <UseDebugLibraries>false</UseDebugLibraries>
  40. <PlatformToolset>v142</PlatformToolset>
  41. <WholeProgramOptimization>true</WholeProgramOptimization>
  42. <CharacterSet>Unicode</CharacterSet>
  43. </PropertyGroup>
  44. <!-- Debug|x64 -->
  45. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
  46. <ConfigurationType>DynamicLibrary</ConfigurationType>
  47. <UseDebugLibraries>true</UseDebugLibraries>
  48. <PlatformToolset>v142</PlatformToolset>
  49. <CharacterSet>Unicode</CharacterSet>
  50. </PropertyGroup>
  51. <!-- Release|x64 -->
  52. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
  53. <ConfigurationType>DynamicLibrary</ConfigurationType>
  54. <UseDebugLibraries>false</UseDebugLibraries>
  55. <PlatformToolset>v142</PlatformToolset>
  56. <WholeProgramOptimization>true</WholeProgramOptimization>
  57. <CharacterSet>Unicode</CharacterSet>
  58. </PropertyGroup>
  59. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  60. <ImportGroup Label="ExtensionSettings" />
  61. <ImportGroup Label="Shared" />
  62. <ImportGroup Label="PropertySheets">
  63. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
  64. Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
  65. Label="LocalAppDataPlatform" />
  66. </ImportGroup>
  67. <!-- 通用属性 -->
  68. <!-- 项目名 CommModifyKit,输出文件名 CommModifyKit.dll(统一命名) -->
  69. <PropertyGroup>
  70. <OutDir>$(SolutionDir)build\$(Configuration)\$(Platform)\</OutDir>
  71. <IntDir>$(SolutionDir)build\obj\CommModifyKit\$(Configuration)\$(Platform)\</IntDir>
  72. <TargetName>CommModifyKit</TargetName>
  73. </PropertyGroup>
  74. <!-- 通用编译选项 -->
  75. <ItemDefinitionGroup>
  76. <ClCompile>
  77. <WarningLevel>Level3</WarningLevel>
  78. <SDLCheck>true</SDLCheck>
  79. <ConformanceMode>true</ConformanceMode>
  80. <PrecompiledHeader>Use</PrecompiledHeader>
  81. <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
  82. <PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).pch</PrecompiledHeaderOutputFile>
  83. <AdditionalIncludeDirectories>..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  84. <PreprocessorDefinitions>CommModifyKit_EXPORTS;_WINDOWS;_USRDLL;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  85. <LanguageStandard>stdcpp14</LanguageStandard>
  86. <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
  87. </ClCompile>
  88. <Link>
  89. <SubSystem>Windows</SubSystem>
  90. <GenerateDebugInformation>true</GenerateDebugInformation>
  91. <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
  92. <!-- 关键:使用 .def 文件作为模块定义,避免 __stdcall 名字修饰 -->
  93. <ModuleDefinitionFile>CommModifyKit.def</ModuleDefinitionFile>
  94. </Link>
  95. </ItemDefinitionGroup>
  96. <!-- Debug 特定 -->
  97. <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
  98. <ClCompile>
  99. <Optimization>Disabled</Optimization>
  100. <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  101. </ClCompile>
  102. </ItemDefinitionGroup>
  103. <!-- Release 特定 -->
  104. <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
  105. <ClCompile>
  106. <Optimization>MaxSpeed</Optimization>
  107. <FunctionLevelLinking>true</FunctionLevelLinking>
  108. <IntrinsicFunctions>true</IntrinsicFunctions>
  109. <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  110. </ClCompile>
  111. <Link>
  112. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  113. <OptimizeReferences>true</OptimizeReferences>
  114. </Link>
  115. </ItemDefinitionGroup>
  116. <!-- 源文件 -->
  117. <ItemGroup>
  118. <ClCompile Include="pch.cpp">
  119. <PrecompiledHeader>Create</PrecompiledHeader>
  120. </ClCompile>
  121. <ClCompile Include="dllmain.cpp" />
  122. <ClCompile Include="exports.cpp" />
  123. <ClCompile Include="Logger.cpp" />
  124. <ClCompile Include="ErrorStore.cpp" />
  125. <ClCompile Include="DriverClient.cpp" />
  126. <ClCompile Include="EventLoop.cpp" />
  127. <ClCompile Include="MonitorManager.cpp" />
  128. </ItemGroup>
  129. <!-- 头文件 -->
  130. <ItemGroup>
  131. <ClInclude Include="pch.h" />
  132. <ClInclude Include="Logger.h" />
  133. <ClInclude Include="ErrorStore.h" />
  134. <ClInclude Include="DriverClient.h" />
  135. <ClInclude Include="EventLoop.h" />
  136. <ClInclude Include="MonitorManager.h" />
  137. <ClInclude Include="..\common\CommKitIoctl.h" />
  138. <ClInclude Include="..\common\CommKitEvents.h" />
  139. </ItemGroup>
  140. <!-- 模块定义文件 -->
  141. <ItemGroup>
  142. <None Include="CommModifyKit.def" />
  143. </ItemGroup>
  144. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  145. <ImportGroup Label="ExtensionTargets" />
  146. </Project>