]>
Commit | Line | Data |
---|---|---|
83c7f6a7 VS |
1 | <?xml version="1.0" ?> |
2 | <!-- $Id$ --> | |
3 | ||
4 | <!-- | |
5 | Presents for building wxWidgets applications using Autoconf or GNU toosets. | |
6 | See wx.bkl for platform-independent notes. | |
7 | ||
8 | Usage: | |
9 | Options WX_CPPFLAGS, WX_CFLAGS, WX_CXXFLAGS, WX_LIBS are defined. | |
10 | ||
11 | ||
12 | Format-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 | <!-- ============================================================== --> | |
26 | ||
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> | |
34 | ||
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> | |
65 | ||
66 | <!-- ============================================================== --> | |
67 | <!-- Common code --> | |
68 | <!-- ============================================================== --> | |
69 | ||
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> | |
75 | ||
76 | <template id="wx"> | |
77 | <cxxflags>$(WX_CXXFLAGS)</cxxflags> | |
78 | <cflags>$(WX_CFLAGS)</cflags> | |
79 | <ldlibs>$(WX_LIBS)</ldlibs> | |
80 | </template> | |
81 | ||
82 | <!-- not used together with wx-config: --> | |
83 | <define-tag name="wx-lib" rules="exe,dll,module"/> | |
84 | ||
85 | </makefile> |