]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/regex.bkl
rebaked after adding threads/atomic.cpp
[wxWidgets.git] / build / bakefiles / regex.bkl
index 4885c74ab1a7b764bbd7f898a50b21f000ddc6cd..28176a5c5490034b22eada04468ca3c187546365 100644 (file)
@@ -1,22 +1,48 @@
 <?xml version="1.0" ?>
 <?xml version="1.0" ?>
+<!-- $Id$ -->
+
 <makefile>
 <makefile>
-    
+
     <if cond="FORMAT=='autoconf'">
         <option name="wxUSE_REGEX"/>
     <if cond="FORMAT=='autoconf'">
         <option name="wxUSE_REGEX"/>
+        <set var="LIB_REGEX">
+            <if cond="wxUSE_REGEX=='builtin'">
+                wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
+            </if>
+        </set>
     </if>
     <if cond="FORMAT!='autoconf'">
     </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>
+        <set var="LIB_REGEX">
+            <if cond="wxUSE_REGEX=='builtin'">
+                wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX)
+            </if>
+        </set>
     </if>
     </if>
-    <set var="LIB_REGEX">
-        <if cond="wxUSE_REGEX=='builtin'">wxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)</if>
-    </set>
     <set var="INC_REGEX">
         <if cond="wxUSE_REGEX=='builtin'">$(TOP_SRCDIR)src/regex</if>
     </set>
 
     <set var="INC_REGEX">
         <if cond="wxUSE_REGEX=='builtin'">$(TOP_SRCDIR)src/regex</if>
     </set>
 
-    <lib id="wxregex" template="3rdparty_lib"
+    <lib id="wxregex" template="msvc_setup_h,3rdparty_lib"
          cond="wxUSE_REGEX=='builtin' and BUILDING_LIB=='1'">
          cond="wxUSE_REGEX=='builtin' and BUILDING_LIB=='1'">
+        <libname cond="FORMAT=='autoconf'">
+            $(id)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
+        </libname>
+        <libname cond="FORMAT!='autoconf'">
+            $(id)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX)
+        </libname>
+        <include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
+        <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
+        <define>__WX$(TOOLKIT)__</define>
+        <define>$(WXUNIV_DEFINE)</define>
+        <define>$(UNICODE_DEFINE)</define>
         <dirname>$(LIBDIRNAME)</dirname>
         <dirname>$(LIBDIRNAME)</dirname>
+        <cflags-borland>-w-8008 -w-8012 -w-8057 -w-8064 -w-8066 -w-8070</cflags-borland>
+        <cflags-dmars>-w12</cflags-dmars>
         <sources>
             src/regex/regcomp.c
             src/regex/regexec.c
         <sources>
             src/regex/regcomp.c
             src/regex/regexec.c