]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/regex.bkl
Fixed a '(' that should have been a '{'
[wxWidgets.git] / build / bakefiles / regex.bkl
index fa07162d7ca2d0b5aad182b0473274799126b67b..ae14b526530f060a972f6f64225107ce184d7ddb 100644 (file)
@@ -1,18 +1,33 @@
 <?xml version="1.0" ?>
+<!-- $Id$ -->
+
 <makefile>
     
     <if cond="FORMAT=='autoconf'">
         <option name="wxUSE_REGEX"/>
     </if>
     <if cond="FORMAT!='autoconf'">
-        <set var="wxUSE_REGEX">builtin</set>
+        <set var="wxUSE_REGEX">
+            <!-- NB: regex lib doesn't compile on WinCE -->
+            <if cond="FORMAT=='msevc4prj'">no</if>
+            <if cond="FORMAT!='msevc4prj'">builtin</if>
+        </set>
     </if>
     <set var="LIB_REGEX">
-        <if cond="wxUSE_REGEX=='builtin'">wxregex</if>
+        <if cond="wxUSE_REGEX=='builtin'">wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX)</if>
+    </set>
+    <set var="INC_REGEX">
+        <if cond="wxUSE_REGEX=='builtin'">$(TOP_SRCDIR)src/regex</if>
     </set>
 
-    <lib id="wxregex" cond="wxUSE_REGEX=='builtin' and BUILDING_LIB=='1'">
+    <lib id="wxregex" template="msvc_setup_h,3rdparty_lib"
+         cond="wxUSE_REGEX=='builtin' and BUILDING_LIB=='1'">
+        <libname>$(id)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname>
+        <include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
+        <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
+        <define>$(UNICODE_DEFINE)</define>
         <dirname>$(LIBDIRNAME)</dirname>
+        <cflags-borland>-w-8008 -w-8012 -w-8057 -w-8064 -w-8066 -w-8070</cflags-borland>
         <sources>
             src/regex/regcomp.c
             src/regex/regexec.c