From 235c5df8debf62245143c38264e9a925c1ffab0e Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 30 Jul 2020 15:39:29 -0700 Subject: [PATCH] docs: add readme file for PrintDepsWindows (#3241) Also add solution file so that VS doesn't recreate it every time. #2745 --- .../tools/PrintDepsWindows/PrintDeps.sln | 31 +++++++++++++++++++ .../tools/PrintDepsWindows/PrintDeps.vcxproj | 2 +- .../tools/PrintDepsWindows/README.md | 12 +++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 browser_patches/tools/PrintDepsWindows/PrintDeps.sln create mode 100644 browser_patches/tools/PrintDepsWindows/README.md diff --git a/browser_patches/tools/PrintDepsWindows/PrintDeps.sln b/browser_patches/tools/PrintDepsWindows/PrintDeps.sln new file mode 100644 index 0000000000..aba6b1e5c4 --- /dev/null +++ b/browser_patches/tools/PrintDepsWindows/PrintDeps.sln @@ -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 diff --git a/browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj b/browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj index a72bde9dbb..2d09565f9e 100644 --- a/browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj +++ b/browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj @@ -131,7 +131,7 @@ true NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true - MultiThreadedDLL + MultiThreaded Console diff --git a/browser_patches/tools/PrintDepsWindows/README.md b/browser_patches/tools/PrintDepsWindows/README.md new file mode 100644 index 0000000000..69c7ad0e4e --- /dev/null +++ b/browser_patches/tools/PrintDepsWindows/README.md @@ -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 ` => | "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. \ No newline at end of file