Size discrepancy with libcef.dll

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Size discrepancy with libcef.dll

Postby Plinker1961 » Sat Apr 16, 2016 9:54 am

Comparing libcef.dll from my Windows32 3.2623.1397.gaf139d7 build versus the "official" CEF build (from https://cefbuilds.com/), I'm seeing close to a 7MB difference in size (55,746,560 vs. 48,936,448 bytes). Given this is > 10% difference in size, I am concerned that perhaps I am building things incorrectly. I build clean from a plain command-line prompt using a BAT file similar to this:

Code: Select all
set CEF_ROOT=C:\cef_root
set GYP_GENERATORS=ninja,msvs-ninja
set GYP_MSVS_VERSION=2013

python automate-git.py --download-dir=%CEF_ROOT%chromium_git --depot-tools-dir=%CEF_ROOT%depot_tools --client-distrib --build-target=cefclient --force-clean --branch=2623

I have both Visual Studio Professional 2013 (with Update 5) and Visual Studio Professional 2015 (with Update 1) installed on my build machine.

Am I doing something wrong? What would explain this size discrepancy? Does the official build use different GYP flags or other settings?

Any info is appreciated. Thanks!
Plinker1961
Mentor
 
Posts: 65
Joined: Thu Feb 26, 2015 5:14 pm

Re: Size discrepancy with libcef.dll

Postby Plinker1961 » Sat Apr 16, 2016 3:25 pm

Follow-up question: does https://cefbuilds.com/ set GYP_DEFINES=buildtype=Official? Could that be the difference?
Plinker1961
Mentor
 
Posts: 65
Joined: Thu Feb 26, 2015 5:14 pm

Re: Size discrepancy with libcef.dll

Postby magreenblatt » Sun Apr 17, 2016 2:26 am

Plinker1961 wrote:Follow-up question: does https://cefbuilds.com/ set GYP_DEFINES=buildtype=Official? Could that be the difference?

Yes. Also, 2623 branch is built with VS2013.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Size discrepancy with libcef.dll

Postby Plinker1961 » Sun Apr 17, 2016 8:19 pm

I too am building with VS2013. Sounds like the 'official' flag is the difference. Thanks Marshall!
Plinker1961
Mentor
 
Posts: 65
Joined: Thu Feb 26, 2015 5:14 pm

Re: Size discrepancy with libcef.dll

Postby fddima » Sun Apr 17, 2016 11:45 pm

Does anyone know why it is so big difference with buildtype=Official?
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: Size discrepancy with libcef.dll

Postby magreenblatt » Mon Apr 18, 2016 2:22 am

fddima wrote:Does anyone know why it is so big difference with buildtype=Official?

It removes some additional debug code and enables LinkTimeCodeGeneration.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 37 guests