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