|
1 /* |
|
2 * Copyright (c) 2002-2006 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: Windows menubar for S60 emulator |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 //#include <platform_paths.hrh> |
|
20 #include "..\menubar\EcmtMenubarUids.h" |
|
21 |
|
22 #ifndef ENABLE_NMIT_INTEGRATION |
|
23 # define ENABLE_NMIT_INTEGRATION 1 |
|
24 #endif // ENABLE_NMIT_INTEGRATION |
|
25 |
|
26 // DRM is enabled by default |
|
27 #ifndef ENABLE_DRM_SUPPORT |
|
28 # define ENABLE_DRM_SUPPORT 1 |
|
29 #endif // ENABLE_DRM_SUPPORT |
|
30 |
|
31 // NOTE: this .mmp file may be included from another mmp file. The "parent" |
|
32 // mmp file may define one of the following environment variables to 1: |
|
33 // |
|
34 // ENABLE_SDK_REGISTRATION - enables product registration functionality |
|
35 // ENABLE_NMIT_INTEGRATION - enables NMIT integration |
|
36 // |
|
37 // If this mmp file is used "as is", these variables are not defined and |
|
38 // therefore the above functionality is not available. In addition to that, |
|
39 // the "parent" mmp file will probably define ECMT_MENUBAR_DLL variable |
|
40 // to avoid DLL name collision. |
|
41 |
|
42 #ifndef ECMT_MENUBAR_DLL |
|
43 # define ECMT_MENUBAR_DLL EcmtMenubar.dll |
|
44 #endif // ECMT_MENUBAR_DLL |
|
45 |
|
46 #ifndef ECMT_MENUBAR_RC |
|
47 # define ECMT_MENUBAR_RC EcmtMenubar.rc |
|
48 #endif // ECMT_MENUBAR_RC |
|
49 |
|
50 TARGET ECMT_MENUBAR_DLL |
|
51 TARGETTYPE DLL |
|
52 UID 0x1000008D KECMT_MENUBAR_UID //Shared Library |
|
53 CAPABILITY CAP_GENERAL_DLL |
|
54 |
|
55 // Both Forum Nokia and external builds use slib and wlib |
|
56 MACRO HAVE_SLIB |
|
57 MACRO HAVE_WLIB |
|
58 USERINCLUDE ..\..\NmitShared\src\native\wlib |
|
59 USERINCLUDE ..\..\NmitShared\src\native\slib\include |
|
60 |
|
61 // This enables linking with debug libraries. Note that this flag may also |
|
62 // be defined in ecmtmenubar2.mmp which includes this .mmp file. |
|
63 //#define DEBUG_LIBS |
|
64 #ifdef DEBUG_LIBS |
|
65 // Let the compiler know that we are linking with debug libraries from |
|
66 // NmitShared. |
|
67 MACRO NMIT_DEBUG_LIBS |
|
68 #endif // DEBUG_LIBS |
|
69 |
|
70 SOURCEPATH ..\menubar |
|
71 SOURCE WinMenubar.cpp |
|
72 SOURCE AboutBox.cpp |
|
73 SOURCE LoadDialog.cpp |
|
74 SOURCE EcmtMenubar.cpp |
|
75 SOURCE EcmtMenubarProxy.cpp |
|
76 SOURCE EcmtMenubarUtils.cpp |
|
77 SOURCE EcmtMenubarFileUtils.cpp |
|
78 SOURCE ImageDataObject.cpp |
|
79 |
|
80 USERINCLUDE . |
|
81 USERINCLUDE ..\menubar |
|
82 USERINCLUDE ..\..\..\sdkconnectivityfw\emuconnectserver\core\inc |
|
83 USERINCLUDE ..\..\loggingapi\inc |
|
84 USERINCLUDE ..\..\emulatorplugins\sdk\inc |
|
85 USERINCLUDE ..\osutils\inc |
|
86 APP_LAYER_SYSTEMINCLUDE |
|
87 |
|
88 #if ENABLE_SDK_REGISTRATION |
|
89 MACRO SDK_REGISTRATION |
|
90 USERINCLUDE ..\..\..\Registration\native\reglib\include |
|
91 #endif // ENABLE_SDK_REGISTRATION |
|
92 |
|
93 #if ENABLE_NMIT_INTEGRATION |
|
94 #define ENABLE_PUSH_SUPPORT |
|
95 MACRO NMIT_INTEGRATION |
|
96 SYSTEMINCLUDE \epoc32\include\push |
|
97 SYSTEMINCLUDE \epoc32\include\ecom |
|
98 SYSTEMINCLUDE \sf\mw\messagingmw\messagingfw\wappushfw\pushwatcher\inc |
|
99 USERINCLUDE ..\..\NMIT\lib\include |
|
100 |
|
101 LIBRARY xrpcrt.lib |
|
102 # ifdef DEBUG_LIBS |
|
103 // debug |
|
104 LIBRARY nmitlibd.lib |
|
105 # else |
|
106 // release |
|
107 LIBRARY nmitlib.lib |
|
108 #endif // DEBUG_LIBS |
|
109 #endif // ENABLE_NMIT_INTEGRATION |
|
110 |
|
111 #if defined(ENABLE_PUSH_SUPPORT) || defined(ENABLE_DRM_SUPPORT) |
|
112 LIBRARY estor.lib |
|
113 #endif //ENABLE_PUSH_SUPPORT || ENABLE_DRM_SUPPORT |
|
114 |
|
115 #ifdef ENABLE_PUSH_SUPPORT |
|
116 MACRO PUSH_SUPPORT |
|
117 SOURCE Push.cpp |
|
118 LIBRARY WapPushUtils.lib |
|
119 LIBRARY viewcli.lib |
|
120 #endif // ENABLE_PUSH_SUPPORT |
|
121 |
|
122 #if ENABLE_DRM_SUPPORT |
|
123 MACRO DRM_SUPPORT |
|
124 USERINCLUDE ..\..\NmitShared\src\native\httpfile\include |
|
125 SOURCE DRM.cpp |
|
126 LIBRARY apmime.lib |
|
127 LIBRARY ServiceHandler.lib |
|
128 LIBRARY DrmParsers.lib |
|
129 # ifdef DEBUG_LIBS |
|
130 LIBRARY httpfiled.lib |
|
131 # else |
|
132 LIBRARY httpfile.lib |
|
133 # endif |
|
134 #endif // ENABLE_DRM_SUPPORT |
|
135 |
|
136 #if ENABLE_SDK_REGISTRATION |
|
137 # ifdef DEBUG_LIBS |
|
138 LIBRARY reglibd.lib |
|
139 LIBRARY zlibd.lib |
|
140 # else |
|
141 LIBRARY reglib.lib |
|
142 LIBRARY zlib.lib |
|
143 # endif |
|
144 #endif // ENABLE_SDK_REGISTRATION |
|
145 |
|
146 #ifdef DEBUG_LIBS |
|
147 LIBRARY wlibd.lib |
|
148 LIBRARY slibd.lib |
|
149 #else |
|
150 LIBRARY wlib.lib |
|
151 LIBRARY slib.lib |
|
152 #endif |
|
153 |
|
154 LIBRARY efsrv.lib |
|
155 LIBRARY apgrfx.lib |
|
156 LIBRARY euser.lib |
|
157 LIBRARY ws32.lib |
|
158 LIBRARY cone.lib |
|
159 LIBRARY eikcore.lib |
|
160 LIBRARY emulator.lib |
|
161 LIBRARY platformenv.lib |
|
162 LIBRARY InetProtUtil.lib |
|
163 LIBRARY EcmtClient.lib |
|
164 LIBRARY EcmtOsUtils.lib |
|
165 LIBRARY EcmtSdkPlugin.lib |
|
166 LIBRARY CommonUI.lib |
|
167 LIBRARY charconv.lib |
|
168 |
|
169 |
|
170 // Always link with msvcrt.lib (or msvcrtd.lib if we are using debug |
|
171 // libraries), otherwise static C-runtime supplied by CodeWarrior does |
|
172 // not get properly initialized and malloc (and possibly other C-runtime |
|
173 // functions) crash. Moving msvcrt from WIN32_LIBRARY to LIBRARY category |
|
174 // helps the linker to resolve more reverences in favor or msvcrt.dll |
|
175 // The path here must be relative (as opposed to WIN32_LIBRARY where |
|
176 // path must be absolute - how convenient!). |
|
177 #ifdef DEBUG_LIBS |
|
178 LIBRARY ..\..\..\..\PublicSDK\sdkcreationmw\sdkcommonutils\mslibs\msvcrtd.lib |
|
179 #else |
|
180 LIBRARY ..\..\..\..\PublicSDK\sdkcreationmw\sdkcommonutils\mslibs\msvcrt.lib |
|
181 #endif |
|
182 |
|
183 START WINS |
|
184 |
|
185 // |
|
186 // Unfortunately, it's impossible to use relative path to the libraries |
|
187 // so that it works in all configurations, i.e. command line and IDE builds |
|
188 // in both Visual Studio and CodeWarrior. We have to assume that the build |
|
189 // area is mapped to a drive letter. |
|
190 // |
|
191 |
|
192 #if ENABLE_SDK_REGISTRATION |
|
193 WIN32_LIBRARY ..\..\..\..\PublicSDK\sdkcreationmw\sdkcommonutils\mslibs\comctl32.lib |
|
194 #endif // ENABLE_SDK_REGISTRATION |
|
195 |
|
196 WIN32_LIBRARY \publicsdk\sdkcreationmw\sdkcommonutils\mslibs\uuid.lib |
|
197 WIN32_LIBRARY \PublicSDK\sdkcreationmw\sdkcommonutils\mslibs\comdlg32.lib |
|
198 WIN32_LIBRARY \PublicSDK\sdkcreationmw\sdkcommonutils\mslibs\shell32.lib |
|
199 WIN32_LIBRARY \PublicSDK\sdkcreationmw\sdkcommonutils\mslibs\ole32.lib |
|
200 |
|
201 WIN32_RESOURCE ..\menubar\ECMT_MENUBAR_RC |
|
202 |
|
203 WIN32_LIBRARY user32.lib |
|
204 WIN32_LIBRARY kernel32.lib |
|
205 WIN32_LIBRARY advapi32.lib |
|
206 WIN32_LIBRARY gdi32.lib |
|
207 |
|
208 END |
|
209 |
|
210 /* |
|
211 * Local Variables: |
|
212 * mode: c |
|
213 * c-basic-offset: 4 |
|
214 * indent-tabs-mode: nil |
|
215 * compile-command: "./ABLD.BAT build winscw udeb ecmtmenubar" |
|
216 * End: |
|
217 */ |
|
218 |