]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.vc
Get the stock label when stock ID is used with empty label in Create()
[wxWidgets.git] / tests / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include <../build/msw/config.vc>
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 TEST_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO_0) /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME_2_p) \
22 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \
24 /I. $(__DLLFLAG_p) /D_CONSOLE $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG_8) \
25 $(__EXCEPTIONSFLAG_9) $(CPPFLAGS) $(CXXFLAGS)
26 TEST_OBJECTS = \
27 $(OBJS)\test_test.obj \
28 $(OBJS)\test_main.obj \
29 $(OBJS)\test_formatconverter.obj \
30 $(OBJS)\test_regex.obj \
31 $(OBJS)\test_wxregex.obj \
32 $(OBJS)\test_filename.obj \
33 $(OBJS)\test_filesys.obj \
34 $(OBJS)\test_arrays.obj \
35 $(OBJS)\test_hashes.obj \
36 $(OBJS)\test_longlong.obj \
37 $(OBJS)\test_strings.obj \
38 $(OBJS)\test_stdstrings.obj \
39 $(OBJS)\test_unicode.obj \
40 $(OBJS)\test_crt.obj \
41 $(OBJS)\test_bstream.obj \
42 $(OBJS)\test_ffilestream.obj \
43 $(OBJS)\test_filestream.obj \
44 $(OBJS)\test_memstream.obj \
45 $(OBJS)\test_sstream.obj \
46 $(OBJS)\test_zlibstream.obj \
47 $(OBJS)\test_fontmap.obj \
48 $(OBJS)\test_datetime.obj
49
50 ### Conditionally set variables: ###
51
52 !if "$(USE_GUI)" == "0"
53 PORTNAME = base
54 !endif
55 !if "$(USE_GUI)" == "1"
56 PORTNAME = msw
57 !endif
58 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
59 WXDEBUGFLAG = d
60 !endif
61 !if "$(DEBUG_FLAG)" == "1"
62 WXDEBUGFLAG = d
63 !endif
64 !if "$(UNICODE)" == "1"
65 WXUNICODEFLAG = u
66 !endif
67 !if "$(WXUNIV)" == "1"
68 WXUNIVNAME = univ
69 !endif
70 !if "$(SHARED)" == "1"
71 WXDLLFLAG = dll
72 !endif
73 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
74 __DEBUGINFO_0 = /Zi
75 !endif
76 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
77 __DEBUGINFO_0 =
78 !endif
79 !if "$(DEBUG_INFO)" == "0"
80 __DEBUGINFO_0 =
81 !endif
82 !if "$(DEBUG_INFO)" == "1"
83 __DEBUGINFO_0 = /Zi
84 !endif
85 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
86 __DEBUGINFO_1 = /DEBUG
87 !endif
88 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
89 __DEBUGINFO_1 =
90 !endif
91 !if "$(DEBUG_INFO)" == "0"
92 __DEBUGINFO_1 =
93 !endif
94 !if "$(DEBUG_INFO)" == "1"
95 __DEBUGINFO_1 = /DEBUG
96 !endif
97 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
98 ____DEBUGRUNTIME_2_p =
99 !endif
100 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
101 ____DEBUGRUNTIME_2_p = /D_DEBUG
102 !endif
103 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
104 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
105 !endif
106 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
107 ____DEBUGINFO_2_p = /D_DEBUG
108 !endif
109 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
110 ____DEBUGINFO_2_p =
111 !endif
112 !if "$(DEBUG_INFO)" == "0"
113 ____DEBUGINFO_2_p =
114 !endif
115 !if "$(DEBUG_INFO)" == "1"
116 ____DEBUGINFO_2_p = /D_DEBUG
117 !endif
118 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
119 __DEBUGRUNTIME_3 =
120 !endif
121 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
122 __DEBUGRUNTIME_3 = d
123 !endif
124 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
125 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
126 !endif
127 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
128 __DEBUGINFO_3 = d
129 !endif
130 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
131 __DEBUGINFO_3 =
132 !endif
133 !if "$(DEBUG_INFO)" == "0"
134 __DEBUGINFO_3 =
135 !endif
136 !if "$(DEBUG_INFO)" == "1"
137 __DEBUGINFO_3 = d
138 !endif
139 !if "$(BUILD)" == "debug"
140 __OPTIMIZEFLAG_4 = /Od
141 !endif
142 !if "$(BUILD)" == "release"
143 __OPTIMIZEFLAG_4 = /O2
144 !endif
145 !if "$(RUNTIME_LIBS)" == "dynamic"
146 __RUNTIME_LIBS_7 = D
147 !endif
148 !if "$(RUNTIME_LIBS)" == "static"
149 __RUNTIME_LIBS_7 = T
150 !endif
151 !if "$(USE_EXCEPTIONS)" == "0"
152 __EXCEPTIONSFLAG_8 =
153 !endif
154 !if "$(USE_EXCEPTIONS)" == "1"
155 __EXCEPTIONSFLAG_8 = /GR
156 !endif
157 !if "$(USE_EXCEPTIONS)" == "0"
158 __EXCEPTIONSFLAG_9 =
159 !endif
160 !if "$(USE_EXCEPTIONS)" == "1"
161 __EXCEPTIONSFLAG_9 = /GX
162 !endif
163 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
164 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
165 !endif
166 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
167 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
168 !endif
169 !if "$(WXUNIV)" == "1"
170 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
171 !endif
172 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
173 __DEBUG_DEFINE_p = /D__WXDEBUG__
174 !endif
175 !if "$(DEBUG_FLAG)" == "1"
176 __DEBUG_DEFINE_p = /D__WXDEBUG__
177 !endif
178 !if "$(UNICODE)" == "1"
179 __UNICODE_DEFINE_p = /D_UNICODE
180 !endif
181 !if "$(SHARED)" == "1"
182 __DLLFLAG_p = /DWXUSINGDLL
183 !endif
184 !if "$(MONOLITHIC)" == "0"
185 __WXLIB_BASE_p = \
186 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
187 !endif
188 !if "$(MONOLITHIC)" == "1"
189 __WXLIB_MONO_p = \
190 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
191 !endif
192 !if "$(USE_GUI)" == "1"
193 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
194 !endif
195 !if "$(USE_GUI)" == "1"
196 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
197 !endif
198 !if "$(USE_GUI)" == "1"
199 __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
200 !endif
201 !if "$(MSLU)" == "1"
202 __UNICOWS_LIB_p = unicows.lib
203 !endif
204 !if "$(SHARED)" == "0"
205 LIBDIRNAME = .\..\lib\vc_lib$(CFG)
206 !endif
207 !if "$(SHARED)" == "1"
208 LIBDIRNAME = .\..\lib\vc_dll$(CFG)
209 !endif
210
211
212 all: $(OBJS)
213 $(OBJS):
214 -if not exist $(OBJS) mkdir $(OBJS)
215
216 ### Targets: ###
217
218 all: $(OBJS)\test.exe data
219
220 clean:
221 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
222 -if exist $(OBJS)\*.res del $(OBJS)\*.res
223 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
224 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
225 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
226
227 $(OBJS)\test.exe: $(TEST_OBJECTS)
228 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
229 $(TEST_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib
230 <<
231
232 data:
233 if not exist $(OBJS) mkdir $(OBJS)
234 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
235
236 $(OBJS)\test_test.obj: .\test.cpp
237 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
238
239 $(OBJS)\test_main.obj: .\mbconv\main.cpp
240 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
241
242 $(OBJS)\test_formatconverter.obj: .\formatconverter\formatconverter.cpp
243 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
244
245 $(OBJS)\test_regex.obj: .\regex\regex.cpp
246 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
247
248 $(OBJS)\test_wxregex.obj: .\regex\wxregex.cpp
249 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
250
251 $(OBJS)\test_filename.obj: .\filename\filename.cpp
252 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
253
254 $(OBJS)\test_filesys.obj: .\filesys\filesys.cpp
255 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
256
257 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
258 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
259
260 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
261 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
262
263 $(OBJS)\test_longlong.obj: .\longlong\longlong.cpp
264 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
265
266 $(OBJS)\test_strings.obj: .\strings\strings.cpp
267 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
268
269 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
270 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
271
272 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
273 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
274
275 $(OBJS)\test_crt.obj: .\strings\crt.cpp
276 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
277
278 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
279 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
280
281 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
282 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
283
284 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
285 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
286
287 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
288 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
289
290 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
291 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
292
293 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
294 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
295
296 $(OBJS)\test_fontmap.obj: .\fontmap\fontmap.cpp
297 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
298
299 $(OBJS)\test_datetime.obj: .\datetime\datetime.cpp
300 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**