|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 # if !defined (_STLP_NO_OWN_IOSTREAMS) |
|
18 |
|
19 # if ! defined (_STLP_LIB_STATIC_SUFFIX) |
|
20 # define _STLP_LIB_STATIC_SUFFIX "" |
|
21 # endif |
|
22 |
|
23 // Note : the code below is intended to make use of compiled |
|
24 // STLport iostreams easier. If you are with to change names used for |
|
25 // STLport libraries , please also change RELEASE_NAME and DEBUG_NAME |
|
26 // macros in makefile ../../src/vc6.mak (or whatever .mak you are using to build |
|
27 // STLport). If you are using binaries, you may just rename the binaries. |
|
28 # if ! defined (__BUILDING_STLPORT) && ! defined (_STLP_DONT_FORCE_MSVC_LIB_NAME) |
|
29 # if defined (_STLP_USE_DECLSPEC) |
|
30 # ifdef _STLP_DEBUG |
|
31 # pragma comment(lib, _STLP_LIB_BASENAME"_stldebug.lib") |
|
32 # elif (defined (_DEBUG) || defined (__DEBUG)) && defined (_STLP_USE_DEBUG_LIB) |
|
33 # pragma comment(lib, _STLP_LIB_BASENAME"_debug.lib") |
|
34 # else |
|
35 # pragma comment(lib, _STLP_LIB_BASENAME".lib") |
|
36 # endif |
|
37 # else /* _STLP_USE_DECLSPEC */ |
|
38 // fbp : for static linking, debug setting _MUST_ correspond to what |
|
39 // has been compiled into binary lib |
|
40 # ifdef _STLP_DEBUG |
|
41 # if (! defined (_DEBUG)) |
|
42 # error "For static link with STLport library, _DEBUG setting MUST be on when _STLP_DEBUG is on. (/MTd forces _DEBUG)" |
|
43 # endif |
|
44 # pragma comment(lib, _STLP_LIB_BASENAME"_stldebug"_STLP_LIB_STATIC_SUFFIX".lib") |
|
45 # elif (defined (_DEBUG) || defined (__DEBUG)) && defined (_STLP_USE_DEBUG_LIB) |
|
46 # pragma comment(lib, _STLP_LIB_BASENAME"_debug"_STLP_LIB_STATIC_SUFFIX".lib") |
|
47 # else |
|
48 # pragma comment(lib, _STLP_LIB_BASENAME""_STLP_LIB_STATIC_SUFFIX".lib") |
|
49 # endif |
|
50 # endif /* _STLP_USE_DECLSPEC */ |
|
51 # endif /* __BUILDING_STLPORT */ |
|
52 # endif /* _STLP_OWN_IOSTREAMS */ |