]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.vc
give an error message if we're built in Unicode mode (in response to bug 1079224)
[wxWidgets.git] / tests / makefile.vc
CommitLineData
670ec357
VS
1# =========================================================================
2# This makefile was generated by
1b035b8c 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
670ec357
VS
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
c33fae85 15WX_RELEASE_NODOT = 25
670ec357
VS
16OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20TEST_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) \
8899b155
RN
25 $(__EXCEPTIONSFLAG_9) /Yu"testprec.h" /Fp"$(OBJS)\testprec_test.pch" \
26 $(CPPFLAGS) $(CXXFLAGS)
670ec357 27TEST_OBJECTS = \
8899b155 28 $(OBJS)\test_dummy.obj \
670ec357 29 $(OBJS)\test_test.obj \
8899b155 30 $(OBJS)\test_archivetest.obj \
dd65d8c8 31 $(OBJS)\test_arrays.obj \
113e181a
RN
32 $(OBJS)\test_datetimetest.obj \
33 $(OBJS)\test_fileconftest.obj \
34 $(OBJS)\test_filenametest.obj \
35 $(OBJS)\test_filesystest.obj \
36 $(OBJS)\test_fontmaptest.obj \
37 $(OBJS)\test_formatconvertertest.obj \
f9c3d39b 38 $(OBJS)\test_hashes.obj \
7d9cfc54 39 $(OBJS)\test_lists.obj \
113e181a
RN
40 $(OBJS)\test_longlongtest.obj \
41 $(OBJS)\test_mbconvtest.obj \
42 $(OBJS)\test_regextest.obj \
43 $(OBJS)\test_wxregextest.obj \
1cd53e88 44 $(OBJS)\test_strings.obj \
405b7d91 45 $(OBJS)\test_stdstrings.obj \
387f829e 46 $(OBJS)\test_unicode.obj \
cf8ee08b 47 $(OBJS)\test_crt.obj \
7735998c 48 $(OBJS)\test_bstream.obj \
7d9cfc54 49 $(OBJS)\test_datastreamtest.obj \
7735998c
VS
50 $(OBJS)\test_ffilestream.obj \
51 $(OBJS)\test_filestream.obj \
52 $(OBJS)\test_memstream.obj \
c33fae85 53 $(OBJS)\test_sstream.obj \
8899b155 54 $(OBJS)\test_textstreamtest.obj \
816b59de 55 $(OBJS)\test_zlibstream.obj \
dd65d8c8 56 $(OBJS)\test_uris.obj
670ec357
VS
57
58### Conditionally set variables: ###
59
60!if "$(USE_GUI)" == "0"
61PORTNAME = base
62!endif
63!if "$(USE_GUI)" == "1"
64PORTNAME = msw
65!endif
66!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
67WXDEBUGFLAG = d
68!endif
69!if "$(DEBUG_FLAG)" == "1"
70WXDEBUGFLAG = d
71!endif
72!if "$(UNICODE)" == "1"
73WXUNICODEFLAG = u
74!endif
75!if "$(WXUNIV)" == "1"
76WXUNIVNAME = univ
77!endif
78!if "$(SHARED)" == "1"
79WXDLLFLAG = dll
80!endif
dd65d8c8
RN
81!if "$(MONOLITHIC)" == "0"
82EXTRALIBS_FOR_BASE =
83!endif
84!if "$(MONOLITHIC)" == "1"
85EXTRALIBS_FOR_BASE =
86!endif
670ec357
VS
87!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
88__DEBUGINFO_0 = /Zi
89!endif
90!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
91__DEBUGINFO_0 =
92!endif
93!if "$(DEBUG_INFO)" == "0"
94__DEBUGINFO_0 =
95!endif
96!if "$(DEBUG_INFO)" == "1"
97__DEBUGINFO_0 = /Zi
98!endif
99!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
100__DEBUGINFO_1 = /DEBUG
101!endif
102!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
103__DEBUGINFO_1 =
104!endif
105!if "$(DEBUG_INFO)" == "0"
106__DEBUGINFO_1 =
107!endif
108!if "$(DEBUG_INFO)" == "1"
109__DEBUGINFO_1 = /DEBUG
110!endif
111!if "$(DEBUG_RUNTIME_LIBS)" == "0"
112____DEBUGRUNTIME_2_p =
113!endif
114!if "$(DEBUG_RUNTIME_LIBS)" == "1"
115____DEBUGRUNTIME_2_p = /D_DEBUG
116!endif
117!if "$(DEBUG_RUNTIME_LIBS)" == "default"
118____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
119!endif
120!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
121____DEBUGINFO_2_p = /D_DEBUG
122!endif
123!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
124____DEBUGINFO_2_p =
125!endif
126!if "$(DEBUG_INFO)" == "0"
127____DEBUGINFO_2_p =
128!endif
129!if "$(DEBUG_INFO)" == "1"
130____DEBUGINFO_2_p = /D_DEBUG
131!endif
132!if "$(DEBUG_RUNTIME_LIBS)" == "0"
133__DEBUGRUNTIME_3 =
134!endif
135!if "$(DEBUG_RUNTIME_LIBS)" == "1"
136__DEBUGRUNTIME_3 = d
137!endif
138!if "$(DEBUG_RUNTIME_LIBS)" == "default"
139__DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
140!endif
141!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142__DEBUGINFO_3 = d
143!endif
144!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
145__DEBUGINFO_3 =
146!endif
147!if "$(DEBUG_INFO)" == "0"
148__DEBUGINFO_3 =
149!endif
150!if "$(DEBUG_INFO)" == "1"
151__DEBUGINFO_3 = d
152!endif
153!if "$(BUILD)" == "debug"
154__OPTIMIZEFLAG_4 = /Od
155!endif
156!if "$(BUILD)" == "release"
157__OPTIMIZEFLAG_4 = /O2
158!endif
159!if "$(RUNTIME_LIBS)" == "dynamic"
160__RUNTIME_LIBS_7 = D
161!endif
162!if "$(RUNTIME_LIBS)" == "static"
163__RUNTIME_LIBS_7 = T
164!endif
165!if "$(USE_EXCEPTIONS)" == "0"
166__EXCEPTIONSFLAG_8 =
167!endif
168!if "$(USE_EXCEPTIONS)" == "1"
169__EXCEPTIONSFLAG_8 = /GR
170!endif
171!if "$(USE_EXCEPTIONS)" == "0"
172__EXCEPTIONSFLAG_9 =
173!endif
174!if "$(USE_EXCEPTIONS)" == "1"
175__EXCEPTIONSFLAG_9 = /GX
176!endif
177!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
178__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
179!endif
180!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
181__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
182!endif
183!if "$(WXUNIV)" == "1"
184__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
185!endif
186!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
187__DEBUG_DEFINE_p = /D__WXDEBUG__
188!endif
189!if "$(DEBUG_FLAG)" == "1"
190__DEBUG_DEFINE_p = /D__WXDEBUG__
191!endif
192!if "$(UNICODE)" == "1"
193__UNICODE_DEFINE_p = /D_UNICODE
194!endif
195!if "$(SHARED)" == "1"
196__DLLFLAG_p = /DWXUSINGDLL
197!endif
198!if "$(MONOLITHIC)" == "0"
113e181a
RN
199__WXLIB_NET_p = \
200 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
201!endif
202!if "$(MONOLITHIC)" == "0"
c33fae85
RN
203__WXLIB_BASE_p = \
204 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
205!endif
206!if "$(MONOLITHIC)" == "1"
207__WXLIB_MONO_p = \
c33fae85 208 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
209!endif
210!if "$(USE_GUI)" == "1"
9c2d002b 211__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
670ec357
VS
212!endif
213!if "$(USE_GUI)" == "1"
9c2d002b 214__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
670ec357
VS
215!endif
216!if "$(USE_GUI)" == "1"
9c2d002b 217__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
670ec357
VS
218!endif
219!if "$(MSLU)" == "1"
220__UNICOWS_LIB_p = unicows.lib
221!endif
222!if "$(SHARED)" == "0"
223LIBDIRNAME = .\..\lib\vc_lib$(CFG)
224!endif
225!if "$(SHARED)" == "1"
226LIBDIRNAME = .\..\lib\vc_dll$(CFG)
227!endif
228
229
230all: $(OBJS)
231$(OBJS):
232 -if not exist $(OBJS) mkdir $(OBJS)
233
234### Targets: ###
235
387f829e 236all: $(OBJS)\test.exe data
670ec357
VS
237
238clean:
239 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
240 -if exist $(OBJS)\*.res del $(OBJS)\*.res
241 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
242 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
243 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
244
8899b155 245$(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
670ec357 246 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
113e181a 247 $(TEST_OBJECTS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__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
670ec357
VS
248<<
249
387f829e
VS
250data:
251 if not exist $(OBJS) mkdir $(OBJS)
252 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
253
8899b155
RN
254$(OBJS)\test_dummy.obj: .\dummy.cpp
255 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
256
670ec357
VS
257$(OBJS)\test_test.obj: .\test.cpp
258 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
259
8899b155
RN
260$(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
261 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
262
dd65d8c8 263$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
e70833fb 264 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
4827cbd9 265
113e181a 266$(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
bc10103e
VS
267 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
268
113e181a 269$(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
ab921f5f
RN
270 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
271
113e181a 272$(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
3fa86423
WS
273 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
274
113e181a 275$(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
4827cbd9 276 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
cf1014a2 277
113e181a 278$(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
dd65d8c8
RN
279 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
280
113e181a 281$(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
cf1014a2 282 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
1b035b8c 283
f9c3d39b
MB
284$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
285 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
286
7d9cfc54
MB
287$(OBJS)\test_lists.obj: .\lists\lists.cpp
288 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
289
113e181a 290$(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
1b035b8c 291 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
7735998c 292
113e181a 293$(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
dd65d8c8
RN
294 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
295
113e181a 296$(OBJS)\test_regextest.obj: .\regex\regextest.cpp
dd65d8c8
RN
297 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
298
113e181a 299$(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
dd65d8c8
RN
300 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
301
1cd53e88
VS
302$(OBJS)\test_strings.obj: .\strings\strings.cpp
303 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
304
405b7d91
WS
305$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
306 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
307
387f829e
VS
308$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
309 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
310
cf8ee08b
VS
311$(OBJS)\test_crt.obj: .\strings\crt.cpp
312 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
313
7735998c
VS
314$(OBJS)\test_bstream.obj: .\streams\bstream.cpp
315 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
316
7d9cfc54
MB
317$(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
318 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
319
7735998c
VS
320$(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
321 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
322
323$(OBJS)\test_filestream.obj: .\streams\filestream.cpp
324 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
325
326$(OBJS)\test_memstream.obj: .\streams\memstream.cpp
327 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
328
c33fae85
RN
329$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
330 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
331
8899b155
RN
332$(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
333 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
334
7735998c
VS
335$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
336 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
816b59de 337
dd65d8c8 338$(OBJS)\test_uris.obj: .\uris\uris.cpp
edcccd84 339 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**