Hello I'd like any advice on how I can go about minimizing the size of the binaries generated by ninja, particularly libjingle_peerconnection_so.so which comes in at a whopping 81M.
For my particular project I will not be using video, so my first attempt included commenting out HAVE_WEBRTC_VIDEO in talk/build/common.gypi. This by itself does not work and yields the following errors. I'd like to confirm that the desired outcome is that by simply commenting out HAVE_WEBRTC_VIDEO in talk/build/common.gypi the binary should not contain any of the code supporting video. Also I'm interested how NullVideoEngine is supposed to work. It seems like it should look just like WebRtcVideoEngine but just with placeholders, is that correct? If there is not already another solution I'll start preparing this patch to share and hopefully integrate. Finally 81M is pretty huge what have others done to optimize the binary size?
=============INITIAL ERRORS=============
../../talk/app/webrtc/java/jni/peerconnection_jni.cc: In member function '_jobject* (anonymous namespace)::JavaVideoRendererWrapper::CricketToJavaFrame(const cricket::VideoFrame*)':
../../talk/app/webrtc/java/jni/peerconnection_jni.cc:1037:29: error: invalid use of incomplete type 'const struct cricket::VideoFrame'
../../talk/app/webrtc/mediastreaminterface.h:49:7: error: forward declaration of 'const struct cricket::VideoFrame'
...A bunch of others that are the same after wrapping these with HAVE_WEBRTC_VIDEO I get the secondary errors...
===========SECONDARY_ERRORS===========
error: undefined reference to 'cricket::WebRtcVideoEngine::SetLogging(int, char const*)'
error: undefined reference to 'cricket::WebRtcVideoEngine::rtp_header_extensions() const'
...This gets more complicated I'm not