CommModifyKitDriver.vcxproj 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ItemGroup Label="ProjectConfigurations">
  4. <ProjectConfiguration Include="Debug|x64">
  5. <Configuration>Debug</Configuration>
  6. <Platform>x64</Platform>
  7. </ProjectConfiguration>
  8. <ProjectConfiguration Include="Release|x64">
  9. <Configuration>Release</Configuration>
  10. <Platform>x64</Platform>
  11. </ProjectConfiguration>
  12. </ItemGroup>
  13. <PropertyGroup Label="Globals">
  14. <ProjectGuid>{A1B2C3D4-0001-0001-0001-000000000002}</ProjectGuid>
  15. <TemplateGuid>{497e31cb-8862-4f4f-b67a-2b3e74da00a7}</TemplateGuid>
  16. <RootNamespace>CommModifyKit</RootNamespace>
  17. <WindowsTargetPlatformVersion>10.0.28000.0</WindowsTargetPlatformVersion>
  18. <Configuration>Debug</Configuration>
  19. <Platform Condition="'$(Platform)' == ''">x64</Platform>
  20. <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
  21. <ConfigurationType>Driver</ConfigurationType>
  22. <DriverType>KMDF</DriverType>
  23. <DriverTargetPlatform>Universal</DriverTargetPlatform>
  24. <TargetVersion>Windows10</TargetVersion>
  25. </PropertyGroup>
  26. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  27. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
  28. <UseDebugLibraries>true</UseDebugLibraries>
  29. <SpectreMitigation>false</SpectreMitigation>
  30. </PropertyGroup>
  31. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
  32. <UseDebugLibraries>false</UseDebugLibraries>
  33. <SpectreMitigation>false</SpectreMitigation>
  34. </PropertyGroup>
  35. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  36. <ImportGroup Label="ExtensionSettings" />
  37. <ImportGroup Label="PropertySheets">
  38. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
  39. Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
  40. </ImportGroup>
  41. <PropertyGroup>
  42. <!-- 统一输出目录:.sys, .inf, .cat 都在同一位置 -->
  43. <OutDir>$(SolutionDir)build\$(Configuration)\$(Platform)\</OutDir>
  44. <IntDir>$(SolutionDir)build\$(Configuration)\$(Platform)\</IntDir>
  45. <!-- TargetName=CommModifyKit,输出 CommModifyKit.sys
  46. 与 INF/服务名一致 -->
  47. <TargetName>CommModifyKit</TargetName>
  48. <!-- 驱动打包目录 -->
  49. <PackageDir>$(SolutionDir)build\$(Configuration)\$(Platform)\</PackageDir>
  50. <!-- 开发阶段禁用 Inf2Cat 验证(仅测试,发布前需重新启用) -->
  51. <EnableInf2cat>false</EnableInf2cat>
  52. </PropertyGroup>
  53. <ItemDefinitionGroup>
  54. <ClCompile>
  55. <AdditionalIncludeDirectories>..\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  56. <PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
  57. <WarningLevel>Level3</WarningLevel>
  58. <DisableSpecificWarnings>4100;4201;4204;4221</DisableSpecificWarnings>
  59. <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
  60. </ClCompile>
  61. <Link>
  62. <AdditionalDependencies>%(AdditionalDependencies);$(KernelBufferOverflowLib);$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\wdmsec.lib;$(DDK_LIB_PATH)\wdm.lib</AdditionalDependencies>
  63. </Link>
  64. <Inf>
  65. <SpecifyArchitecture>true</SpecifyArchitecture>
  66. <Architecture>x64</Architecture>
  67. <TimeStamp>1.0.0.0</TimeStamp>
  68. </Inf>
  69. <DriverSign>
  70. <FileDigestAlgorithm>SHA256</FileDigestAlgorithm>
  71. </DriverSign>
  72. </ItemDefinitionGroup>
  73. <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
  74. <ClCompile>
  75. <PreprocessorDefinitions>_DBG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  76. </ClCompile>
  77. </ItemDefinitionGroup>
  78. <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
  79. <ClCompile>
  80. <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  81. </ClCompile>
  82. </ItemDefinitionGroup>
  83. <ItemGroup>
  84. <ClCompile Include="DriverEntry.cpp" />
  85. <ClCompile Include="SerialFilter.cpp" />
  86. <ClCompile Include="EventRingBuffer.cpp" />
  87. <ClCompile Include="QueueCallback.cpp" />
  88. <ClCompile Include="ClientConnection.cpp" />
  89. </ItemGroup>
  90. <ItemGroup>
  91. <ClInclude Include="DeviceContext.h" />
  92. <ClInclude Include="SerialFilter.h" />
  93. <ClInclude Include="EventRingBuffer.h" />
  94. <ClInclude Include="QueueCallback.h" />
  95. <ClInclude Include="ClientConnection.h" />
  96. <ClInclude Include="..\common\CommKitIoctl.h" />
  97. <ClInclude Include="..\common\CommKitEvents.h" />
  98. </ItemGroup>
  99. <ItemGroup>
  100. <Inf Include="CommModifyKit.inf" />
  101. </ItemGroup>
  102. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  103. </Project>