Page 1 of 1

Size of prebuilt Chromium framework vs. build from source

PostPosted: Tue Apr 13, 2021 8:40 am
by sjames1958
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

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

PostPosted: Tue Apr 13, 2021 9:19 am
by magreenblatt
Official builds use the settings from here

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

PostPosted: Tue Apr 13, 2021 10:31 am
by sjames1958
Thanks - appreciate your quick responses.

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

PostPosted: Wed Apr 14, 2021 5:17 pm
by sjames1958
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

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

PostPosted: Wed Apr 14, 2021 6:40 pm
by magreenblatt
did you set the GN_DEFINES?

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

PostPosted: Thu Apr 15, 2021 7:27 am
by sjames1958
My bad - I did not -