I'm new to C++ and Qt. I just need to use pjsip functions to make a SIP connection in Android. I'm using Qt library with Qt-Creator. I'm a little confused.

This is in my mind, I don't know witch one is correct:

1.Import pjsip as a new project and compile it. Import the compiled result to my main project.
If this is true, What type of file is the compiled library for android and how to import it?

2.Add the sources of pjsip to the main project. Then every time I compile the project, pjsip compiles again.
If this is the way, where should I add the sources and how add them to my project?

Thanks