]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/png.bkl
added precomp-headers-exclude (DSP files only so far) and fixed dependencies for...
[wxWidgets.git] / build / bakefiles / png.bkl
index bc75ddb688c69ce3f803d43a445c525a8f826402..662d2a28a2ae7fc92cb9860a6bc89b9977595cd9 100644 (file)
@@ -8,14 +8,16 @@
         <set var="wxUSE_LIBPNG">builtin</set>
     </if>
     <set var="LIB_PNG">
-        <if cond="wxUSE_LIBPNG=='builtin'">wxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)</if>
+        <if cond="wxUSE_LIBPNG=='builtin' and USE_GUI=='1'">
+            wxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
+        </if>
     </set>
     <set var="INC_PNG">
         <if cond="wxUSE_LIBPNG=='builtin'">$(TOP_SRCDIR)src/png</if>
     </set>
 
     <lib id="wxpng" template="3rdparty_lib"
-         cond="wxUSE_LIBPNG=='builtin' and BUILDING_LIB=='1'">
+         cond="wxUSE_LIBPNG=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
         <dirname>$(LIBDIRNAME)</dirname>
         <include>$(INC_ZLIB)</include>
         <sources>