About building my own Chrome Browser instead of ChromeOS

37 views
Skip to first unread message

Vincent Haiou Jiang

unread,
Nov 26, 2011, 3:54:20 AM11/26/11
to Chromium-dev
Hi folks,
Chromium is really a wonderful project, and I am curious about it.
I have tried to build my own Chrome Browser, but each time I got a
ChromeOS binary, and it's so large(more than 1G).
I only need to build a light Chrome Browser instead of ChromeOS,
and could you please help me out? Smaller the binary is will be
preferred. Maybe less than 10M is wonderful.
Besides, I will sincerely appreciate that you can guide me to
custom the compilation to make Chrome Browser binary lighter. Thanks.

Best regards,
Vincent

Lei Zhang

unread,
Nov 26, 2011, 4:12:29 AM11/26/11
to haiou...@gmail.com, Chromium-dev
You don't need ChromiumOS to build Chromium.

I doubt you can build a 10 MB Chromium binary given the amount of code
that goes into Chromium. The recent thread titled "Chromium Lite" has
some tips on reducing the size of your build.

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

Hai-Ou Jiang

unread,
Nov 26, 2011, 4:45:24 AM11/26/11
to Lei Zhang, Chromium-dev
Hi Lei,
     "I doubt you can build a 10 MB Chromium binary given the amount of code
that goes into Chromium."
     Which source code should I use to build a 10 MB Chromium binary instead of Chrome OS source code? And could you please show me the detail command? Thanks.

Best regards,
Vincent 

2011/11/26 Lei Zhang <the...@chromium.org>

Kazuhiro Inaba

unread,
Nov 26, 2011, 4:55:57 AM11/26/11
to Chromium-dev, Hai-Ou Jiang, Lei Zhang
http://www.chromium.org/developers/how-tos > Build instructionsshould
help you.

Hai-Ou Jiang

unread,
Nov 26, 2011, 4:57:03 AM11/26/11
to Kazuhiro Inaba, Lei Zhang, Chromium-dev
Hi Kazuhiro,
     I have followed the instruction, "make chrome", then I got a chrome binary sized about 1.1G. I just want to build a 10M chrome browser, so can you give me some suggestions?
     Thanks.

Best regards,
Vincent

2011/11/26 Kazuhiro Inaba <kin...@google.com>
http://www.chromium.org/developers/how-tosBuild instructions
should help you.

2011年11月26日18:45 Hai-Ou Jiang <haiou...@gmail.com>:

Kazuhiro Inaba

unread,
Nov 26, 2011, 4:58:39 AM11/26/11
to Chromium-dev, Hai-Ou Jiang, Lei Zhang
http://www.chromium.org/developers/how-tos > Build instructionsshould
help you.
On 11月26日, 午後6:45, Hai-Ou Jiang <haiou...@gmail.com> wrote:

Kazuhiro Inaba

unread,
Nov 26, 2011, 5:04:48 AM11/26/11
to Chromium-dev, Hai-Ou Jiang, Kazuhiro Inaba, Lei Zhang
You might want to try "make BUILDTYPE=Release chrome", which gave me
85M binary.

Hai-Ou Jiang

unread,
Nov 26, 2011, 7:50:13 AM11/26/11
to Kazuhiro Inaba, Chromium-dev
 Hi Kazuhiro,
      Thanks for your help, and the binary is 84M now. Would you please tell me how to build it to 10M if you know?

Best regards,
Vincent

PhistucK

unread,
Nov 26, 2011, 7:56:23 AM11/26/11
to haiou...@gmail.com, Kazuhiro Inaba, Chromium-dev
Like Lei said, there is no 10 MB binary of Chromium. You will have to remove parts of it in order to reach this size.
On Windows, chrome.dll alone is more than 35 MBs.

PhistucK



2011/11/26 Hai-Ou Jiang <haiou...@gmail.com>

Paweł Hajdan, Jr.

unread,
Nov 26, 2011, 8:00:02 AM11/26/11
to phis...@gmail.com, haiou...@gmail.com, Kazuhiro Inaba, Chromium-dev
You can try using more system libraries, see http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-client/chromium/ for some examples. With a possibly different version my Linux chrome binary is 43 MB. Note that some gyp flags used in the ebuilds referenced above are not supported and may break at any time.

2011/11/26 PhistucK <phis...@gmail.com>

Hai-Ou Jiang

unread,
Nov 26, 2011, 8:24:26 AM11/26/11
to Paweł Hajdan, Jr., phis...@gmail.com, Kazuhiro Inaba, Chromium-dev
OK, thanks all you folks, and I'll try it.

2011/11/26 Paweł Hajdan, Jr. <phajd...@chromium.org>
Reply all
Reply to author
Forward
0 new messages