Misc (re #1559): add macro PJMEDIA_SDL_LIB to manually specify SDL library name on MSVC

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4414 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Riza Sulistyo 2013-03-05 08:21:02 +00:00
parent d4f0ba486a
commit 4741b802e6
2 changed files with 14 additions and 1 deletions

View File

@ -132,6 +132,17 @@ PJ_BEGIN_DECL
# define PJMEDIA_VIDEO_DEV_HAS_AVI 1
#endif
/**
* Specify the SDL library name to be linked with Visual Studio project.
* By default, the name is autodetected based on SDL version ("sdl.lib" or
* "sdl2.lib"), but application may explicitly specify the library name if this
* autodetection fails. Common names are: "sdl2.lib" or "sdl.lib".
*
* Default: undeclared.
*/
#ifndef PJMEDIA_SDL_LIB
# undef PJMEDIA_SDL_LIB
#endif
/**
* @}

View File

@ -1418,7 +1418,9 @@ static pj_status_t job_queue_destroy(job_queue *jq)
}
#ifdef _MSC_VER
# if SDL_VERSION_ATLEAST(2,0,0)
# if defined(PJMEDIA_SDL_LIB)
# pragma comment( lib, PJMEDIA_SDL_LIB)
# elif SDL_VERSION_ATLEAST(2,0,0)
# pragma comment( lib, "sdl2.lib")
# elif SDL_VERSION_ATLEAST(1,3,0)
# pragma comment( lib, "sdl.lib")