file-jpeg: Conditionally compile files with EXIF related code

This commit is contained in:
Mukund Sivaraman 2011-09-18 08:09:03 +05:30
parent bd3faae04c
commit ecacdbc7cd
5 changed files with 11 additions and 22 deletions

View file

@ -33,8 +33,6 @@ libexec_PROGRAMS = file-jpeg
file_jpeg_SOURCES = \
jpeg.c \
jpeg.h \
jpeg-exif.c \
jpeg-exif.h \
jpeg-icc.c \
jpeg-icc.h \
jpeg-load.c \
@ -44,9 +42,15 @@ file_jpeg_SOURCES = \
jpeg-quality.c \
jpeg-quality.h \
jpeg-settings.c \
jpeg-settings.h \
jpeg-settings.h
if HAVE_LIBEXIF
file_jpeg_SOURCES += \
jpeg-exif.c \
jpeg-exif.h \
gimpexif.c \
gimpexif.h
endif
file_jpeg_LDADD = \
$(libgimpui) \
@ -59,11 +63,14 @@ file_jpeg_LDADD = \
$(JPEG_LIBS) \
$(LCMS_LIBS) \
$(GTK_LIBS) \
$(EXIF_LIBS) \
$(RT_LIBS) \
$(INTLLIBS) \
$(file_jpeg_RC)
if HAVE_LIBEXIF
file_jpeg_LDADD += \
$(EXIF_LIBS)
endif
noinst_PROGRAMS = jpegqual

View file

@ -25,8 +25,6 @@
#include <libgimp/gimp.h>
#ifdef HAVE_LIBEXIF
#include <libexif/exif-data.h>
#include <libexif/exif-content.h>
#include <libexif/exif-utils.h>
@ -160,6 +158,3 @@ gimp_exif_data_remove_entry (ExifData *exif_data,
if (entry)
exif_content_remove_entry (exif_data->ifd[ifd], entry);
}
#endif /* HAVE_LIBEXIF */

View file

@ -22,8 +22,6 @@
#ifndef __GIMP_EXIF_H__
#define __GIMP_EXIF_H__
#ifdef HAVE_LIBEXIF
void gimp_metadata_store_exif (gint32 image_ID,
ExifData *exif_data);
@ -38,6 +36,4 @@ void gimp_exif_data_remove_entry (ExifData *exif_data,
ExifIfd ifd,
ExifTag tag);
#endif /* HAVE_LIBEXIF */
#endif /* __GIMP_EXIF_H__ */

View file

@ -30,8 +30,6 @@
#include <jpeglib.h>
#include <jerror.h>
#ifdef HAVE_LIBEXIF
#include <libexif/exif-content.h>
#include <libexif/exif-data.h>
#include <libexif/exif-utils.h>
@ -458,6 +456,3 @@ jpeg_exif_rotate_query_dialog (gint32 image_ID)
return (response == GTK_RESPONSE_OK);
}
#endif /* HAVE_LIBEXIF */

View file

@ -18,8 +18,6 @@
#ifndef __JPEG_EXIF_H__
#define __JPEG_EXIF_H__
#ifdef HAVE_LIBEXIF
extern ExifData *exif_data;
ExifData * jpeg_exif_data_new_from_file (const gchar *filename,
@ -40,6 +38,4 @@ void jpeg_exif_rotate (gint32 image_ID,
void jpeg_exif_rotate_query (gint32 image_ID,
gint orientation);
#endif /* HAVE_LIBEXIF */
#endif /* __JPEG_EXIF_H__ */