gn – How can I minimize the Chromium build files?

You are using is_component_build flag which will build many shared libraries to avoid the long linkage time, if it’s not specified. You can just remove that flag, then it will be automatically set to false. That should minimize the number of files output during the compilation process.

Also your build folder includes debug symbols and other files thereby increasing the build folder’s size to a few GBs. Generally even for highly optimized release build, it’s greater than 20 GB and for debug build it’s around 80-100 GB.

So, you should not be comparing the build folder size with the installation folder size. Also, mini_installer will greatly reduce the size of your Chromium fork while distributing your app. So you should consider making an installer for your Chromium fork for distribution to end-users.

Read more here: Source link