Building release-like version of Chromium

135 views
Skip to first unread message

Roman

unread,
Nov 27, 2016, 9:58:03 AM11/27/16
to Chromium-dev
Hello, 

I'm pretty new to Chromium..

I've successfully built Chromium from source code. However, while chromium is linked with different dll's like the v8.dll, I see that Chrome that installed on my computer linked only with chrome.dll, chrome_child.dll and chrome_elf.dll . 

Is it possible to build Chromium in the same way as the release Chrome version (i.e. by specifying gn parameters)?

Thank you!

Primiano Tucci

unread,
Nov 27, 2016, 10:07:24 AM11/27/16
to ro...@cybellum.com, Chromium-dev

what you are seeing is what is called component build", where each component is a separate dll. this is typically used for speeding up builds as reduces linking time.
what you want is the following gn args :
is_debug = false
is_component_build = false
is_official_build = true

the latter enable some further compiler optimizations and give a binary which has the same performances of the real chrome that is shipped to public.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Nico Weber

unread,
Nov 27, 2016, 3:33:49 PM11/27/16
to Primiano Tucci, ro...@cybellum.com, Chromium-dev
Note that the component build is enabled by default in debug builds, but isn't by default in release builds. Without any gn args, the build defaults to a debug (and, hence, component) build. If you just say `is_debug = false` then you'll get a release (and, hence, non-component) build – so you technically don't need the second line that Primiano posted (but it doesn't hurt, and it's more explicit). is_official_build enables more expensive optimizations that make the binary a bit faster (but it also makes links very slow).

Roman Kesler

unread,
Nov 28, 2016, 10:01:48 AM11/28/16
to Nico Weber, Primiano Tucci, Chromium-dev
Thank you, it worked!
Reply all
Reply to author
Forward
0 new messages