[gimp/metadata-browser] file-compressor: Move to own directory under plug-ins/
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] file-compressor: Move to own directory under plug-ins/
- Date: Wed, 12 Sep 2012 22:39:24 +0000 (UTC)
commit abe7789da0b530f9c431bdfc52f06d6dafe89674
Author: Mukund Sivaraman <muks banu com>
Date: Wed Jan 11 20:26:04 2012 +0530
file-compressor: Move to own directory under plug-ins/
configure.ac | 4 ++
plug-ins/Makefile.am | 7 ++++
plug-ins/common/Makefile.am | 16 --------
plug-ins/common/plugin-defs.pl | 1 -
plug-ins/file-compressor/.gitignore | 7 ++++
plug-ins/file-compressor/Makefile.am | 37 ++++++++++++++++++++
.../{common => file-compressor}/file-compressor.c | 0
7 files changed, 55 insertions(+), 17 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3f21d81..572cfb3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1145,6 +1145,8 @@ if test "x$have_zlib" = xyes; then
fi
AC_SUBST(FILE_PSP)
+
+AM_CONDITIONAL(HAVE_Z, test "x$have_zlib" = xyes)
AC_SUBST(Z_LIBS)
@@ -1161,6 +1163,7 @@ if test -z "$BZIP2_LIBS"; then
[have_libbzip2="no (libbzip2 library not found)"])
fi
+AM_CONDITIONAL(HAVE_BZIP2, test "x$have_libbzip2" = xyes)
AC_SUBST(BZIP2_LIBS)
@@ -2150,6 +2153,7 @@ plug-ins/Makefile
plug-ins/color-rotate/Makefile
plug-ins/color-rotate/images/Makefile
plug-ins/file-bmp/Makefile
+plug-ins/file-compressor/Makefile
plug-ins/file-faxg3/Makefile
plug-ins/file-fits/Makefile
plug-ins/file-fli/Makefile
diff --git a/plug-ins/Makefile.am b/plug-ins/Makefile.am
index 0108fc8..676ded2 100644
--- a/plug-ins/Makefile.am
+++ b/plug-ins/Makefile.am
@@ -25,6 +25,12 @@ if HAVE_MAC_TWAIN
twain = twain
endif
+if HAVE_Z
+if HAVE_BZIP2
+file_compressor = file-compressor
+endif
+endif
+
if HAVE_PNG
file_ico = file-ico
endif
@@ -53,6 +59,7 @@ SUBDIRS = \
$(pygimp) \
color-rotate \
file-bmp \
+ $(file_compressor) \
file-faxg3 \
file-fits \
file-fli \
diff --git a/plug-ins/common/Makefile.am b/plug-ins/common/Makefile.am
index d05be85..83738c1 100644
--- a/plug-ins/common/Makefile.am
+++ b/plug-ins/common/Makefile.am
@@ -92,7 +92,6 @@ libexec_PROGRAMS = \
engrave \
$(FILE_AA) \
file-cel \
- file-compressor \
file-csource \
file-desktop-link \
file-dicom \
@@ -1039,21 +1038,6 @@ file_cel_LDADD = \
$(INTLLIBS) \
$(file_cel_RC)
-file_compressor_SOURCES = \
- file-compressor.c
-
-file_compressor_LDADD = \
- $(libgimp) \
- $(libgimpmath) \
- $(libgimpconfig) \
- $(libgimpcolor) \
- $(libgimpbase) \
- $(CAIRO_LIBS) \
- $(GDK_PIXBUF_LIBS) \
- $(RT_LIBS) \
- $(INTLLIBS) \
- $(file_compressor_RC)
-
file_csource_SOURCES = \
file-csource.c
diff --git a/plug-ins/common/plugin-defs.pl b/plug-ins/common/plugin-defs.pl
index c0aed7e..500a507 100644
--- a/plug-ins/common/plugin-defs.pl
+++ b/plug-ins/common/plugin-defs.pl
@@ -48,7 +48,6 @@
'engrave' => { ui => 1 },
'file-aa' => { ui => 1, optional => 1, libs => 'AA_LIBS' },
'file-cel' => { ui => 1 },
- 'file-compressor' => {},
'file-csource' => { ui => 1 },
'file-desktop-link' => {},
'file-dicom' => { ui => 1, cflags => '-fno-strict-aliasing' },
diff --git a/plug-ins/file-compressor/.gitignore b/plug-ins/file-compressor/.gitignore
new file mode 100644
index 0000000..6ed858f
--- /dev/null
+++ b/plug-ins/file-compressor/.gitignore
@@ -0,0 +1,7 @@
+/Makefile.in
+/Makefile
+/.deps
+/_libs
+/.libs
+/file-compressor
+/file-compressor.exe
diff --git a/plug-ins/file-compressor/Makefile.am b/plug-ins/file-compressor/Makefile.am
new file mode 100644
index 0000000..e41416a
--- /dev/null
+++ b/plug-ins/file-compressor/Makefile.am
@@ -0,0 +1,37 @@
+## Process this file with automake to produce Makefile.in
+
+libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
+libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
+libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
+libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
+
+if OS_WIN32
+mwindows = -mwindows
+endif
+
+AM_LDFLAGS = $(mwindows)
+
+libexecdir = $(gimpplugindir)/plug-ins
+
+libexec_PROGRAMS = file-compressor
+
+file_compressor_SOURCES = \
+ file-compressor.c
+
+INCLUDES = \
+ -I$(top_srcdir) \
+ $(GTK_CFLAGS) \
+ -I$(includedir)
+
+LDADD = \
+ $(libgimpconfig) \
+ $(libgimp) \
+ $(libgimpcolor) \
+ $(libgimpmath) \
+ $(libgimpbase) \
+ $(GTK_LIBS) \
+ $(RT_LIBS) \
+ $(INTLLIBS) \
+ $(Z_LIBS) \
+ $(BZIP2_LIBS)
diff --git a/plug-ins/common/file-compressor.c b/plug-ins/file-compressor/file-compressor.c
similarity index 100%
rename from plug-ins/common/file-compressor.c
rename to plug-ins/file-compressor/file-compressor.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]