[f-spot] auto-fu magic for all the Editors extensions



commit 3ed169c900b2488111c6f8bab2c60a108a89cf71
Author: Stephane Delcroix <stephane delcroix org>
Date:   Thu Sep 17 15:57:14 2009 +0200

    auto-fu magic for all the Editors extensions

 configure.ac                                  |    6 +++
 extensions/Editors/.gitignore                 |    2 +
 extensions/Editors/BWEditor/.gitignore        |    3 +
 extensions/Editors/BWEditor/Makefile          |   30 -------------
 extensions/Editors/BWEditor/Makefile.am       |   56 +++++++++++++++++++++++++
 extensions/Editors/BlackoutEditor/.gitignore  |    2 +
 extensions/Editors/BlackoutEditor/Makefile    |   29 -------------
 extensions/Editors/BlackoutEditor/Makefile.am |   53 +++++++++++++++++++++++
 extensions/Editors/FlipEditor/.gitignore      |    2 +
 extensions/Editors/FlipEditor/Makefile        |   29 -------------
 extensions/Editors/FlipEditor/Makefile.am     |   53 +++++++++++++++++++++++
 extensions/Editors/Makefile.am                |    6 +++
 extensions/Editors/PixelateEditor/.gitignore  |    2 +
 extensions/Editors/PixelateEditor/Makefile    |   29 -------------
 extensions/Editors/PixelateEditor/Makefile.am |   53 +++++++++++++++++++++++
 extensions/Editors/ResizeEditor/Makefile      |   29 -------------
 extensions/Editors/ResizeEditor/Makefile.am   |   53 +++++++++++++++++++++++
 17 files changed, 291 insertions(+), 146 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4161474..e557d78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -311,6 +311,12 @@ src/Cms.dll.config
 src/FSpot.Widgets.dll.config
 src/Makefile
 extensions/Makefile
+extensions/Editors/Makefile
+extensions/Editors/BlackoutEditor/Makefile
+extensions/Editors/BWEditor/Makefile
+extensions/Editors/FlipEditor/Makefile
+extensions/Editors/PixelateEditor/Makefile
+extensions/Editors/ResizeEditor/Makefile
 extensions/Exporters/Makefile
 extensions/Exporters/CDExport/Makefile
 extensions/Exporters/DefaultExporters/Makefile
diff --git a/extensions/Editors/.gitignore b/extensions/Editors/.gitignore
new file mode 100644
index 0000000..282522d
--- /dev/null
+++ b/extensions/Editors/.gitignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/extensions/Editors/BWEditor/.gitignore b/extensions/Editors/BWEditor/.gitignore
new file mode 100644
index 0000000..cf9655d
--- /dev/null
+++ b/extensions/Editors/BWEditor/.gitignore
@@ -0,0 +1,3 @@
+/Makefile
+/Makefile.in
+/BWEditor.dll
diff --git a/extensions/Editors/BWEditor/Makefile.am b/extensions/Editors/BWEditor/Makefile.am
new file mode 100644
index 0000000..1fbc961
--- /dev/null
+++ b/extensions/Editors/BWEditor/Makefile.am
@@ -0,0 +1,56 @@
+include $(top_srcdir)/Makefile.include
+
+PLUGIN_NAME = BWEditor
+
+PLUGIN_MANIFEST = $(PLUGIN_NAME).addin.xml
+
+PLUGIN_ASSEMBLY = $(PLUGIN_NAME).dll
+
+PLUGIN_SOURCES =			\
+	$(srcdir)/$(PLUGIN_NAME).cs
+
+REFS =					\
+	-r:$(top_builddir)/src/f-spot.exe	\
+	-r:$(top_builddir)/src/Cms.dll		\
+	-r:$(top_builddir)/src/FSpot.Core.dll	\
+	-r:$(top_builddir)/src/FSpot.Utils.dll	\
+	$(LINK_SEMWEB)				\
+	$(LINK_MONO_ADDINS)			\
+	$(LINK_GPHOTO2)				\
+	$(LINK_GIOSHARP)			\
+	$(LINK_GTKSHARPBEANS)			\
+	-r:Mono.Simd				\
+	-r:Mono.Posix
+
+PKGS =					\
+	-pkg:gtk-sharp-2.0
+
+CSC_FLAGS += -unsafe
+
+PLUGIN_RESOURCES =				\
+	$(srcdir)/$(PLUGIN_MANIFEST)
+
+RESOURCES = $(foreach res, $(PLUGIN_RESOURCES), $(addprefix -resource:, $(res)),$(notdir $(res)))
+
+all: $(PLUGIN_ASSEMBLY)
+
+mpack: $(PLUGIN_ASSEMBLY)
+	mautil p $(PLUGIN_ASSEMBLY)
+
+$(PLUGIN_ASSEMBLY): $(PLUGIN_SOURCES) $(PLUGIN_MANIFEST)
+	$(CSC_LIB) -out:$@ $(PLUGIN_SOURCES) $(REFS) $(PKGS) $(ASSEMBLIES) $(RESOURCES)
+
+plugindir = $(pkglibdir)/extensions
+
+plugin_DATA =			\
+	$(PLUGIN_ASSEMBLY)
+
+EXTRA_DIST = 			\
+	$(PLUGIN_SOURCES)	\
+	$(PLUGIN_RESOURCES)
+
+CLEANFILES =			\
+	$(PLUGIN_ASSEMBLY)	\
+	$(PLUGIN_ASSEMBLY).mdb	\
+	*.mpack
+
diff --git a/extensions/Editors/BlackoutEditor/.gitignore b/extensions/Editors/BlackoutEditor/.gitignore
index b7f16f1..c38bcff 100644
--- a/extensions/Editors/BlackoutEditor/.gitignore
+++ b/extensions/Editors/BlackoutEditor/.gitignore
@@ -1 +1,3 @@
+/Makefile
+/Makefile.in
 /BlackoutEditor.dll
