]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/tiff.bkl
don't use precompiled headers with wxSTC
[wxWidgets.git] / build / bakefiles / tiff.bkl
index 815b2b8edc4430599a2f5cced7662c4a2e38a31c..e40442dc9a2e1155379ef22a914e71d8d1e71461 100644 (file)
@@ -8,12 +8,23 @@
         <set var="wxUSE_LIBTIFF">builtin</set>
     </if>
     <set var="LIB_TIFF">
-        <if cond="wxUSE_LIBTIFF=='builtin'">wxtiff</if>
+        <if cond="wxUSE_LIBTIFF=='builtin'">wxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)</if>
+    </set>
+    <set var="INC_TIFF">
+        <if cond="wxUSE_LIBTIFF=='builtin'">$(TOP_SRCDIR)src/tiff</if>
     </set>
 
-    <lib id="wxtiff" cond="wxUSE_LIBTIFF=='builtin' and BUILDING_LIB=='1'">
+    <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_WIN32=='1'">src/tiff/tif_win32.c</if>
+    </set>
+    
+    <lib id="wxtiff" template="3rdparty_lib"
+         cond="wxUSE_LIBTIFF=='builtin' and BUILDING_LIB=='1'">
         <dirname>$(LIBDIRNAME)</dirname>
         <sources>
+            $(TIFF_PLATFORM_SRC)
                    src/tiff/tif_aux.c
                    src/tiff/tif_close.c
                    src/tiff/tif_codec.c
@@ -42,7 +53,6 @@
                    src/tiff/tif_strip.c
                    src/tiff/tif_thunder.c
                    src/tiff/tif_tile.c
-                   src/tiff/tif_unix.c
                    src/tiff/tif_version.c
                    src/tiff/tif_warning.c
                    src/tiff/tif_write.c