Skip to content

Commit

Permalink
删除YY_Thunks_List.hpp,现在由编译系统自动生成。
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Jul 2, 2021
1 parent 580184e commit 673359e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -351,5 +351,5 @@ MigrationBackup/
*.zip
/src/WinXP
/src/Windows2000
/src/Thunks_2
/src/src
/src/YY_Thunks_List.hpp
3 changes: 3 additions & 0 deletions src/Build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ if "%Platform%"=="" set Platform=x86

md "objs\\%Platform%"

::先生成 YY_Thunks_List.hpp
msbuild "%~dp0YY-Thunks.UnitTest.vcxproj" -t:Build_YY_Thunks_List_hpp

call:Build%Platform%


Expand Down
24 changes: 18 additions & 6 deletions src/YY-Thunks.UnitTest.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<RootNamespace>YYThunksUnitTest</RootNamespace>
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
<ProjectSubType>NativeUnitTestProject</ProjectSubType>
<YY_Thunks_List_Path>$(MSBuildThisFileDirectory)YY_Thunks_List.hpp</YY_Thunks_List_Path>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Expand Down Expand Up @@ -63,16 +64,12 @@
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand Down Expand Up @@ -213,12 +210,11 @@
<ClInclude Include="Thunks\kernel32.hpp" />
<ClInclude Include="Thunks\psapi.hpp" />
<ClInclude Include="Thunks\SetupAPI.hpp" />
<ClInclude Include="Thunks\shcore.hpp" />
<ClInclude Include="Thunks\shell32.hpp" />
<ClInclude Include="Thunks\shlwapi.hpp" />
<ClInclude Include="Thunks\user32.hpp" />
<ClInclude Include="Thunks\WS2_32.hpp" />
<ClInclude Include="YY_Thunks_List.hpp" />
<ClInclude Include="Thunks\shcore.hpp" />
</ItemGroup>
<ItemGroup>
<None Include="def\x64\PSAPI2Kernel32.def" />
Expand All @@ -227,4 +223,20 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
<Target Name="Build_YY_Thunks_List_hpp" AfterTargets="BeforeClCompile" Inputs="$(MSBuildProjectFullPath)" Outputs="$(YY_Thunks_List_Path)">
<WriteLinesToFile
File="$(YY_Thunks_List_Path)"
Lines="// 由编译系统根据 $(MSBuildProjectFullPath) 自动生成,手工修改此文件无效!"
Overwrite="true"
Encoding="Unicode"
/>

<WriteLinesToFile
File="$(YY_Thunks_List_Path)"
Lines="#include %22%(ClInclude.Identity)%22"
Overwrite="false"
Encoding="Unicode"
Condition="@(ClInclude-&gt;StartsWith('Thunks%5C'))"
/>
</Target>
</Project>
3 changes: 0 additions & 3 deletions src/YY-Thunks.UnitTest.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@
<ClInclude Include="Thunks\api-ms-win-core-processtopology-obsolete.hpp">
<Filter>Thunks</Filter>
</ClInclude>
<ClInclude Include="YY_Thunks_List.hpp">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="Thunks\api-ms-win-core-memory.hpp">
<Filter>Thunks</Filter>
</ClInclude>
Expand Down
44 changes: 0 additions & 44 deletions src/YY_Thunks_List.hpp

This file was deleted.

0 comments on commit 673359e

Please sign in to comment.