]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/jpeg.bkl
wxCocoa: Added clipbrd.(mm|h) dataobj.(mm|h) dataform.h dataobj2.h
[wxWidgets.git] / build / bakefiles / jpeg.bkl
index 8f142e1a9a571e173384d9493521b968e35e5f64..0db85518a0dbed1160e8ab8d1933fc98be363528 100644 (file)
@@ -8,15 +8,18 @@
         <set var="wxUSE_LIBJPEG">builtin</set>
     </if>
     <set var="LIB_JPEG">
-        <if cond="wxUSE_LIBJPEG=='builtin'">wxjpeg$(WXDEBUGFLAG)</if>
+        <if cond="wxUSE_LIBJPEG=='builtin' and USE_GUI=='1'">
+            wxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
+        </if>
     </set>
     <set var="INC_JPEG">
-        <if cond="wxUSE_LIBJPEG=='builtin'">$(SRCDIR)/src/jpeg</if>
+        <if cond="wxUSE_LIBJPEG=='builtin'">$(TOP_SRCDIR)src/jpeg</if>
     </set>
 
     <lib id="wxjpeg" template="3rdparty_lib"
-         cond="wxUSE_LIBJPEG=='builtin' and BUILDING_LIB=='1'">
+         cond="wxUSE_LIBJPEG=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
         <dirname>$(LIBDIRNAME)</dirname>
+        <include cond="FORMAT!='autoconf'">$(LIBDIRNAME)</include>
         <sources>
             src/jpeg/jcomapi.c
                    src/jpeg/jutils.c