]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/tiff.bkl
commdlg.lib is not in evc3
[wxWidgets.git] / build / bakefiles / tiff.bkl
index 87d711ad01ae2485ec2a2effdb101c4ccf0f3bb1..f08024223103ee05cc91a610b78ca8f2337e54bc 100644 (file)
@@ -5,23 +5,34 @@
         <option name="wxUSE_LIBTIFF"/>
     </if>
     <if cond="FORMAT!='autoconf'">
-        <set var="wxUSE_LIBTIFF">builtin</set>
+        <set var="wxUSE_LIBTIFF">
+            <!-- NB: libtiff doesn't compile on WinCE -->
+            <if cond="FORMAT=='msevc4prj'">no</if>
+            <if cond="FORMAT!='msevc4prj'">builtin</if>
+        </set>
     </if>
     <set var="LIB_TIFF">
-        <if cond="wxUSE_LIBTIFF=='builtin'">wxtiff</if>
+        <if cond="wxUSE_LIBTIFF=='builtin' and USE_GUI=='1'">
+            wxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
+        </if>
     </set>
     <set var="INC_TIFF">
-        <if cond="wxUSE_LIBTIFF=='builtin'">$(SRCDIR)/src/tiff</if>
+        <if cond="wxUSE_LIBTIFF=='builtin'">$(TOP_SRCDIR)src/tiff</if>
     </set>
 
     <set var="TIFF_PLATFORM_SRC">
         <if cond="PLATFORM_UNIX=='1'">src/tiff/tif_unix.c</if>
+        <if cond="PLATFORM_MACOSX=='1'">src/tiff/tif_unix.c</if>
+        <if cond="PLATFORM_OS2=='1'">src/tiff/tif_unix.c</if>
         <if cond="PLATFORM_WIN32=='1'">src/tiff/tif_win32.c</if>
     </set>
     
     <lib id="wxtiff" template="3rdparty_lib"
-         cond="wxUSE_LIBTIFF=='builtin' and BUILDING_LIB=='1'">
+         cond="wxUSE_LIBTIFF=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
         <dirname>$(LIBDIRNAME)</dirname>
+        <include>$(INC_ZLIB)</include>
+        <include>$(INC_JPEG)</include>
+        <cflags-borland>-w-8004 -w-8012 -w-8057 -w-8060 -w-8066</cflags-borland>
         <sources>
             $(TIFF_PLATFORM_SRC)
                    src/tiff/tif_aux.c