CommModifyKit.vcxproj 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  64. </ImportGroup>
  65. <!-- 通用属性 -->
  66. <!-- 项目名 CommModifyKit,输出文件名 CommModifyKit.dll(统一命名) -->
  67. <PropertyGroup>
  68. <OutDir>$(SolutionDir)build\$(Configuration)\$(Platform)\</OutDir>
  69. <IntDir>$(SolutionDir)build\obj\CommModifyKit\$(Configuration)\$(Platform)\</IntDir>
  70. <TargetName>CommModifyKit</TargetName>
  71. </PropertyGroup>
  72. <!-- 通用编译选项 -->
  73. <ItemDefinitionGroup>
  74. <ClCompile>
  75. <WarningLevel>Level3</WarningLevel>
  76. <SDLCheck>true</SDLCheck>
  77. <ConformanceMode>true</ConformanceMode>
  78. <PrecompiledHeader>Use</PrecompiledHeader>
  79. <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
  80. <PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).pch</PrecompiledHeaderOutputFile>
  81. <AdditionalIncludeDirectories>..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  82. <PreprocessorDefinitions>CommModifyKit_EXPORTS;_WINDOWS;_USRDLL;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  83. <LanguageStandard>stdcpp14</LanguageStandard>
  84. <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
  85. </ClCompile>
  86. <Link>
  87. <SubSystem>Windows</SubSystem>
  88. <GenerateDebugInformation>true</GenerateDebugInformation>
  89. <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
  90. <!-- 关键:使用 .def 文件作为模块定义,避免 __stdcall 名字修饰 -->
  91. <ModuleDefinitionFile>CommModifyKit.def</ModuleDefinitionFile>
  92. </Link>
  93. </ItemDefinitionGroup>
  94. <!-- Debug 特定 -->
  95. <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
  96. <ClCompile>
  97. <Optimization>Disabled</Optimization>
  98. <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  99. </ClCompile>
  100. </ItemDefinitionGroup>
  101. <!-- Release 特定 -->
  102. <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
  103. <ClCompile>
  104. <Optimization>MaxSpeed</Optimization>
  105. <FunctionLevelLinking>true</FunctionLevelLinking>
  106. <IntrinsicFunctions>true</IntrinsicFunctions>
  107. <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  108. </ClCompile>
  109. <Link>
  110. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  111. <OptimizeReferences>true</OptimizeReferences>
  112. </Link>
  113. </ItemDefinitionGroup>
  114. <!-- 源文件 -->
  115. <ItemGroup>
  116. <ClCompile Include="pch.cpp">
  117. <PrecompiledHeader>Create</PrecompiledHeader>
  118. </ClCompile>
  119. <ClCompile Include="dllmain.cpp" />
  120. <ClCompile Include="exports.cpp" />
  121. <ClCompile Include="Logger.cpp" />
  122. <ClCompile Include="ErrorStore.cpp" />
  123. <ClCompile Include="DriverClient.cpp" />
  124. <ClCompile Include="EventLoop.cpp" />
  125. <ClCompile Include="MonitorManager.cpp" />
  126. </ItemGroup>
  127. <!-- 头文件 -->
  128. <ItemGroup>
  129. <ClInclude Include="pch.h" />
  130. <ClInclude Include="Logger.h" />
  131. <ClInclude Include="ErrorStore.h" />
  132. <ClInclude Include="DriverClient.h" />
  133. <ClInclude Include="EventLoop.h" />
  134. <ClInclude Include="MonitorManager.h" />
  135. <ClInclude Include="..\common\CommKitIoctl.h" />
  136. <ClInclude Include="..\common\CommKitEvents.h" />
  137. </ItemGroup>
  138. <!-- 模块定义文件 -->
  139. <ItemGroup>
  140. <None Include="CommModifyKit.def" />
  141. </ItemGroup>
  142. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  143. <ImportGroup Label="ExtensionTargets" />
  144. </Project>