Added setup.h logic
[wxWidgets.git] / build / bakefiles / regex.bkl
1 <?xml version="1.0" ?>
2 <makefile>
3     
4     <set var="UNICODE_DEFINE">
5         <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if>
6     </set>
7     
8     <set var="UNICOWS_LIB">
9         <if cond="MSLU=='1'">unicows</if>
10     </set>
11
12     <define-tag name="msvc-headers" rules="dll,lib">
13         <if cond="FORMAT=='msvc6prj'">
14             <msvc-project-files>
15                 $(addPrefixToList('include\', wxwin.headersOnly(value)))
16             </msvc-project-files>
17         </if>
18     </define-tag>
19
20     <define-tag name="msvc-copy-setup-h" rules="dll,lib">
21         <if cond="FORMAT=='msvc6prj'">
22             <msvc-headers>wx/msw/setup.h</msvc-headers>
23             <set var="__custom_build_files" append="1">
24                 include\wx\msw\setup.h
25             </set>
26             <set var="__custom_build_include_wx_msw_setup_h">
27 Creating $(SETUPHDIR)\wx\setup.h
28 InputPath=..\include\wx\msw\setup.h
29
30 "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
31 $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
32             </set>
33         </if>
34     </define-tag>
35
36     <if cond="FORMAT=='autoconf'">
37         <option name="wxUSE_REGEX"/>
38     </if>
39     <if cond="FORMAT!='autoconf'">
40         <set var="wxUSE_REGEX">builtin</set>
41     </if>
42     <set var="LIB_REGEX">
43         <if cond="wxUSE_REGEX=='builtin'">wxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)</if>
44     </set>
45     <set var="INC_REGEX">
46         <if cond="wxUSE_REGEX=='builtin'">$(TOP_SRCDIR)src/regex</if>
47     </set>
48
49     <lib id="wxregex" template="3rdparty_lib"
50          cond="wxUSE_REGEX=='builtin' and BUILDING_LIB=='1'">
51         <include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
52         <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
53         <define>$(UNICODE_DEFINE)</define>
54         <dirname>$(LIBDIRNAME)</dirname>
55         <cflags-borland>-w-8004 -w-8012 -w-8057 -w-8066</cflags-borland> 
56         <sources>
57             src/regex/regcomp.c
58             src/regex/regexec.c
59             src/regex/regerror.c
60             src/regex/regfree.c
61         </sources>
62     </lib>
63
64 </makefile>