diff --git a/extensions/Editors/BlackoutEditor/Makefile.am b/extensions/Editors/BlackoutEditor/Makefile.am
new file mode 100644
index 0000000..7aa80bc
--- /dev/null
+++ b/extensions/Editors/BlackoutEditor/Makefile.am
@@ -0,0 +1,53 @@
+include $(top_srcdir)/Makefile.include
+
+PLUGIN_NAME = BlackoutEditor
+
+PLUGIN_MANIFEST = $(PLUGIN_NAME).addin.xml
+
+PLUGIN_ASSEMBLY = $(PLUGIN_NAME).dll
+
+PLUGIN_SOURCES =			\
+	$(srcdir)/$(PLUGIN_NAME).cs
+
+REFS =					\
+	-r:$(top_builddir)/src/f-spot.exe	\
+	-r:$(top_builddir)/src/Cms.dll		\
+	-r:$(top_builddir)/src/FSpot.Core.dll	\
+	-r:$(top_builddir)/src/FSpot.Utils.dll	\
+	$(LINK_SEMWEB)				\
+	$(LINK_MONO_ADDINS)			\
+	$(LINK_GPHOTO2)				\
+	$(LINK_GIOSHARP)			\
+	$(LINK_GTKSHARPBEANS)			\
+	-r:Mono.Posix
+
+PKGS =					\
+	-pkg:gtk-sharp-2.0
+
+PLUGIN_RESOURCES =				\
+	$(srcdir)/$(PLUGIN_MANIFEST)
+
+RESOURCES = $(foreach res, $(PLUGIN_RESOURCES), $(addprefix -resource:, $(res)),$(notdir $(res)))
+
+all: $(PLUGIN_ASSEMBLY)
+
+mpack: $(PLUGIN_ASSEMBLY)
+	mautil p $(PLUGIN_ASSEMBLY)
+
+$(PLUGIN_ASSEMBLY): $(PLUGIN_SOURCES) $(PLUGIN_MANIFEST)
+	$(CSC_LIB) -out:$@ $(PLUGIN_SOURCES) $(REFS) $(PKGS) $(ASSEMBLIES) $(RESOURCES)
+
+plugindir = $(pkglibdir)/extensions
+
+plugin_DATA =			\
+	$(PLUGIN_ASSEMBLY)
+
+EXTRA_DIST = 			\
+	$(PLUGIN_SOURCES)	\
+	$(PLUGIN_RESOURCES)
+
+CLEANFILES =			\
+	$(PLUGIN_ASSEMBLY)	\
+	$(PLUGIN_ASSEMBLY).mdb	\
+	*.mpack
+
diff --git a/extensions/Editors/FlipEditor/.gitignore b/extensions/Editors/FlipEditor/.gitignore
index a035b47..b5c4a32 100644
--- a/extensions/Editors/FlipEditor/.gitignore
+++ b/extensions/Editors/FlipEditor/.gitignore
@@ -1 +1,3 @@
+/Makefile
+/Makefile.in
 /FlipEditor.dll
