mirror of
https://github.com/HullaBrian/ttd-capa
synced 2026-08-09 12:08:34 +00:00
Win32 metadata index (win32json) drives per-call signature lookup so arguments are captured at their true arity and type, [Out] params are re-read at the call's return position, and buffers are dumped as bytes.
122 lines
6.9 KiB
XML
122 lines
6.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ItemGroup Label="ProjectConfigurations">
|
|
<ProjectConfiguration Include="Debug|x64">
|
|
<Configuration>Debug</Configuration>
|
|
<Platform>x64</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Release|x64">
|
|
<Configuration>Release</Configuration>
|
|
<Platform>x64</Platform>
|
|
</ProjectConfiguration>
|
|
</ItemGroup>
|
|
<PropertyGroup Label="Globals">
|
|
<VCProjectVersion>17.0</VCProjectVersion>
|
|
<ProjectGuid>{B2D4A1C7-3E5F-4A9B-9C2D-1F6E7A8B0C11}</ProjectGuid>
|
|
<RootNamespace>ttdcapaextract</RootNamespace>
|
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
|
<!-- Must match the installed Microsoft.TimeTravelDebugging.Apis NuGet version. -->
|
|
<TTDApiVersion>0.9.5</TTDApiVersion>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
|
<ConfigurationType>Application</ConfigurationType>
|
|
<UseDebugLibraries>true</UseDebugLibraries>
|
|
<PlatformToolset>v145</PlatformToolset>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
|
<ConfigurationType>Application</ConfigurationType>
|
|
<UseDebugLibraries>false</UseDebugLibraries>
|
|
<PlatformToolset>v145</PlatformToolset>
|
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
<!-- Keep build artifacts tidy and out of the source tree:
|
|
obj\<Platform>\<Config>\ intermediate files (.obj, .tlog, .ilk, compiler .pdb)
|
|
bin\<Platform>\<Config>\ final outputs (.exe, linker .pdb, deployed TTD DLLs)
|
|
Anchored to the project directory so the layout is the same no matter where
|
|
MSBuild/Visual Studio is invoked from. -->
|
|
<PropertyGroup>
|
|
<OutDir>$(MSBuildProjectDirectory)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
<IntDir>$(MSBuildProjectDirectory)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
</PropertyGroup>
|
|
<!-- TTD NuGet props: wires up include + library search paths.
|
|
Without this you get "unresolved external symbol CreateReplayEngine". -->
|
|
<Import Project="packages\Microsoft.TimeTravelDebugging.Apis.$(TTDApiVersion)\build\native\Microsoft.TimeTravelDebugging.Apis.props" Condition="Exists('packages\Microsoft.TimeTravelDebugging.Apis.$(TTDApiVersion)\build\native\Microsoft.TimeTravelDebugging.Apis.props')" />
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<SDLCheck>true</SDLCheck>
|
|
<PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
|
</ClCompile>
|
|
<Link>
|
|
<SubSystem>Console</SubSystem>
|
|
<AdditionalDependencies>TTDReplay.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
|
<ClCompile>
|
|
<Optimization>MaxSpeed</Optimization>
|
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
</ClCompile>
|
|
<Link>
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
<OptimizeReferences>true</OptimizeReferences>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemGroup>
|
|
<ClCompile Include="src\abi_x64.cpp" />
|
|
<ClCompile Include="src\main.cpp" />
|
|
<ClCompile Include="src\ttd_pe_utils.cpp" />
|
|
<ClCompile Include="src\ttdutils.cpp" />
|
|
<ClCompile Include="src\utils.cpp" />
|
|
<ClCompile Include="src\win32meta.cpp" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClInclude Include="src\abi_x64.hpp" />
|
|
<ClInclude Include="src\ttd_pe_utils.hpp" />
|
|
<ClInclude Include="src\ttdutils.hpp" />
|
|
<ClInclude Include="src\utils.hpp" />
|
|
<ClInclude Include="src\win32meta.hpp" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="packages.config" />
|
|
</ItemGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
<!-- Fail early with a helpful message if NuGet packages were not restored. -->
|
|
<Target Name="EnsureTTDPackage" BeforeTargets="PrepareForBuild">
|
|
<Error Condition="!Exists('packages\Microsoft.TimeTravelDebugging.Apis.$(TTDApiVersion)\build\native\Microsoft.TimeTravelDebugging.Apis.props')" Text="Missing Microsoft.TimeTravelDebugging.Apis $(TTDApiVersion). Run 'nuget restore' (or restore packages in Visual Studio) before building." />
|
|
</Target>
|
|
<!-- Deploy the runtime DLLs next to the .exe. Download them once via
|
|
TTD\ReplayApi\GetTtd\Get-Ttd.ps1 (see ReplayAPI.md section 2, step 4),
|
|
then point TTDRuntimeDir at the platform folder, or drop the DLLs into
|
|
packages\...\build\native\bin\x64\ so this copy picks them up. -->
|
|
<PropertyGroup>
|
|
<TTDRuntimeDir Condition="'$(TTDRuntimeDir)'==''">packages\Microsoft.TimeTravelDebugging.Apis.$(TTDApiVersion)\build\native\bin\x64</TTDRuntimeDir>
|
|
</PropertyGroup>
|
|
<Target Name="CopyTTDRuntime" AfterTargets="Build">
|
|
<ItemGroup>
|
|
<TTDRuntime Include="$(TTDRuntimeDir)\TTDReplay.dll;$(TTDRuntimeDir)\TTDReplayCPU.dll" />
|
|
</ItemGroup>
|
|
<Copy SourceFiles="@(TTDRuntime)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="true" Condition="'@(TTDRuntime)'!=''" ContinueOnError="true" />
|
|
</Target>
|
|
<!-- The Win32 metadata index the argument decoder reads at startup. Regenerate
|
|
with tools\build-win32-index.py after bumping the win32json submodule; the
|
|
extractor still runs (heuristically) if it is absent. -->
|
|
<Target Name="CopyWin32Index" AfterTargets="Build">
|
|
<Copy SourceFiles="data\win32-index.bin" DestinationFolder="$(OutDir)" SkipUnchangedFiles="true" Condition="Exists('data\win32-index.bin')" />
|
|
<Warning Condition="!Exists('data\win32-index.bin')" Text="data\win32-index.bin is missing; run 'python tools\build-win32-index.py' to enable metadata-driven argument decoding." />
|
|
</Target>
|
|
<Import Project="packages\nlohmann.json.3.12.0\build\native\nlohmann.json.targets" Condition="Exists('packages\nlohmann.json.3.12.0\build\native\nlohmann.json.targets')" />
|
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
|
<PropertyGroup>
|
|
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
|
</PropertyGroup>
|
|
<Error Condition="!Exists('packages\nlohmann.json.3.12.0\build\native\nlohmann.json.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\nlohmann.json.3.12.0\build\native\nlohmann.json.targets'))" />
|
|
</Target>
|
|
</Project> |