31
|
1 |
/* We do not use auto link feature when:
|
|
2 |
* - user asked not to use it (_STLP_DONT_USE_AUTO_LINK)
|
|
3 |
* - STLport is used only as a STL library (_STLP_NO_IOSTREAMS || _STLP_USE_NO_IOSTREAMS)
|
|
4 |
* - we are building a C translation unit, STLport is a C++ Standard library implementation
|
|
5 |
*/
|
|
6 |
#if !defined (__BUILDING_STLPORT) && !defined (_STLP_DONT_USE_AUTO_LINK) && \
|
|
7 |
!defined (_STLP_NO_IOSTREAMS) && !defined (_STLP_USE_NO_IOSTREAMS) && \
|
|
8 |
defined (__cplusplus)
|
|
9 |
|
|
10 |
# define _STLP_STRINGIZE(X) _STLP_STRINGIZE_AUX(X)
|
|
11 |
# define _STLP_STRINGIZE_AUX(X) #X
|
|
12 |
|
|
13 |
# if defined (_STLP_DEBUG)
|
|
14 |
# define _STLP_LIB_OPTIM_MODE "stld"
|
|
15 |
# elif defined (_DEBUG)
|
|
16 |
# define _STLP_LIB_OPTIM_MODE "d"
|
|
17 |
# else
|
|
18 |
# define _STLP_LIB_OPTIM_MODE ""
|
|
19 |
# endif
|
|
20 |
|
|
21 |
# if defined (_STLP_LIB_NAME_MOTIF)
|
|
22 |
# define _STLP_LIB_MOTIF "_"_STLP_LIB_NAME_MOTIF
|
|
23 |
# else
|
|
24 |
# define _STLP_LIB_MOTIF ""
|
|
25 |
# endif
|
|
26 |
|
|
27 |
# if defined (_STLP_USE_DYNAMIC_LIB)
|
|
28 |
# if defined (_STLP_USING_CROSS_NATIVE_RUNTIME_LIB)
|
|
29 |
# define _STLP_LIB_TYPE "_x"
|
|
30 |
# else
|
|
31 |
# define _STLP_LIB_TYPE ""
|
|
32 |
# endif
|
|
33 |
# else
|
|
34 |
# if defined (_STLP_USING_CROSS_NATIVE_RUNTIME_LIB)
|
|
35 |
# define _STLP_LIB_TYPE "_statix"
|
|
36 |
# else
|
|
37 |
# define _STLP_LIB_TYPE "_static"
|
|
38 |
# endif
|
|
39 |
# endif
|
|
40 |
|
|
41 |
# define _STLP_VERSION_STR _STLP_STRINGIZE(_STLPORT_MAJOR)"."_STLP_STRINGIZE(_STLPORT_MINOR)
|
|
42 |
|
|
43 |
# define _STLP_STLPORT_LIB "stlport"_STLP_LIB_OPTIM_MODE""_STLP_LIB_TYPE""_STLP_LIB_MOTIF"."_STLP_VERSION_STR".lib"
|
|
44 |
|
|
45 |
# if defined (_STLP_VERBOSE_AUTO_LINK)
|
|
46 |
# pragma message ("STLport: Auto linking to "_STLP_STLPORT_LIB)
|
|
47 |
# endif
|
|
48 |
# pragma comment (lib, _STLP_STLPORT_LIB)
|
|
49 |
|
|
50 |
# undef _STLP_STLPORT_LIB
|
|
51 |
# undef _STLP_LIB_OPTIM_MODE
|
|
52 |
# undef _STLP_LIB_TYPE
|
|
53 |
# undef _STLP_STRINGIZE_AUX
|
|
54 |
# undef _STLP_STRINGIZE
|
|
55 |
|
|
56 |
#endif /* _STLP_DONT_USE_AUTO_LINK */
|
|
57 |
|