Disabling PNG, TIFF and JPEG works now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 1999-12-01 15:34:16 +00:00
parent 1c4f8f8d18
commit d9d8273d9c
4 changed files with 300 additions and 258 deletions

529
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1522,6 +1522,7 @@ if test "$wxUSE_GTK" = 1; then
COMMONDEPS="\$(GTK_COMMONDEPS)"
GENERICDEPS="\$(GTK_GENERICDEPS)"
UNIXOBJS="\$(UNIX_OBJS)"
UNIXDEPS="\$(UNIX_DEPS)"
GUIDIST=GTK_DIST
fi
@ -1573,6 +1574,7 @@ if test "$wxUSE_WINE" = 1; then
COMMONDEPS="\$(MSW_COMMONDEPS)"
GENERICDEPS="\$(MSW_GENERICDEPS)"
UNIXOBJS="\$(UNIX_OBJS)"
UNIXDEPS="\$(UNIX_DEPS)"
GUIDIST=MSW_DIST
fi
@ -1673,6 +1675,7 @@ if test "$wxUSE_MOTIF" = 1; then
COMMONDEPS="\$(MOTIF_COMMONDEPS)"
GENERICDEPS="\$(MOTIF_GENERICDEPS)"
UNIXOBJS="\$(UNIX_OBJS)"
UNIXDEPS="\$(UNIX_DEPS)"
GUIDIST=MOTIF_DIST
fi
@ -1686,7 +1689,19 @@ dnl the name of the (libtool) library
WX_LIBRARY="wx_${TOOLKIT_DIR}"
dnl the sources, their dependenices and the headers
ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(TIFFOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)"
ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)"
if test "$wxUSE_LIBJPEG" = "yes" ; then
ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
fi
if test "$wxUSE_LIBTIFF" = "yes" ; then
ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
fi
if test "$wxUSE_LIBPNG" = "yes" ; then
ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
fi
if test "$wxUSE_ZLIB" = "yes" ; then
ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
fi
ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
else

View File

@ -327,6 +327,7 @@ bool wxBitmapDataObject::SetData(size_t size, const void *buf)
{
Clear();
#if wxUSE_LIBPNG
m_pngSize = size;
m_pngData = malloc(m_pngSize);
@ -343,10 +344,14 @@ bool wxBitmapDataObject::SetData(size_t size, const void *buf)
m_bitmap = image.ConvertToBitmap();
return m_bitmap.Ok();
#else
return FALSE;
#endif
}
void wxBitmapDataObject::DoConvertToPng()
{
#if wxUSE_LIBPNG
if (!m_bitmap.Ok())
return;
@ -361,6 +366,7 @@ void wxBitmapDataObject::DoConvertToPng()
wxMemoryOutputStream mstream( (char*) m_pngData, m_pngSize );
handler.SaveFile( &image, mstream );
#endif
}

View File

@ -327,6 +327,7 @@ bool wxBitmapDataObject::SetData(size_t size, const void *buf)
{
Clear();
#if wxUSE_LIBPNG
m_pngSize = size;
m_pngData = malloc(m_pngSize);
@ -343,10 +344,14 @@ bool wxBitmapDataObject::SetData(size_t size, const void *buf)
m_bitmap = image.ConvertToBitmap();
return m_bitmap.Ok();
#else
return FALSE;
#endif
}
void wxBitmapDataObject::DoConvertToPng()
{
#if wxUSE_LIBPNG
if (!m_bitmap.Ok())
return;
@ -361,6 +366,7 @@ void wxBitmapDataObject::DoConvertToPng()
wxMemoryOutputStream mstream( (char*) m_pngData, m_pngSize );
handler.SaveFile( &image, mstream );
#endif
}