Skip to content

Commit

Permalink
docs: add readme file for PrintDepsWindows (#3241)
Browse files Browse the repository at this point in the history
Also add solution file so that VS doesn't recreate it every time.

#2745
  • Loading branch information
yury-s authored Jul 30, 2020
1 parent 6297f86 commit 235c5df
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
31 changes: 31 additions & 0 deletions browser_patches/tools/PrintDepsWindows/PrintDeps.sln
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
12 changes: 12 additions & 0 deletions browser_patches/tools/PrintDepsWindows/README.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 235c5df

Please sign in to comment.