docs: add readme file for PrintDepsWindows (#3241)
Also add solution file so that VS doesn't recreate it every time. #2745
This commit is contained in:
parent
6297f86cfa
commit
235c5df8de
31
browser_patches/tools/PrintDepsWindows/PrintDeps.sln
Normal file
31
browser_patches/tools/PrintDepsWindows/PrintDeps.sln
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.30320.27
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PrintDeps", "PrintDeps.vcxproj", "{90C6CF9B-BED7-41E9-904D-50BD303BACC8}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{90C6CF9B-BED7-41E9-904D-50BD303BACC8}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{90C6CF9B-BED7-41E9-904D-50BD303BACC8}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{90C6CF9B-BED7-41E9-904D-50BD303BACC8}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{90C6CF9B-BED7-41E9-904D-50BD303BACC8}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{90C6CF9B-BED7-41E9-904D-50BD303BACC8}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{90C6CF9B-BED7-41E9-904D-50BD303BACC8}.Release|x64.Build.0 = Release|x64
|
||||||
|
{90C6CF9B-BED7-41E9-904D-50BD303BACC8}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{90C6CF9B-BED7-41E9-904D-50BD303BACC8}.Release|x86.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {BD2E80ED-0995-43D3-918A-976F61655AD7}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
|
|
|
||||||
12
browser_patches/tools/PrintDepsWindows/README.md
Normal file
12
browser_patches/tools/PrintDepsWindows/README.md
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Tool for printing .exe and .dll dependencies on Windows
|
||||||
|
|
||||||
|
This is similar to `ldd` on linux in that loads specified files and tries to
|
||||||
|
resolve all DLLs referenced by it, printing in the formar `<lib name> => <full path> | "no found"`
|
||||||
|
To minimize dependencies we link all C runtime libraries statically, there is
|
||||||
|
still one dynamic dependency on `dbghelp.dll` which is supposed to be preinstalled
|
||||||
|
on all Windows machines.
|
||||||
|
|
||||||
|
## Build instructions
|
||||||
|
|
||||||
|
Open `PrintDeps.sln` solution in Visual Studio 2019 and build `x64/Release` configuration. We
|
||||||
|
currently commit output binary into `bin/PrintDeps.exe` and bundle it in every npm.
|
||||||
Loading…
Reference in a new issue