]>
Commit | Line | Data |
---|---|---|
1 | <?xml version="1.0" ?> | |
2 | <!-- $Id$ --> | |
3 | ||
4 | <makefile> | |
5 | ||
6 | <set var="BUILDING_LIB" overwrite="0">0</set> | |
7 | ||
8 | <!-- bakefile modules we need: --> | |
9 | <using module="datafiles"/> | |
10 | ||
11 | <!-- load python module with wxwindows helpers: --> | |
12 | <using module="wxwin"/> | |
13 | ||
14 | <include file="config.bkl"/> | |
15 | ||
16 | ||
17 | <!-- ================================================================== --> | |
18 | <!-- wxWindows version numbers: --> | |
19 | <!-- ================================================================== --> | |
20 | ||
21 | <set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set> | |
22 | <set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set> | |
23 | <set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set> | |
24 | <set var="WX_VERSION">$(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)</set> | |
25 | ||
26 | <set var="WXSOVERSION">0.0.0</set> | |
27 | <set var="WXMACVERSION">$(WX_VERSION)</set> | |
28 | ||
29 | ||
30 | <!-- ================================================================== --> | |
31 | <!-- Names of libraries and DLLs: --> | |
32 | <!-- ================================================================== --> | |
33 | ||
34 | <set var="PORTNAME"> | |
35 | <if cond="USE_GUI=='0'">base</if> | |
36 | <if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if> | |
37 | </set> | |
38 | ||
39 | <set var="COMPILERORGCC"> | |
40 | <if cond="isdefined('COMPILER')">$(COMPILER)</if> | |
41 | <if cond="not isdefined('COMPILER')">gcc</if> | |
42 | </set> | |
43 | <set var="WXCOMPILER"> | |
44 | <if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if> | |
45 | </set> | |
46 | ||
47 | <set var="WXDEBUGFLAG"> | |
48 | <if cond="BUILD=='debug'">d</if> | |
49 | </set> | |
50 | <set var="WXUNICODEFLAG"> | |
51 | <if cond="UNICODE=='1'">u</if> | |
52 | </set> | |
53 | <set var="WXNAMESUFFIX"> | |
54 | $(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
55 | </set> | |
56 | ||
57 | <set var="WXUNIVNAME"> | |
58 | <if cond="WXUNIV=='1'">univ</if> | |
59 | </set> | |
60 | <set var="WXUNIV_DEFINE"> | |
61 | <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if> | |
62 | </set> | |
63 | ||
64 | <set var="WXNAMEPREFIX">wx</set> | |
65 | <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set> | |
66 | <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set> | |
67 | ||
68 | <set var="TOOLCHAIN_NAME"> | |
69 | $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-$(WXVER_MAJOR).$(WXVER_MINOR) | |
70 | </set> | |
71 | ||
72 | ||
73 | <!-- =============================================================== --> | |
74 | <!-- Names of component libraries: --> | |
75 | <!-- =============================================================== --> | |
76 | ||
77 | <set var="WXLIB_BASE"> | |
78 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if> | |
79 | </set> | |
80 | <set var="WXLIB_CORE"> | |
81 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if> | |
82 | </set> | |
83 | <set var="WXLIB_HTML"> | |
84 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if> | |
85 | </set> | |
86 | ||
87 | <set var="WXLIB_MONO"> | |
88 | <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if> | |
89 | </set> | |
90 | ||
91 | ||
92 | <!-- =============================================================== --> | |
93 | <!-- Where to store built libraries: --> | |
94 | <!-- =============================================================== --> | |
95 | ||
96 | <set var="LIBDIRNAME"> | |
97 | <if cond="FORMAT=='autoconf'">$(top_builddir)lib</if> | |
98 | </set> | |
99 | ||
100 | <!-- =============================================================== --> | |
101 | <!-- 3rd party libs: --> | |
102 | <!-- =============================================================== --> | |
103 | ||
104 | <!-- 3rd party libraries: --> | |
105 | <include file="regex.bkl"/> | |
106 | <include file="zlib.bkl"/> | |
107 | <include file="png.bkl"/> | |
108 | <include file="jpeg.bkl"/> | |
109 | <include file="tiff.bkl"/> | |
110 | <include file="odbc.bkl"/> | |
111 | ||
112 | ||
113 | <!-- =============================================================== --> | |
114 | <!-- Templates for wxWindows libs: --> | |
115 | <!-- =============================================================== --> | |
116 | ||
117 | <set var="WXTOPDIR"></set> | |
118 | ||
119 | <template id="wx"> | |
120 | <set var="wxid">$(wxwin.mk_wxid(id))</set> | |
121 | <define>__WX$(TOOLKIT)__</define> | |
122 | <define>$(WXUNIV_DEFINE)</define> | |
123 | <include>$(SRCDIR)$(WXTOPDIR)/include</include> | |
124 | <lib-path>$(LIBDIRNAME)</lib-path> | |
125 | </template> | |
126 | ||
127 | <template id="wx_append"> | |
128 | <ldflags>$(EXTRALIBS)</ldflags> | |
129 | <!-- link against builtin 3rd party libs, if needed: --> | |
130 | <sys-lib>$(LIB_JPEG)</sys-lib> | |
131 | <sys-lib>$(LIB_PNG)</sys-lib> | |
132 | <sys-lib>$(LIB_ZLIB)</sys-lib> | |
133 | <sys-lib>$(LIB_TIFF)</sys-lib> | |
134 | <sys-lib>$(LIB_ODBC)</sys-lib> | |
135 | <sys-lib>$(LIB_REGEX)</sys-lib> | |
136 | </template> | |
137 | ||
138 | <template id="wx_lib_b" template="wx"> | |
139 | <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set> | |
140 | <dirname>$(LIBDIRNAME)</dirname> | |
141 | <libname>$(WXLIBNAME)</libname> | |
142 | <install-to>$(LIBDIR)</install-to> | |
143 | </template> | |
144 | ||
145 | <template id="wx_dll_b" template="wx_lib_b"> | |
146 | <set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set> | |
147 | <dllname>$(WXDLLNAME)</dllname> | |
148 | <version>$(WX_VERSION)</version> | |
149 | <so_version>$(WXSOVERSION)</so_version> | |
150 | <mac_version>$(WXMACVERSION)</mac_version> | |
151 | </template> | |
152 | ||
153 | <template id="wx_lib" template="wx_lib_b"/> | |
154 | <template id="wx_dll" template="wx_dll_b" template_append="wx_append"/> | |
155 | ||
156 | <!-- =============================================================== --> | |
157 | <!-- Support for wxWindows samples and contrib: --> | |
158 | <!-- =============================================================== --> | |
159 | ||
160 | <!-- Link against one wxWin library. Value must be literal! --> | |
161 | <define-tag name="wx-lib" rules="exe,dll"> | |
162 | <sys-lib>$(wxwin.libToLink(value))</sys-lib> | |
163 | </define-tag> | |
164 | ||
165 | </makefile> |