| 1 | = Building DLL using Visual Studio 2015 = |
| 2 | |
| 3 | As specified [http://www.pjsip.org/pjlib/docs/html/group__pj__dll__target.htm here], the library support generation of dynamic link libraries (dll). |
| 4 | |
| 5 | This guide is the updated version, which will describe the needed step to build using Visual Studio 2015. |
| 6 | |
| 7 | 1. config_site.h modification |
| 8 | {{{ |
| 9 | #define PJ_DLL 1 |
| 10 | #ifdef _LIB |
| 11 | # define PJ_EXPORTING 1 |
| 12 | #endif |
| 13 | }}} |
| 14 | |
| 15 | 2. Source code modification |
| 16 | |
| 17 | Apply the patch attached. Note that the patch is against 2.7.1, and is considered to be committed and included in 2.8. |
| 18 | |
| 19 | 3. Projects file modification |
| 20 | {{{ |
| 21 | - Change project default (Configuration Properties > General > Configuration Type) to Dynamic Library (.dll). |
| 22 | - Add the library input (Configuration Properties > Linker > Input) needed by the library. e.g: pjlib needs ws2_32.lib |
| 23 | - Add the library References, e.g: pjlib-util needs a reference from pjlib |
| 24 | }}} |