chromium dll 依赖 Windows

chromium dll dependency on Windows

我正在按照 https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/windows_build_instructions.md, it finishes successfully and generated chrome.exe runs well. However i found that my chrome.exe requires base.dll and lots of other dlls but official Chromium builds from https://download-chromium.appspot.com/ 上的步骤构建 chromium,不需要这些 dll。

我的问题是如何构建我的 chrome.exe 以使其以与官方包相同的方式工作,这意味着不依赖于这些 dll?

看起来您是 运行 Chromium 的调试版本,它将创建许多共享库以在运行时加载。您应该构建 Chromium 的发布版本。为发布版本或构建文件夹中 args.gn 文件的内容设置这些参数:

is_debug = false
is_component_build = false

第一个参数将告诉 GN 构建发布版本,第二个参数将创建更少的共享库以实现高效运行。