Hi there!
I am trying to build WebRTC statically and using it to build sort of Android
Java Library with no luck so far.
Actually I am able to build WebRTC successfully using different targets such
as `AppRTCMobile`, `libjingle_peerconnection{,_jni,_so,_java}`. I am not sure how
to create a libwebrtc.a static library properly though.
I have tried everything but when I build the JNI interface I hit a ton of link
errors because undefined references. Clearly I do not know how to create a valid
libwebrtc.a static library.
The way I create the libwebrtc.a static library is kind of tricky. Let's say
I use the `libjingle_peerconnection_jni` build target, then I create the graph
of the target by using ninja tool
(|ninja -C <OUT_DIR> libjingle_peerconnection_jni -t graph) and parse the output.
By parsing the output I have a list of the static libraries the target 'depends
on'. Then I use the ar tool to create my libwebrtc.a library.
So, my questions are the following ones:
i) Which would be the build target to build WebRTC in order to create a static
library later?
ii) What is the proper way to create this static library?
Cheers,
jaoo
PS. Adding +Henrik Kjellander