diff --git a/extensions/Editors/FlipEditor/Makefile.am b/extensions/Editors/FlipEditor/Makefile.am
new file mode 100644
index 0000000..d22491d
--- /dev/null
+++ b/extensions/Editors/FlipEditor/Makefile.am
@@ -0,0 +1,53 @@
+include $(top_srcdir)/Makefile.include
+
+PLUGIN_NAME = FlipEditor
+
+PLUGIN_MANIFEST = $(PLUGIN_NAME).addin.xml
+
+PLUGIN_ASSEMBLY = $(PLUGIN_NAME).dll
+
+PLUGIN_SOURCES =			\
+	$(srcdir)/$(PLUGIN_NAME).cs
+
+REFS =					\
+	-r:$(top_builddir)/src/f-spot.exe	\
+	-r:$(top_builddir)/src/Cms.dll		\
+	-r:$(top_builddir)/src/FSpot.Core.dll	\
+	-r:$(top_builddir)/src/FSpot.Utils.dll	\
+	$(LINK_SEMWEB)				\
+	$(LINK_MONO_ADDINS)			\
+	$(LINK_GPHOTO2)				\
+	$(LINK_GIOSHARP)			\
+	$(LINK_GTKSHARPBEANS)			\
+	-r:Mono.Posix
+
+PKGS =					\
+	-pkg:gtk-sharp-2.0
+
+PLUGIN_RESOURCES =				\
+	$(srcdir)/$(PLUGIN_MANIFEST)
+
+RESOURCES = $(foreach res, $(PLUGIN_RESOURCES), $(addprefix -resource:, $(res)),$(notdir $(res)))
+
+all: $(PLUGIN_ASSEMBLY)
+
+mpack: $(PLUGIN_ASSEMBLY)
+	mautil p $(PLUGIN_ASSEMBLY)
+
+$(PLUGIN_ASSEMBLY): $(PLUGIN_SOURCES) $(PLUGIN_MANIFEST)
+	$(CSC_LIB) -out:$@ $(PLUGIN_SOURCES) $(REFS) $(PKGS) $(ASSEMBLIES) $(RESOURCES)
+
+plugindir = $(pkglibdir)/extensions
+
+plugin_DATA =			\
+	$(PLUGIN_ASSEMBLY)
+
+EXTRA_DIST = 			\
+	$(PLUGIN_SOURCES)	\
+	$(PLUGIN_RESOURCES)
+
+CLEANFILES =			\
+	$(PLUGIN_ASSEMBLY)	\
+	$(PLUGIN_ASSEMBLY).mdb	\
+	*.mpack
+
diff --git a/extensions/Editors/Makefile.am b/extensions/Editors/Makefile.am
new file mode 100644
index 0000000..edd2541
--- /dev/null
+++ b/extensions/Editors/Makefile.am
@@ -0,0 +1,6 @@
+DIST_SUBDIRS =		\
+	BlackoutEditor	\
+	BWEditor	\
+	FlipEditor	\
+	PixelateEditor	\
+	ResizeEditor
diff --git a/extensions/Editors/PixelateEditor/.gitignore b/extensions/Editors/PixelateEditor/.gitignore
index 36fbbdf..62b067a 100644
--- a/extensions/Editors/PixelateEditor/.gitignore
+++ b/extensions/Editors/PixelateEditor/.gitignore
@@ -1 +1,3 @@
+/Makefile
+/Makefile.in
 /PixelateEditor.dll
