Size of prebuilt Chromium framework vs. build from source

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 of prebuilt Chromium framework vs. build from source

Postby sjames1958 » Tue Apr 13, 2021 8:40 am

When I build CEF on macOS using the instructions from the wiki the size of
Chromium Embedded Framework.framework/Chromium Embedded Framework is 338M
While the one with the cef_binary distribution is only 153M
What flags / settings do I need to make these the same.
I made sure I am comparing release to release build.

ls -lh build/chromium/src/cef/binary_distrib/cef_binary_89.0.18+gb36241d+chromium-89.0.4389.114_macosx64/Release/Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework
-rwxr-xr-x 1 xxxxxx staff 338M Apr 8 06:07 build/chromium/src/cef/binary_distrib/cef_binary_89.0.18+gb36241d+chromium-89.0.4389.114_macosx64/Release/Chromium Embedded Framework.framework/Chromium Embedded Framework
sjames1958
Techie
 
Posts: 34
Joined: Sun Jun 22, 2014 7:41 am

Re: Size of prebuilt Chromium framework vs. build from sourc

Postby magreenblatt » Tue Apr 13, 2021 9:19 am

Official builds use the settings from here
magreenblatt
Site Admin
 
Posts: 10858
Joined: Fri May 29, 2009 6:57 pm

Re: Size of prebuilt Chromium framework vs. build from sourc

Postby sjames1958 » Tue Apr 13, 2021 10:31 am

Thanks - appreciate your quick responses.
sjames1958
Techie
 
Posts: 34
Joined: Sun Jun 22, 2014 7:41 am

Re: Size of prebuilt Chromium framework vs. build from sourc

Postby sjames1958 » Wed Apr 14, 2021 5:17 pm

I built using the following and the Framework file is still 354M
python ./automate-git.py --download-dir=. --minimal-distrib --client-distrib --no-debug-build --x64-build --branch=4389

21707045 692792 -rwxr-xr-x 1 sjames staff 354708104 Apr 14 14:59 ./chromium/src/cef/binary_distrib/cef_binary_89.0.18+gb36241d+chromium-89.0.4389.114_macosx64_minimal/Release/Chromium Embedded Framework.framework/Chromium Embedded Framework
sjames1958
Techie
 
Posts: 34
Joined: Sun Jun 22, 2014 7:41 am

Re: Size of prebuilt Chromium framework vs. build from sourc

Postby magreenblatt » Wed Apr 14, 2021 6:40 pm

did you set the GN_DEFINES?
magreenblatt
Site Admin
 
Posts: 10858
Joined: Fri May 29, 2009 6:57 pm

Re: Size of prebuilt Chromium framework vs. build from sourc

Postby sjames1958 » Thu Apr 15, 2021 7:27 am

My bad - I did not -
sjames1958
Techie
 
Posts: 34
Joined: Sun Jun 22, 2014 7:41 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], prsolucoes and 15 guests

cron