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">
82 <ldlibs>$(WX_LIBS)
</ldlibs>
85 <!-- not used together with wx-config: -->
86 <define-tag name=
"wx-lib" rules=
"exe,dll,module"/>