diff --git a/extensions/Editors/PixelateEditor/Makefile.am b/extensions/Editors/PixelateEditor/Makefile.am
new file mode 100644
index 0000000..f3583c4
--- /dev/null
+++ b/extensions/Editors/PixelateEditor/Makefile.am
@@ -0,0 +1,53 @@
+include $(top_srcdir)/Makefile.include
+
+PLUGIN_NAME = PixelateEditor
+
+PLUGIN_MANIFEST = $(PLUGIN_NAME).addin.xml
+
+PLUGIN_ASSEMBLY = $(PLUGIN_NAME).dll
+
+PLUGIN_SOURCES =			\
+	$(srcdir)/$(PLUGIN_NAME).cs
+
+REFS =					\
+	-r:$(top_builddir)/src/f-spot.exe	\
+	-r:$(top_builddir)/src/Cms.dll		\
+	-r:$(top_builddir)/src/FSpot.Core.dll	\
+	-r:$(top_builddir)/src/FSpot.Utils.dll	\
+	$(LINK_SEMWEB)				\
+	$(LINK_MONO_ADDINS)			\
+	$(LINK_GPHOTO2)				\
+	$(LINK_GIOSHARP)			\
+	$(LINK_GTKSHARPBEANS)			\
+	-r:Mono.Posix
+
+PKGS =					\
+	-pkg:gtk-sharp-2.0
+
+PLUGIN_RESOURCES =				\
+	$(srcdir)/$(PLUGIN_MANIFEST)
+
+RESOURCES = $(foreach res, $(PLUGIN_RESOURCES), $(addprefix -resource:, $(res)),$(notdir $(res)))
+
+all: $(PLUGIN_ASSEMBLY)
+
+mpack: $(PLUGIN_ASSEMBLY)
+	mautil p $(PLUGIN_ASSEMBLY)
+
+$(PLUGIN_ASSEMBLY): $(PLUGIN_SOURCES) $(PLUGIN_MANIFEST)
+	$(CSC_LIB) -out:$@ $(PLUGIN_SOURCES) $(REFS) $(PKGS) $(ASSEMBLIES) $(RESOURCES)
+
+plugindir = $(pkglibdir)/extensions
+
+plugin_DATA =			\
+	$(PLUGIN_ASSEMBLY)
+
+EXTRA_DIST = 			\
+	$(PLUGIN_SOURCES)	\
+	$(PLUGIN_RESOURCES)
+
+CLEANFILES =			\
+	$(PLUGIN_ASSEMBLY)	\
+	$(PLUGIN_ASSEMBLY).mdb	\
+	*.mpack
+
diff --git a/extensions/Editors/ResizeEditor/Makefile.am b/extensions/Editors/ResizeEditor/Makefile.am
new file mode 100644
index 0000000..ffafd7e
--- /dev/null
+++ b/extensions/Editors/ResizeEditor/Makefile.am
@@ -0,0 +1,53 @@
+include $(top_srcdir)/Makefile.include
+
+PLUGIN_NAME = ResizeEditor
+
+PLUGIN_MANIFEST = $(PLUGIN_NAME).addin.xml
+
+PLUGIN_ASSEMBLY = $(PLUGIN_NAME).dll
+
+PLUGIN_SOURCES =			\
+	$(srcdir)/$(PLUGIN_NAME).cs
+
+REFS =					\
+	-r:$(top_builddir)/src/f-spot.exe	\
+	-r:$(top_builddir)/src/Cms.dll		\
+	-r:$(top_builddir)/src/FSpot.Core.dll	\
+	-r:$(top_builddir)/src/FSpot.Utils.dll	\
+	$(LINK_SEMWEB)				\
+	$(LINK_MONO_ADDINS)			\
+	$(LINK_GPHOTO2)				\
+	$(LINK_GIOSHARP)			\
+	$(LINK_GTKSHARPBEANS)			\
+	-r:Mono.Posix
+
+PKGS =					\
+	-pkg:gtk-sharp-2.0
+
+PLUGIN_RESOURCES =				\
+	$(srcdir)/$(PLUGIN_MANIFEST)
+
+RESOURCES = $(foreach res, $(PLUGIN_RESOURCES), $(addprefix -resource:, $(res)),$(notdir $(res)))
+
+all: $(PLUGIN_ASSEMBLY)
+
+mpack: $(PLUGIN_ASSEMBLY)
+	mautil p $(PLUGIN_ASSEMBLY)
+
+$(PLUGIN_ASSEMBLY): $(PLUGIN_SOURCES) $(PLUGIN_MANIFEST)
+	$(CSC_LIB) -out:$@ $(PLUGIN_SOURCES) $(REFS) $(PKGS) $(ASSEMBLIES) $(RESOURCES)
+
+plugindir = $(pkglibdir)/extensions
+
+plugin_DATA =			\
+	$(PLUGIN_ASSEMBLY)
+
+EXTRA_DIST = 			\
+	$(PLUGIN_SOURCES)	\
+	$(PLUGIN_RESOURCES)
+
+CLEANFILES =			\
+	$(PLUGIN_ASSEMBLY)	\
+	$(PLUGIN_ASSEMBLY).mdb	\
+	*.mpack
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]