]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.vc
Fix discrepancy between different ways of measuring text extents under Mac.
[wxWidgets.git] / samples / render / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.7 (http://www.bakefile.org)
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 = 29
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)1
17 COMPILER_PREFIX = vc
18 OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
20 LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
22 SETUPHDIR = \
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 RENDER_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME) /DWIN32 \
25 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
26 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
28 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
29 /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
30 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
31 $(CXXFLAGS)
32 RENDER_OBJECTS = \
33 $(OBJS)\render_render.obj
34 RENDER_RESOURCES = \
35 $(OBJS)\render_sample.res
36 RENDDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_27)$(__DEBUGRUNTIME) /DWIN32 \
37 $(__DEBUGINFO) \
38 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.pdb \
39 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
40 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
41 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
42 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 \
43 /DWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
44 RENDDLL_OBJECTS = \
45 $(OBJS)\renddll_renddll.obj
46
47 ### Conditionally set variables: ###
48
49 !if "$(USE_GUI)" == "0"
50 PORTNAME = base
51 !endif
52 !if "$(USE_GUI)" == "1"
53 PORTNAME = msw
54 !endif
55 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
56 WXDEBUGFLAG = d
57 !endif
58 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
59 WXDEBUGFLAG = d
60 !endif
61 !if "$(UNICODE)" == "1"
62 WXUNICODEFLAG = u
63 !endif
64 !if "$(WXUNIV)" == "1"
65 WXUNIVNAME = univ
66 !endif
67 !if "$(TARGET_CPU)" == "AMD64"
68 DIR_SUFFIX_CPU = _amd64
69 !endif
70 !if "$(TARGET_CPU)" == "IA64"
71 DIR_SUFFIX_CPU = _ia64
72 !endif
73 !if "$(TARGET_CPU)" == "amd64"
74 DIR_SUFFIX_CPU = _amd64
75 !endif
76 !if "$(TARGET_CPU)" == "ia64"
77 DIR_SUFFIX_CPU = _ia64
78 !endif
79 !if "$(SHARED)" == "1"
80 WXDLLFLAG = dll
81 !endif
82 !if "$(SHARED)" == "0"
83 LIBTYPE_SUFFIX = lib
84 !endif
85 !if "$(SHARED)" == "1"
86 LIBTYPE_SUFFIX = dll
87 !endif
88 !if "$(TARGET_CPU)" == "AMD64"
89 LINK_TARGET_CPU = /MACHINE:AMD64
90 !endif
91 !if "$(TARGET_CPU)" == "IA64"
92 LINK_TARGET_CPU = /MACHINE:IA64
93 !endif
94 !if "$(TARGET_CPU)" == "amd64"
95 LINK_TARGET_CPU = /MACHINE:AMD64
96 !endif
97 !if "$(TARGET_CPU)" == "ia64"
98 LINK_TARGET_CPU = /MACHINE:IA64
99 !endif
100 !if "$(MONOLITHIC)" == "0"
101 EXTRALIBS_FOR_BASE =
102 !endif
103 !if "$(MONOLITHIC)" == "1"
104 EXTRALIBS_FOR_BASE =
105 !endif
106 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
107 __DEBUGINFO_2 = $(__DEBUGRUNTIME_0)
108 !endif
109 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
110 __DEBUGINFO_2 =
111 !endif
112 !if "$(DEBUG_INFO)" == "0"
113 __DEBUGINFO_2 =
114 !endif
115 !if "$(DEBUG_INFO)" == "1"
116 __DEBUGINFO_2 = $(__DEBUGRUNTIME_0)
117 !endif
118 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
119 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
120 !endif
121 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
122 ____DEBUGRUNTIME_3_p_1 =
123 !endif
124 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
125 ____DEBUGRUNTIME_3_p_1 =
126 !endif
127 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
128 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
129 !endif
130 !if "$(RUNTIME_LIBS)" == "dynamic"
131 __RUNTIME_LIBS_10 = D
132 !endif
133 !if "$(RUNTIME_LIBS)" == "static"
134 __RUNTIME_LIBS_10 = $(__THREADSFLAG)
135 !endif
136 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
137 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
138 !endif
139 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
140 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
141 !endif
142 !if "$(WXUNIV)" == "1"
143 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
144 !endif
145 !if "$(DEBUG_FLAG)" == "0"
146 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
147 !endif
148 !if "$(USE_EXCEPTIONS)" == "0"
149 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
150 !endif
151 !if "$(USE_RTTI)" == "0"
152 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
153 !endif
154 !if "$(USE_THREADS)" == "0"
155 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
156 !endif
157 !if "$(UNICODE)" == "0"
158 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
159 !endif
160 !if "$(UNICODE)" == "1"
161 __UNICODE_DEFINE_p_1 = /d _UNICODE
162 !endif
163 !if "$(MSLU)" == "1"
164 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
165 !endif
166 !if "$(USE_GDIPLUS)" == "1"
167 __GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
168 !endif
169 !if "$(SHARED)" == "1"
170 __DLLFLAG_p = /DWXUSINGDLL
171 !endif
172 !if "$(SHARED)" == "1"
173 __DLLFLAG_p_1 = /d WXUSINGDLL
174 !endif
175 !if "$(SHARED)" == "1"
176 __renddll___depname = \
177 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.dll
178 !endif
179 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
180 __DEBUGINFO_19 = $(__DEBUGRUNTIME_0)
181 !endif
182 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
183 __DEBUGINFO_19 =
184 !endif
185 !if "$(DEBUG_INFO)" == "0"
186 __DEBUGINFO_19 =
187 !endif
188 !if "$(DEBUG_INFO)" == "1"
189 __DEBUGINFO_19 = $(__DEBUGRUNTIME_0)
190 !endif
191 !if "$(RUNTIME_LIBS)" == "dynamic"
192 __RUNTIME_LIBS_27 = D
193 !endif
194 !if "$(RUNTIME_LIBS)" == "static"
195 __RUNTIME_LIBS_27 = $(__THREADSFLAG)
196 !endif
197 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
198 __DEBUGINFO = /Zi
199 !endif
200 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
201 __DEBUGINFO =
202 !endif
203 !if "$(DEBUG_INFO)" == "0"
204 __DEBUGINFO =
205 !endif
206 !if "$(DEBUG_INFO)" == "1"
207 __DEBUGINFO = /Zi
208 !endif
209 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
210 __DEBUGINFO_1 = /DEBUG
211 !endif
212 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
213 __DEBUGINFO_1 =
214 !endif
215 !if "$(DEBUG_INFO)" == "0"
216 __DEBUGINFO_1 =
217 !endif
218 !if "$(DEBUG_INFO)" == "1"
219 __DEBUGINFO_1 = /DEBUG
220 !endif
221 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
222 ____DEBUGRUNTIME = /D_DEBUG
223 !endif
224 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
225 ____DEBUGRUNTIME =
226 !endif
227 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
228 ____DEBUGRUNTIME =
229 !endif
230 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
231 ____DEBUGRUNTIME = /D_DEBUG
232 !endif
233 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
234 __DEBUGRUNTIME = d
235 !endif
236 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
237 __DEBUGRUNTIME =
238 !endif
239 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
240 __DEBUGRUNTIME =
241 !endif
242 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
243 __DEBUGRUNTIME = d
244 !endif
245 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
246 __DEBUGRUNTIME_0 =
247 !endif
248 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
249 __DEBUGRUNTIME_0 = /opt:ref /opt:icf
250 !endif
251 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
252 __DEBUGRUNTIME_0 = /opt:ref /opt:icf
253 !endif
254 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
255 __DEBUGRUNTIME_0 =
256 !endif
257 !if "$(BUILD)" == "debug"
258 __OPTIMIZEFLAG = /Od
259 !endif
260 !if "$(BUILD)" == "release"
261 __OPTIMIZEFLAG = /O2
262 !endif
263 !if "$(USE_THREADS)" == "0"
264 __THREADSFLAG = L
265 !endif
266 !if "$(USE_THREADS)" == "1"
267 __THREADSFLAG = T
268 !endif
269 !if "$(USE_RTTI)" == "0"
270 __RTTIFLAG =
271 !endif
272 !if "$(USE_RTTI)" == "1"
273 __RTTIFLAG = /GR
274 !endif
275 !if "$(USE_EXCEPTIONS)" == "0"
276 __EXCEPTIONSFLAG =
277 !endif
278 !if "$(USE_EXCEPTIONS)" == "1"
279 __EXCEPTIONSFLAG = /EHsc
280 !endif
281 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
282 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
283 !endif
284 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
285 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
286 !endif
287 !if "$(WXUNIV)" == "1"
288 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
289 !endif
290 !if "$(DEBUG_FLAG)" == "0"
291 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
292 !endif
293 !if "$(USE_EXCEPTIONS)" == "0"
294 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
295 !endif
296 !if "$(USE_RTTI)" == "0"
297 __RTTI_DEFINE_p = /DwxNO_RTTI
298 !endif
299 !if "$(USE_THREADS)" == "0"
300 __THREAD_DEFINE_p = /DwxNO_THREADS
301 !endif
302 !if "$(UNICODE)" == "0"
303 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
304 !endif
305 !if "$(UNICODE)" == "1"
306 __UNICODE_DEFINE_p = /D_UNICODE
307 !endif
308 !if "$(MSLU)" == "1"
309 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
310 !endif
311 !if "$(USE_GDIPLUS)" == "1"
312 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
313 !endif
314 !if "$(MONOLITHIC)" == "0"
315 __WXLIB_CORE_p = \
316 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
317 !endif
318 !if "$(MONOLITHIC)" == "0"
319 __WXLIB_BASE_p = \
320 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
321 !endif
322 !if "$(MONOLITHIC)" == "1"
323 __WXLIB_MONO_p = \
324 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
325 !endif
326 !if "$(USE_GUI)" == "1"
327 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
328 !endif
329 !if "$(USE_GUI)" == "1"
330 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
331 !endif
332 !if "$(USE_GUI)" == "1"
333 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
334 !endif
335 !if "$(MSLU)" == "1"
336 __UNICOWS_LIB_p = unicows.lib
337 !endif
338 !if "$(USE_GDIPLUS)" == "1"
339 __GDIPLUS_LIB_p = gdiplus.lib
340 !endif
341
342
343 all: $(OBJS)
344 $(OBJS):
345 -if not exist $(OBJS) mkdir $(OBJS)
346
347 ### Targets: ###
348
349 all: $(OBJS)\render.exe $(__renddll___depname)
350
351 clean:
352 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
353 -if exist $(OBJS)\*.res del $(OBJS)\*.res
354 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
355 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
356 -if exist $(OBJS)\render.ilk del $(OBJS)\render.ilk
357 -if exist $(OBJS)\render.pdb del $(OBJS)\render.pdb
358 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.dll
359 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.ilk del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.ilk
360 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.pdb del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.pdb
361
362 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
363 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\render.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
364 $(RENDER_OBJECTS) $(RENDER_RESOURCES) $(__WXLIB_CORE_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) $(__GDIPLUS_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 wininet.lib
365 <<
366
367 !if "$(SHARED)" == "1"
368 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.dll: $(RENDDLL_OBJECTS)
369 link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_vc.pdb" $(__DEBUGINFO_19) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(LDFLAGS) @<<
370 $(RENDDLL_OBJECTS) $(__WXLIB_CORE_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) $(__GDIPLUS_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 wininet.lib
371 <<
372 !endif
373
374 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
375 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples /d NOPCH .\..\..\samples\sample.rc
376
377 $(OBJS)\render_render.obj: .\render.cpp
378 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) .\render.cpp
379
380 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
381 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp
382