]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/zlib.bkl
don't build console apps for WinCE
[wxWidgets.git] / build / bakefiles / zlib.bkl
index a37a2b0d423fb4981c00c20b8bc573f00aa19a40..3379f22a3efc99a8326820ed00fe3ba2a18c36da 100644 (file)
@@ -8,15 +8,19 @@
         <set var="wxUSE_ZLIB">builtin</set>
     </if>
     <set var="LIB_ZLIB">
-        <if cond="wxUSE_ZLIB=='builtin'">wxzlib$(WXDEBUGFLAG)</if>
+        <if cond="wxUSE_ZLIB=='builtin'">wxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)</if>
     </set>
     <set var="INC_ZLIB">
-        <if cond="wxUSE_ZLIB=='builtin'">$(SRCDIR)/src/zlib</if>
+        <if cond="wxUSE_ZLIB=='builtin'">$(TOP_SRCDIR)src/zlib</if>
     </set>
 
     <lib id="wxzlib" template="3rdparty_lib"
          cond="wxUSE_ZLIB=='builtin' and BUILDING_LIB=='1'">
         <dirname>$(LIBDIRNAME)</dirname>
+        <cflags-borland>-w-8004 -w-8012 -w-8057</cflags-borland> 
+        <if cond="FORMAT=='msevc4prj'">
+            <define>NO_ERRNO_H</define>
+        </if>
         <sources>
             src/zlib/adler32.c
             src/zlib/compress.c