[wishlist] make the qtwebengine dependency optional
Currently, the chat view relies on qtwebengine, which essentially pulls chromium as a dependency. This is unfortunate as it makes the dependency closure of the flagship Jami client (jami-qt) very large, partially defeating its advantage over other non-native, browser-based clients such as Element for Matrix. It also takes a heavy toll on our build infrastructure (building our own Qt with qtwebengine is a 1 h + endeavor), and causes the client to be heavier/slower than it could be.
Using guix, we can see that the single largest input is qtwebengine, which adds 177.3 MiB to the closure of jami-qt, or 8.3% of the total closure size of 2127.7 MiB for jami-qt.
$ guix size /gnu/store/dvqfj833fs1b0g9w3132i0im8daprzhd-jami-qt-20210606.1.e2f9490 | head -20
store item total self
/gnu/store/j8q3hlazx7ngkf3ia7ljb18w94sp5h05-qtwebengine-5.15.2 1414.3 177.6 8.3%
/gnu/store/g3idjpqsp2p2d163qfzskxj4k58nrx7f-llvm-11.0.0 220.0 148.6 7.0%
/gnu/store/jf269s6clr6r57p8v5c3c1qkyra6apq2-mesa-20.2.4 389.1 141.6 6.7%
/gnu/store/kiaxg9xx41f8r4sfx5ma8cpj7pm9hsci-qtbase-5.15.2 976.2 80.0 3.8%
/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2 171.4 79.8 3.8%
/gnu/store/50dgafsf2f8gc0wck312mrcy5qzxah70-rav1e-0.4.1 144.2 73.2 3.4%
/gnu/store/34197npl3zlfljj558jw3dbwicm7lp79-ibus-1.5.22 997.3 66.3 3.1%
/gnu/store/ca8id6cpgfbzjrqnvjridnyjnag26hzd-efl-1.25.1 1208.1 64.6 3.0%
/gnu/store/8zvc5mvk0xm3ygrxsgpyy5ilxb5rzjry-perl-5.30.2 146.2 57.1 2.7%
/gnu/store/8y5l11mg2zy5gn7nm2limhiydxg1g2v9-mozjs-60.2.3-2 248.3 54.7 2.6%
/gnu/store/18hp7flyb3yid3yp49i6qcdq0sbi5l1n-guile-3.0.2 132.8 53.2 2.5%
/gnu/store/yy9x0l71843ab761sqnrkmr0za4rvsnx-gtk+-3.24.24 744.3 49.1 2.3%
/gnu/store/2wqjj3mkqdvsvksndr2hpjpi7qqwi7kr-icu4c-66.1 110.2 38.1 1.8%
/gnu/store/73p5rzka1cb9dx9fy059lmkf1jg6sv95-gtk+-2.24.32 423.0 37.5 1.8%
/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31 38.4 36.7 1.7%
/gnu/store/algqy05yg02mrvn8qc0kk6myjis44y5n-ghostscript-with-cups-9.52 222.0 33.9 1.6%
/gnu/store/w51vh96iwyak66yyifyba0nrlp777kgl-gcc-8.5.0-lib 72.0 33.7 1.6%
/gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib 71.0 32.6 1.5%
/gnu/store/ij1kx6wlcnq014jd6mr7acicpinvz3xp-ghostscript-9.52 138.5 30.8 1.4%
Or as an image (produced with guix size --map-file=jami-qt-closure.png /gnu/store/dvqfj833fs1b0g9w3132i0im8daprzhd-jami-qt-20210606.1.e2f9490
: