]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/wxpresets/presets/wx_unix.bkl
Fix crash caused by last change
[wxWidgets.git] / build / bakefiles / wxpresets / presets / wx_unix.bkl
CommitLineData
83c7f6a7
VS
1<?xml version="1.0" ?>
2<!-- $Id$ -->
3
4<!--
5Presents for building wxWidgets applications using Autoconf or GNU toosets.
6See wx.bkl for platform-independent notes.
7
8Usage:
9 Options WX_CPPFLAGS, WX_CFLAGS, WX_CXXFLAGS, WX_LIBS are defined.
9864ef3b 10
83c7f6a7
VS
11
12Format-specific notes:
13
14* autoconf:
15 Beware that you have to use AM_OPTIONS_WXCONFIG and
16 AM_PATH_WXCONFIG in your configure.in!
17
18-->
19
20
21<makefile>
22
23 <!-- ============================================================== -->
24 <!-- Autoconf -->
25 <!-- ============================================================== -->
9864ef3b 26
83c7f6a7
VS
27 <if cond="FORMAT=='autoconf'">
28 <!-- Autoconf backend is simplicity itself thanks to wx-config... -->
29 <option name="WX_CFLAGS"/>
30 <option name="WX_CXXFLAGS"/>
31 <option name="WX_CPPFLAGS"/>
32 <option name="WX_LIBS"/>
33 </if>
9864ef3b 34
83c7f6a7
VS
35 <!-- ============================================================== -->
36 <!-- GNU makefiles for Unix -->
37 <!-- ============================================================== -->
38
39 <if cond="FORMAT=='gnu'">
40 <option name="WX_CONFIG">
41 <default-value>wx-config</default-value>
42 <description>Location and arguments of wx-config script</description>
43 </option>
44 <option name="WX_CFLAGS">
45 <default-value>`$(DOLLAR)(WX_CONFIG) --cflags`</default-value>
46 <description>C flags to use with wxWidgets code</description>
47 </option>
48 <option name="WX_CXXFLAGS">
49 <default-value>`$(DOLLAR)(WX_CONFIG) --cxxflags`</default-value>
50 <description>C++ flags to use with wxWidgets code</description>
51 </option>
52 <option name="WX_CPPFLAGS">
53 <default-value>`$(DOLLAR)(WX_CONFIG) --cppflags`</default-value>
54 <description>C preprocessor flags to use with wxWidgets code</description>
55 </option>
56 <option name="WX_LIBS">
57 <default-value>`$(DOLLAR)(WX_CONFIG) --libs`</default-value>
58 <description>wxWidgets libraries to link against</description>
59 </option>
60
61 <!-- we need this but the trick used in default-values above
62 prevents bakefile from detecting it: -->
63 <set var="FORMAT_OUTPUT_VARIABLES" append="1">WX_CONFIG</set>
64 </if>
9864ef3b 65
83c7f6a7
VS
66 <!-- ============================================================== -->
67 <!-- Common code -->
68 <!-- ============================================================== -->
9864ef3b 69
83c7f6a7
VS
70 <if cond="FORMAT not in ['gnu','autoconf']">
71 <error>
72 Don't include presets/wx_unix.bkl directly, use presets/wx.bkl.
73 </error>
74 </if>
9864ef3b 75
c07e76fa 76 <template id="wx-lib">
83c7f6a7
VS
77 <cxxflags>$(WX_CXXFLAGS)</cxxflags>
78 <cflags>$(WX_CFLAGS)</cflags>
c07e76fa
VS
79 </template>
80
81 <template id="wx" template="wx-lib">
9864ef3b
VZ
82 <!--
83 Don't include the $(WX_LIBS) variable in linker options here since
84 it would make impossible for the user to obtain the right library
85 order when he needs to specify, *before* WX_LIBS, its own libraries
86 that depend on wxWidgets libraries; to avoid this, we include
87 $(WX_LIBS) as soon as we found the <wx-lib>base</wx-lib> tag which
88 the user should always put *after* all other wx-dependent libraries
89 -->
83c7f6a7
VS
90 </template>
91
92 <!-- not used together with wx-config: -->
9864ef3b
VZ
93 <define-tag name="wx-lib" rules="exe,dll,module">
94 <if cond="value=='base'">
95 <ldlibs>$(WX_LIBS)</ldlibs>
96 </if>
97 </define-tag>
83c7f6a7
VS
98
99</makefile>