Changeset 4414 for pjproject


Ignore:
Timestamp:
Mar 5, 2013 8:21:02 AM (12 years ago)
Author:
riza
Message:

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

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-videodev/config.h

    r4016 r4414  
    133133#endif 
    134134 
     135/** 
     136 * Specify the SDL library name to be linked with Visual Studio project.  
     137 * By default, the name is autodetected based on SDL version ("sdl.lib" or  
     138 * "sdl2.lib"), but application may explicitly specify the library name if this  
     139 * autodetection fails. Common names are: "sdl2.lib" or "sdl.lib". 
     140 * 
     141 * Default: undeclared. 
     142 */ 
     143#ifndef PJMEDIA_SDL_LIB 
     144#   undef PJMEDIA_SDL_LIB 
     145#endif 
    135146 
    136147/** 
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/sdl_dev.c

    r4157 r4414  
    14191419 
    14201420#ifdef _MSC_VER 
    1421 #   if SDL_VERSION_ATLEAST(2,0,0) 
     1421#   if defined(PJMEDIA_SDL_LIB) 
     1422#       pragma comment( lib, PJMEDIA_SDL_LIB) 
     1423#   elif SDL_VERSION_ATLEAST(2,0,0) 
    14221424#       pragma comment( lib, "sdl2.lib") 
    14231425#   elif SDL_VERSION_ATLEAST(1,3,0) 
Note: See TracChangeset for help on using the changeset viewer.