5 Presents for building wxWidgets applications using Autoconf or GNU toosets.
6 See wx.bkl for platform-independent notes.
9 Options WX_CPPFLAGS, WX_CFLAGS, WX_CXXFLAGS, WX_LIBS are defined.
12 Format-specific notes:
15 Beware that you have to use AM_OPTIONS_WXCONFIG and
16 AM_PATH_WXCONFIG in your configure.in!
23 <!-- ============================================================== -->
25 <!-- ============================================================== -->
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"/>
35 <!-- ============================================================== -->
36 <!-- GNU makefiles for Unix -->
37 <!-- ============================================================== -->
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>
44 <option name=
"WX_CFLAGS">
45 <default-value>`$(DOLLAR)(WX_CONFIG) --cflags`
</default-value>
46 <description>C flags to use with wxWidgets code
</description>
48 <option name=
"WX_CXXFLAGS">
49 <default-value>`$(DOLLAR)(WX_CONFIG) --cxxflags`
</default-value>
50 <description>C++ flags to use with wxWidgets code
</description>
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>
56 <option name=
"WX_LIBS">
57 <default-value>`$(DOLLAR)(WX_CONFIG) --libs`
</default-value>
58 <description>wxWidgets libraries to link against
</description>
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>
66 <!-- ============================================================== -->
68 <!-- ============================================================== -->
70 <if cond=
"FORMAT not in ['gnu','autoconf']">
72 Don't include presets/wx_unix.bkl directly, use presets/wx.bkl.
76 <template id=
"wx-lib">
77 <cxxflags>$(WX_CXXFLAGS)
</cxxflags>
78 <cflags>$(WX_CFLAGS)
</cflags>
81 <template id=
"wx" template=
"wx-lib">
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
92 <!-- not used together with wx-config: -->
93 <define-tag name=
"wx-lib" rules=
"exe,dll,module">
94 <if cond=
"value=='base'">
95 <ldlibs>$(WX_LIBS)
</ldlibs>