[gimp] Bug 574018 - Add a manifest to executables



commit e77dd90fc09c656faa74dfafa1f7ef533a4358cf
Author: Michael Schumacher <schumaml gmx de>
Date:   Wed Sep 1 08:24:45 2010 +0200

    Bug 574018 - Add a manifest to executables
    
    Created a resource file for plug-ins and a rule to link it to them.
    The application icon file is smaller than the default one, there's no
    point in doubling the size of a plug-in executable just for an icon.
    
    If no problems turn up, this will close the bug.

 build/windows/.gitignore               |    3 +-
 build/windows/Makefile.am              |   10 +-
 build/windows/gimp-plug-ins.rc.in      |   66 +++++
 build/windows/gimprc-plug-ins.rule     |    6 +
 build/windows/plug-ins.ico             |  Bin 0 -> 2550 bytes
 configure.ac                           |    1 +
 plug-ins/color-rotate/Makefile.am      |    8 +-
 plug-ins/common/Makefile.am            |  443 +++++++++++++++++++++-----------
 plug-ins/common/gimprc.common          |  145 +++++++++++
 plug-ins/common/mkgen.pl               |   23 ++-
 plug-ins/file-bmp/Makefile.am          |    8 +-
 plug-ins/file-faxg3/Makefile.am        |    8 +-
 plug-ins/file-fits/Makefile.am         |    8 +-
 plug-ins/file-fli/Makefile.am          |    8 +-
 plug-ins/file-ico/Makefile.am          |    8 +-
 plug-ins/file-jpeg/Makefile.am         |    8 +-
 plug-ins/file-psd/Makefile.am          |   14 +
 plug-ins/file-sgi/Makefile.am          |    8 +-
 plug-ins/file-uri/Makefile.am          |    8 +-
 plug-ins/file-xjt/Makefile.am          |    8 +-
 plug-ins/flame/Makefile.am             |    8 +-
 plug-ins/fractal-explorer/Makefile.am  |    8 +-
 plug-ins/gfig/Makefile.am              |    8 +-
 plug-ins/gimpressionist/Makefile.am    |    8 +-
 plug-ins/gradient-flare/Makefile.am    |    8 +-
 plug-ins/help-browser/Makefile.am      |    8 +-
 plug-ins/help/Makefile.am              |    8 +-
 plug-ins/ifs-compose/Makefile.am       |    8 +-
 plug-ins/imagemap/Makefile.am          |    8 +-
 plug-ins/lighting/Makefile.am          |    8 +-
 plug-ins/map-object/Makefile.am        |    8 +-
 plug-ins/maze/Makefile.am              |    8 +-
 plug-ins/metadata/Makefile.am          |    8 +-
 plug-ins/pagecurl/Makefile.am          |    8 +-
 plug-ins/print/Makefile.am             |    8 +-
 plug-ins/script-fu/Makefile.am         |    8 +-
 plug-ins/selection-to-path/Makefile.am |    8 +-
 plug-ins/twain/Makefile.am             |    7 +-
 38 files changed, 753 insertions(+), 181 deletions(-)
---
diff --git a/build/windows/.gitignore b/build/windows/.gitignore
index 21e7f9d..2656b54 100644
--- a/build/windows/.gitignore
+++ b/build/windows/.gitignore
@@ -1,3 +1,4 @@
 /Makefile
 /Makefile.in
-/gimp.rc
\ No newline at end of file
+/gimp.rc
+/gimp-plug-ins.rc
diff --git a/build/windows/Makefile.am b/build/windows/Makefile.am
index 185e1c6..678f09f 100644
--- a/build/windows/Makefile.am
+++ b/build/windows/Makefile.am
@@ -1,6 +1,8 @@
 EXTRA_DIST = \
-	gimprc.rule	\
-	gimp.rc		\
-	gimp.manifest	\
-	fileicon.ico	\
+	gimprc.rule		\
+	gimprc-plug-ins.rule	\
+	gimp.rc			\
+	gimp-plug-ins.rc	\
+	gimp.manifest		\
+	fileicon.ico		\
 	wilber.ico
diff --git a/build/windows/gimp-plug-ins.rc.in b/build/windows/gimp-plug-ins.rc.in
new file mode 100644
index 0000000..9232e13
--- /dev/null
+++ b/build/windows/gimp-plug-ins.rc.in
@@ -0,0 +1,66 @@
+#include <winver.h>
+
+#define _QUOTE(x) #x
+#define QUOTE(x) _QUOTE(x)
+
+#define VER_COMPANYNAME_STR         "Spencer Kimball, Peter Mattis and the GIMP Development Team"
+
+#define VER_PRODUCTVERSION          @GIMP_MAJOR_VERSION@,@GIMP_MINOR_VERSION@,@GIMP_MICRO_VERSION@,0
+#define VER_PRODUCTVERSION_STR      "@GIMP_MAJOR_VERSION  @GIMP_MINOR_VERSION  @GIMP_MICRO_VERSION \0"
+#define VER_PRODUCTNAME_STR         "@GIMP_FULL_NAME@"
+
+#define VER_FILEVERSION             @GIMP_MAJOR_VERSION@,@GIMP_MINOR_VERSION@,@GIMP_MICRO_VERSION@,0
+#define VER_FILEVERSION_STR         "@GIMP_MAJOR_VERSION  @GIMP_MINOR_VERSION  @GIMP_MICRO_VERSION  0\0"
+
+#define VER_FILEDESCRIPTION_STR     "@GIMP_FULL_NAME@ Plug-In"
+#define VER_INTERNALNAME_STR        QUOTE(INTERNALNAME_STR)
+#define VER_ORIGINALFILENAME_STR    QUOTE(ORIGINALFILENAME_STR)
+
+#define VER_LEGALCOPYRIGHT_STR      "Copyright © 1995-2010"
+
+#ifndef DEBUG
+#define VER_DEBUG                   0                 
+#else
+#define VER_DEBUG                   VS_FF_DEBUG
+#endif
+
+#ifndef GIMP_UNSTABLE
+#define VER_PRERELEASE              0
+#else
+#define VER_PRERELEASE              VS_FF_PRERELEASE
+#endif
+
+VS_VERSION_INFO VERSIONINFO
+FILEVERSION    	VER_FILEVERSION
+PRODUCTVERSION 	VER_PRODUCTVERSION
+FILEFLAGSMASK  	VS_FFI_FILEFLAGSMASK
+FILEFLAGS      	(VER_PRERELEASE|VER_DEBUG)
+FILEOS         	VOS__WINDOWS32
+FILETYPE       	VFT_APP
+FILESUBTYPE    	VFT2_UNKNOWN
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904B0"
+        BEGIN
+            VALUE "CompanyName",      VER_COMPANYNAME_STR
+            VALUE "FileDescription",  VER_FILEDESCRIPTION_STR
+            VALUE "FileVersion",      VER_FILEVERSION_STR
+            VALUE "InternalName",     VER_INTERNALNAME_STR
+            VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
+            VALUE "ProductName",      VER_PRODUCTNAME_STR
+            VALUE "ProductVersion",   VER_PRODUCTVERSION_STR
+            VALUE "LegalCopyright",   VER_LEGALCOPYRIGHT_STR
+        END
+    END
+
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1200
+
+    END
+END
+
+#include "winuser.h"
+1	ICON	QUOTE(TOP_SRCDIR) "/build/windows/plug-ins.ico"
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST QUOTE(TOP_SRCDIR) "/build/windows/gimp.manifest"
diff --git a/build/windows/gimprc-plug-ins.rule b/build/windows/gimprc-plug-ins.rule
new file mode 100644
index 0000000..9f45450
--- /dev/null
+++ b/build/windows/gimprc-plug-ins.rule
@@ -0,0 +1,6 @@
+# Version resources for Microsoft Windows
+%.rc.o: $(top_srcdir)/build/windows/gimp-plug-ins.rc
+	$(WINDRES) --define ORIGINALFILENAME_STR="$*$(EXEEXT)" \
+		--define INTERNALNAME_STR="$*" \
+		--define TOP_SRCDIR="$(top_srcdir)" \
+		$< $@
diff --git a/build/windows/plug-ins.ico b/build/windows/plug-ins.ico
new file mode 100644
index 0000000..17c6022
Binary files /dev/null and b/build/windows/plug-ins.ico differ
diff --git a/configure.ac b/configure.ac
index 5f78c7f..833e195 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2075,6 +2075,7 @@ app/tests/gimpdir/patterns/Makefile
 build/Makefile
 build/windows/Makefile
 build/windows/gimp.rc
+build/windows/gimp-plug-ins.rc
 plug-ins/Makefile
 plug-ins/color-rotate/Makefile
 plug-ins/color-rotate/images/Makefile
diff --git a/plug-ins/color-rotate/Makefile.am b/plug-ins/color-rotate/Makefile.am
index c713c8c..588bb07 100644
--- a/plug-ins/color-rotate/Makefile.am
+++ b/plug-ins/color-rotate/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+color_rotate_RC = color-rotate.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 SUBDIRS = images
@@ -49,4 +54,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(color_rotate_RC)
diff --git a/plug-ins/common/Makefile.am b/plug-ins/common/Makefile.am
index a45f75d..610a302 100644
--- a/plug-ins/common/Makefile.am
+++ b/plug-ins/common/Makefile.am
@@ -13,6 +13,11 @@ else
 libm = -lm
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+include gimprc.common
+endif
+
 libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
 libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
 libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
@@ -29,7 +34,8 @@ libexecdir = $(gimpplugindir)/plug-ins
 
 EXTRA_DIST = \
 	mkgen.pl	\
-	plugin-defs.pl
+	plugin-defs.pl	\
+	gimprc.common
 
 INCLUDES = \
 	-I$(top_srcdir)	\
@@ -227,7 +233,8 @@ alien_map_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(alien_map_RC)
 
 align_layers_SOURCES = \
 	align-layers.c
@@ -243,7 +250,8 @@ align_layers_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(align_layers_RC)
 
 animation_optimize_SOURCES = \
 	animation-optimize.c
@@ -256,7 +264,8 @@ animation_optimize_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(animation_optimize_RC)
 
 animation_play_SOURCES = \
 	animation-play.c
@@ -272,7 +281,8 @@ animation_play_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(animation_play_RC)
 
 antialias_SOURCES = \
 	antialias.c
@@ -285,7 +295,8 @@ antialias_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(antialias_RC)
 
 apply_canvas_SOURCES = \
 	apply-canvas.c
@@ -301,7 +312,8 @@ apply_canvas_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(apply_canvas_RC)
 
 blinds_SOURCES = \
 	blinds.c
@@ -317,7 +329,8 @@ blinds_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(blinds_RC)
 
 blur_SOURCES = \
 	blur.c
@@ -330,7 +343,8 @@ blur_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(blur_RC)
 
 blur_gauss_SOURCES = \
 	blur-gauss.c
@@ -346,7 +360,8 @@ blur_gauss_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(blur_gauss_RC)
 
 blur_gauss_selective_CFLAGS = $(MMX_EXTRA_CFLAGS)
 
@@ -364,7 +379,8 @@ blur_gauss_selective_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(blur_gauss_selective_RC)
 
 blur_motion_SOURCES = \
 	blur-motion.c
@@ -380,7 +396,8 @@ blur_motion_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(blur_motion_RC)
 
 border_average_SOURCES = \
 	border-average.c
@@ -396,7 +413,8 @@ border_average_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(border_average_RC)
 
 bump_map_SOURCES = \
 	bump-map.c
@@ -412,7 +430,8 @@ bump_map_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(bump_map_RC)
 
 cartoon_SOURCES = \
 	cartoon.c
@@ -428,7 +447,8 @@ cartoon_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(cartoon_RC)
 
 channel_mixer_SOURCES = \
 	channel-mixer.c
@@ -444,7 +464,8 @@ channel_mixer_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(channel_mixer_RC)
 
 checkerboard_SOURCES = \
 	checkerboard.c
@@ -460,7 +481,8 @@ checkerboard_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(checkerboard_RC)
 
 cml_explorer_SOURCES = \
 	cml-explorer.c
@@ -476,7 +498,8 @@ cml_explorer_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(cml_explorer_RC)
 
 color_cube_analyze_SOURCES = \
 	color-cube-analyze.c
@@ -492,7 +515,8 @@ color_cube_analyze_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(color_cube_analyze_RC)
 
 color_enhance_SOURCES = \
 	color-enhance.c
@@ -508,7 +532,8 @@ color_enhance_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(color_enhance_RC)
 
 color_exchange_SOURCES = \
 	color-exchange.c
@@ -524,7 +549,8 @@ color_exchange_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(color_exchange_RC)
 
 color_to_alpha_SOURCES = \
 	color-to-alpha.c
@@ -540,7 +566,8 @@ color_to_alpha_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(color_to_alpha_RC)
 
 colorify_SOURCES = \
 	colorify.c
@@ -556,7 +583,8 @@ colorify_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(colorify_RC)
 
 colormap_remap_SOURCES = \
 	colormap-remap.c
@@ -572,7 +600,8 @@ colormap_remap_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(colormap_remap_RC)
 
 compose_SOURCES = \
 	compose.c
@@ -588,7 +617,8 @@ compose_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(compose_RC)
 
 contrast_normalize_SOURCES = \
 	contrast-normalize.c
@@ -601,7 +631,8 @@ contrast_normalize_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(contrast_normalize_RC)
 
 contrast_retinex_SOURCES = \
 	contrast-retinex.c
@@ -617,7 +648,8 @@ contrast_retinex_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(contrast_retinex_RC)
 
 contrast_stretch_SOURCES = \
 	contrast-stretch.c
@@ -630,7 +662,8 @@ contrast_stretch_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(contrast_stretch_RC)
 
 contrast_stretch_hsv_SOURCES = \
 	contrast-stretch-hsv.c
@@ -643,7 +676,8 @@ contrast_stretch_hsv_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(contrast_stretch_hsv_RC)
 
 convolution_matrix_SOURCES = \
 	convolution-matrix.c
@@ -659,7 +693,8 @@ convolution_matrix_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(convolution_matrix_RC)
 
 crop_auto_SOURCES = \
 	crop-auto.c
@@ -672,7 +707,8 @@ crop_auto_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(crop_auto_RC)
 
 crop_zealous_SOURCES = \
 	crop-zealous.c
@@ -685,7 +721,8 @@ crop_zealous_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(crop_zealous_RC)
 
 cubism_SOURCES = \
 	cubism.c
@@ -701,7 +738,8 @@ cubism_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(cubism_RC)
 
 curve_bend_SOURCES = \
 	curve-bend.c
@@ -717,7 +755,8 @@ curve_bend_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(curve_bend_RC)
 
 decompose_SOURCES = \
 	decompose.c
@@ -733,7 +772,8 @@ decompose_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(decompose_RC)
 
 deinterlace_SOURCES = \
 	deinterlace.c
@@ -749,7 +789,8 @@ deinterlace_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(deinterlace_RC)
 
 depth_merge_SOURCES = \
 	depth-merge.c
@@ -765,7 +806,8 @@ depth_merge_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(depth_merge_RC)
 
 despeckle_SOURCES = \
 	despeckle.c
@@ -781,7 +823,8 @@ despeckle_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(despeckle_RC)
 
 destripe_SOURCES = \
 	destripe.c
@@ -797,7 +840,8 @@ destripe_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(destripe_RC)
 
 diffraction_SOURCES = \
 	diffraction.c
@@ -813,7 +857,8 @@ diffraction_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(diffraction_RC)
 
 displace_SOURCES = \
 	displace.c
@@ -829,7 +874,8 @@ displace_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(displace_RC)
 
 edge_SOURCES = \
 	edge.c
@@ -845,7 +891,8 @@ edge_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(edge_RC)
 
 edge_dog_SOURCES = \
 	edge-dog.c
@@ -861,7 +908,8 @@ edge_dog_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(edge_dog_RC)
 
 edge_laplace_SOURCES = \
 	edge-laplace.c
@@ -874,7 +922,8 @@ edge_laplace_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(edge_laplace_RC)
 
 edge_neon_SOURCES = \
 	edge-neon.c
@@ -890,7 +939,8 @@ edge_neon_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(edge_neon_RC)
 
 edge_sobel_SOURCES = \
 	edge-sobel.c
@@ -906,7 +956,8 @@ edge_sobel_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(edge_sobel_RC)
 
 emboss_SOURCES = \
 	emboss.c
@@ -922,7 +973,8 @@ emboss_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(emboss_RC)
 
 engrave_SOURCES = \
 	engrave.c
@@ -938,7 +990,8 @@ engrave_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(engrave_RC)
 
 file_aa_SOURCES = \
 	file-aa.c
@@ -955,7 +1008,8 @@ file_aa_LDADD = \
 	$(GTK_LIBS)		\
 	$(AA_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_aa_RC)
 
 file_cel_SOURCES = \
 	file-cel.c
@@ -971,7 +1025,8 @@ file_cel_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_cel_RC)
 
 file_compressor_SOURCES = \
 	file-compressor.c
@@ -984,7 +1039,8 @@ file_compressor_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_compressor_RC)
 
 file_csource_SOURCES = \
 	file-csource.c
@@ -1000,7 +1056,8 @@ file_csource_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_csource_RC)
 
 file_desktop_link_SOURCES = \
 	file-desktop-link.c
@@ -1013,7 +1070,8 @@ file_desktop_link_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_desktop_link_RC)
 
 file_dicom_SOURCES = \
 	file-dicom.c
@@ -1029,7 +1087,8 @@ file_dicom_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_dicom_RC)
 
 file_gbr_SOURCES = \
 	file-gbr.c
@@ -1045,7 +1104,8 @@ file_gbr_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_gbr_RC)
 
 file_gif_load_SOURCES = \
 	file-gif-load.c
@@ -1058,7 +1118,8 @@ file_gif_load_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_gif_load_RC)
 
 file_gif_save_SOURCES = \
 	file-gif-save.c
@@ -1074,7 +1135,8 @@ file_gif_save_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_gif_save_RC)
 
 file_gih_SOURCES = \
 	file-gih.c
@@ -1090,7 +1152,8 @@ file_gih_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_gih_RC)
 
 file_glob_SOURCES = \
 	file-glob.c
@@ -1103,7 +1166,8 @@ file_glob_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_glob_RC)
 
 file_header_SOURCES = \
 	file-header.c
@@ -1119,7 +1183,8 @@ file_header_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_header_RC)
 
 file_html_table_SOURCES = \
 	file-html-table.c
@@ -1135,7 +1200,8 @@ file_html_table_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_html_table_RC)
 
 file_jp2_load_SOURCES = \
 	file-jp2-load.c
@@ -1149,7 +1215,8 @@ file_jp2_load_LDADD = \
 	$(GLIB_LIBS)		\
 	$(JP2_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_jp2_load_RC)
 
 file_mng_SOURCES = \
 	file-mng.c
@@ -1166,7 +1233,8 @@ file_mng_LDADD = \
 	$(GTK_LIBS)		\
 	$(MNG_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_mng_RC)
 
 file_pat_SOURCES = \
 	file-pat.c
@@ -1182,7 +1250,8 @@ file_pat_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_pat_RC)
 
 file_pcx_SOURCES = \
 	file-pcx.c
@@ -1198,7 +1267,8 @@ file_pcx_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_pcx_RC)
 
 file_pdf_load_CFLAGS = $(POPPLER_CFLAGS)
 
@@ -1217,7 +1287,8 @@ file_pdf_load_LDADD = \
 	$(GTK_LIBS)		\
 	$(POPPLER_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_pdf_load_RC)
 
 file_pdf_save_CFLAGS = $(CAIRO_PDF_CFLAGS)
 
@@ -1236,7 +1307,8 @@ file_pdf_save_LDADD = \
 	$(GTK_LIBS)		\
 	$(CAIRO_PDF_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_pdf_save_RC)
 
 file_pix_SOURCES = \
 	file-pix.c
@@ -1252,7 +1324,8 @@ file_pix_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_pix_RC)
 
 file_png_CFLAGS = $(PNG_CFLAGS)
 
@@ -1271,7 +1344,8 @@ file_png_LDADD = \
 	$(GTK_LIBS)		\
 	$(PNG_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_png_RC)
 
 file_pnm_SOURCES = \
 	file-pnm.c
@@ -1287,7 +1361,8 @@ file_pnm_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_pnm_RC)
 
 file_ps_SOURCES = \
 	file-ps.c
@@ -1303,7 +1378,8 @@ file_ps_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_ps_RC)
 
 file_psp_SOURCES = \
 	file-psp.c
@@ -1320,7 +1396,8 @@ file_psp_LDADD = \
 	$(GTK_LIBS)		\
 	$(Z_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_psp_RC)
 
 file_raw_SOURCES = \
 	file-raw.c
@@ -1336,7 +1413,8 @@ file_raw_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_raw_RC)
 
 file_sunras_SOURCES = \
 	file-sunras.c
@@ -1352,7 +1430,8 @@ file_sunras_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_sunras_RC)
 
 file_svg_CFLAGS = $(SVG_CFLAGS)
 
@@ -1371,7 +1450,8 @@ file_svg_LDADD = \
 	$(GTK_LIBS)		\
 	$(SVG_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_svg_RC)
 
 file_tga_SOURCES = \
 	file-tga.c
@@ -1387,7 +1467,8 @@ file_tga_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_tga_RC)
 
 file_tiff_load_SOURCES = \
 	file-tiff-load.c
@@ -1404,7 +1485,8 @@ file_tiff_load_LDADD = \
 	$(GTK_LIBS)		\
 	$(TIFF_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_tiff_load_RC)
 
 file_tiff_save_SOURCES = \
 	file-tiff-save.c
@@ -1421,7 +1503,8 @@ file_tiff_save_LDADD = \
 	$(GTK_LIBS)		\
 	$(TIFF_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_tiff_save_RC)
 
 file_wmf_CFLAGS = $(WMF_CFLAGS)
 
@@ -1440,7 +1523,8 @@ file_wmf_LDADD = \
 	$(GTK_LIBS)		\
 	$(WMF_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_wmf_RC)
 
 file_xbm_SOURCES = \
 	file-xbm.c
@@ -1456,7 +1540,8 @@ file_xbm_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_xbm_RC)
 
 file_xmc_SOURCES = \
 	file-xmc.c
@@ -1473,7 +1558,8 @@ file_xmc_LDADD = \
 	$(GTK_LIBS)		\
 	$(XMC_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_xmc_RC)
 
 file_xpm_SOURCES = \
 	file-xpm.c
@@ -1490,7 +1576,8 @@ file_xpm_LDADD = \
 	$(GTK_LIBS)		\
 	$(XPM_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_xpm_RC)
 
 file_xwd_SOURCES = \
 	file-xwd.c
@@ -1506,7 +1593,8 @@ file_xwd_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_xwd_RC)
 
 film_SOURCES = \
 	film.c
@@ -1522,7 +1610,8 @@ film_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(film_RC)
 
 filter_pack_SOURCES = \
 	filter-pack.c
@@ -1538,7 +1627,8 @@ filter_pack_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(filter_pack_RC)
 
 fractal_trace_SOURCES = \
 	fractal-trace.c
@@ -1554,7 +1644,8 @@ fractal_trace_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(fractal_trace_RC)
 
 gradient_map_SOURCES = \
 	gradient-map.c
@@ -1567,7 +1658,8 @@ gradient_map_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(gradient_map_RC)
 
 grid_SOURCES = \
 	grid.c
@@ -1583,7 +1675,8 @@ grid_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(grid_RC)
 
 guillotine_SOURCES = \
 	guillotine.c
@@ -1596,7 +1689,8 @@ guillotine_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(guillotine_RC)
 
 hot_SOURCES = \
 	hot.c
@@ -1612,7 +1706,8 @@ hot_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(hot_RC)
 
 illusion_SOURCES = \
 	illusion.c
@@ -1628,7 +1723,8 @@ illusion_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(illusion_RC)
 
 iwarp_SOURCES = \
 	iwarp.c
@@ -1644,7 +1740,8 @@ iwarp_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(iwarp_RC)
 
 jigsaw_SOURCES = \
 	jigsaw.c
@@ -1660,7 +1757,8 @@ jigsaw_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(jigsaw_RC)
 
 lcms_CFLAGS = $(LCMS_CFLAGS)
 
@@ -1679,7 +1777,8 @@ lcms_LDADD = \
 	$(GTK_LIBS)		\
 	$(LCMS_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(lcms_RC)
 
 lens_apply_SOURCES = \
 	lens-apply.c
@@ -1695,7 +1794,8 @@ lens_apply_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(lens_apply_RC)
 
 lens_distortion_SOURCES = \
 	lens-distortion.c
@@ -1711,7 +1811,8 @@ lens_distortion_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(lens_distortion_RC)
 
 lens_flare_SOURCES = \
 	lens-flare.c
@@ -1727,7 +1828,8 @@ lens_flare_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(lens_flare_RC)
 
 mail_SOURCES = \
 	mail.c
@@ -1743,7 +1845,8 @@ mail_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(mail_RC)
 
 max_rgb_SOURCES = \
 	max-rgb.c
@@ -1759,7 +1862,8 @@ max_rgb_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(max_rgb_RC)
 
 mosaic_SOURCES = \
 	mosaic.c
@@ -1775,7 +1879,8 @@ mosaic_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(mosaic_RC)
 
 newsprint_SOURCES = \
 	newsprint.c
@@ -1791,7 +1896,8 @@ newsprint_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(newsprint_RC)
 
 nl_filter_SOURCES = \
 	nl-filter.c
@@ -1807,7 +1913,8 @@ nl_filter_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(nl_filter_RC)
 
 noise_hsv_SOURCES = \
 	noise-hsv.c
@@ -1823,7 +1930,8 @@ noise_hsv_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(noise_hsv_RC)
 
 noise_randomize_SOURCES = \
 	noise-randomize.c
@@ -1839,7 +1947,8 @@ noise_randomize_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(noise_randomize_RC)
 
 noise_rgb_SOURCES = \
 	noise-rgb.c
@@ -1855,7 +1964,8 @@ noise_rgb_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(noise_rgb_RC)
 
 noise_solid_SOURCES = \
 	noise-solid.c
@@ -1871,7 +1981,8 @@ noise_solid_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(noise_solid_RC)
 
 noise_spread_SOURCES = \
 	noise-spread.c
@@ -1887,7 +1998,8 @@ noise_spread_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(noise_spread_RC)
 
 nova_SOURCES = \
 	nova.c
@@ -1903,7 +2015,8 @@ nova_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(nova_RC)
 
 oilify_SOURCES = \
 	oilify.c
@@ -1919,7 +2032,8 @@ oilify_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(oilify_RC)
 
 photocopy_SOURCES = \
 	photocopy.c
@@ -1935,7 +2049,8 @@ photocopy_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(photocopy_RC)
 
 pixelize_SOURCES = \
 	pixelize.c
@@ -1951,7 +2066,8 @@ pixelize_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(pixelize_RC)
 
 plasma_SOURCES = \
 	plasma.c
@@ -1967,7 +2083,8 @@ plasma_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(plasma_RC)
 
 plugin_browser_SOURCES = \
 	plugin-browser.c
@@ -1983,7 +2100,8 @@ plugin_browser_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(plugin_browser_RC)
 
 polar_coords_SOURCES = \
 	polar-coords.c
@@ -1999,7 +2117,8 @@ polar_coords_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(polar_coords_RC)
 
 procedure_browser_SOURCES = \
 	procedure-browser.c
@@ -2015,7 +2134,8 @@ procedure_browser_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(procedure_browser_RC)
 
 qbist_SOURCES = \
 	qbist.c
@@ -2031,7 +2151,8 @@ qbist_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(qbist_RC)
 
 red_eye_removal_SOURCES = \
 	red-eye-removal.c
@@ -2047,7 +2168,8 @@ red_eye_removal_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(red_eye_removal_RC)
 
 ripple_SOURCES = \
 	ripple.c
@@ -2063,7 +2185,8 @@ ripple_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(ripple_RC)
 
 rotate_SOURCES = \
 	rotate.c
@@ -2076,7 +2199,8 @@ rotate_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(rotate_RC)
 
 sample_colorize_SOURCES = \
 	sample-colorize.c
@@ -2092,7 +2216,8 @@ sample_colorize_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(sample_colorize_RC)
 
 screenshot_CFLAGS = $(XFIXES_CFLAGS)
 
@@ -2111,7 +2236,8 @@ screenshot_LDADD = \
 	$(GTK_LIBS)		\
 	$(SCREENSHOT_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(screenshot_RC)
 
 semi_flatten_SOURCES = \
 	semi-flatten.c
@@ -2124,7 +2250,8 @@ semi_flatten_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(semi_flatten_RC)
 
 sharpen_SOURCES = \
 	sharpen.c
@@ -2140,7 +2267,8 @@ sharpen_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(sharpen_RC)
 
 shift_SOURCES = \
 	shift.c
@@ -2156,7 +2284,8 @@ shift_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(shift_RC)
 
 sinus_SOURCES = \
 	sinus.c
@@ -2172,7 +2301,8 @@ sinus_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(sinus_RC)
 
 smooth_palette_SOURCES = \
 	smooth-palette.c
@@ -2188,7 +2318,8 @@ smooth_palette_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(smooth_palette_RC)
 
 softglow_SOURCES = \
 	softglow.c
@@ -2204,7 +2335,8 @@ softglow_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(softglow_RC)
 
 sparkle_SOURCES = \
 	sparkle.c
@@ -2220,7 +2352,8 @@ sparkle_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(sparkle_RC)
 
 sphere_designer_SOURCES = \
 	sphere-designer.c
@@ -2236,7 +2369,8 @@ sphere_designer_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(sphere_designer_RC)
 
 threshold_alpha_SOURCES = \
 	threshold-alpha.c
@@ -2252,7 +2386,8 @@ threshold_alpha_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(threshold_alpha_RC)
 
 tile_SOURCES = \
 	tile.c
@@ -2268,7 +2403,8 @@ tile_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(tile_RC)
 
 tile_glass_SOURCES = \
 	tile-glass.c
@@ -2284,7 +2420,8 @@ tile_glass_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(tile_glass_RC)
 
 tile_paper_SOURCES = \
 	tile-paper.c
@@ -2300,7 +2437,8 @@ tile_paper_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(tile_paper_RC)
 
 tile_seamless_SOURCES = \
 	tile-seamless.c
@@ -2313,7 +2451,8 @@ tile_seamless_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(tile_seamless_RC)
 
 tile_small_SOURCES = \
 	tile-small.c
@@ -2329,7 +2468,8 @@ tile_small_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(tile_small_RC)
 
 unit_editor_SOURCES = \
 	unit-editor.c
@@ -2345,7 +2485,8 @@ unit_editor_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(unit_editor_RC)
 
 unsharp_mask_SOURCES = \
 	unsharp-mask.c
@@ -2361,7 +2502,8 @@ unsharp_mask_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(unsharp_mask_RC)
 
 value_invert_SOURCES = \
 	value-invert.c
@@ -2374,7 +2516,8 @@ value_invert_LDADD = \
 	$(libgimpbase)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(value_invert_RC)
 
 value_propagate_SOURCES = \
 	value-propagate.c
@@ -2390,7 +2533,8 @@ value_propagate_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(value_propagate_RC)
 
 van_gogh_lic_SOURCES = \
 	van-gogh-lic.c
@@ -2406,7 +2550,8 @@ van_gogh_lic_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(van_gogh_lic_RC)
 
 video_SOURCES = \
 	video.c
@@ -2422,7 +2567,8 @@ video_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(video_RC)
 
 warp_SOURCES = \
 	warp.c
@@ -2438,7 +2584,8 @@ warp_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(warp_RC)
 
 waves_SOURCES = \
 	waves.c
@@ -2454,7 +2601,8 @@ waves_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(waves_RC)
 
 web_browser_SOURCES = \
 	web-browser.c
@@ -2470,7 +2618,8 @@ web_browser_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(web_browser_RC)
 
 whirl_pinch_SOURCES = \
 	whirl-pinch.c
@@ -2486,7 +2635,8 @@ whirl_pinch_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(whirl_pinch_RC)
 
 wind_SOURCES = \
 	wind.c
@@ -2502,4 +2652,5 @@ wind_LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(wind_RC)
diff --git a/plug-ins/common/gimprc.common b/plug-ins/common/gimprc.common
new file mode 100644
index 0000000..b90d25b
--- /dev/null
+++ b/plug-ins/common/gimprc.common
@@ -0,0 +1,145 @@
+alien_map_RC = alien-map.rc.o
+align_layers_RC = align-layers.rc.o
+animation_optimize_RC = animation-optimize.rc.o
+animation_play_RC = animation-play.rc.o
+antialias_RC = antialias.rc.o
+apply_canvas_RC = apply-canvas.rc.o
+blinds_RC = blinds.rc.o
+blur_RC = blur.rc.o
+blur_gauss_RC = blur-gauss.rc.o
+blur_gauss_selective_RC = blur-gauss-selective.rc.o
+blur_motion_RC = blur-motion.rc.o
+border_average_RC = border-average.rc.o
+bump_map_RC = bump-map.rc.o
+cartoon_RC = cartoon.rc.o
+channel_mixer_RC = channel-mixer.rc.o
+checkerboard_RC = checkerboard.rc.o
+cml_explorer_RC = cml-explorer.rc.o
+color_cube_analyze_RC = color-cube-analyze.rc.o
+color_enhance_RC = color-enhance.rc.o
+color_exchange_RC = color-exchange.rc.o
+color_to_alpha_RC = color-to-alpha.rc.o
+colorify_RC = colorify.rc.o
+colormap_remap_RC = colormap-remap.rc.o
+compose_RC = compose.rc.o
+contrast_normalize_RC = contrast-normalize.rc.o
+contrast_retinex_RC = contrast-retinex.rc.o
+contrast_stretch_RC = contrast-stretch.rc.o
+contrast_stretch_hsv_RC = contrast-stretch-hsv.rc.o
+convolution_matrix_RC = convolution-matrix.rc.o
+crop_auto_RC = crop-auto.rc.o
+crop_zealous_RC = crop-zealous.rc.o
+cubism_RC = cubism.rc.o
+curve_bend_RC = curve-bend.rc.o
+decompose_RC = decompose.rc.o
+deinterlace_RC = deinterlace.rc.o
+depth_merge_RC = depth-merge.rc.o
+despeckle_RC = despeckle.rc.o
+destripe_RC = destripe.rc.o
+diffraction_RC = diffraction.rc.o
+displace_RC = displace.rc.o
+edge_RC = edge.rc.o
+edge_dog_RC = edge-dog.rc.o
+edge_laplace_RC = edge-laplace.rc.o
+edge_neon_RC = edge-neon.rc.o
+edge_sobel_RC = edge-sobel.rc.o
+emboss_RC = emboss.rc.o
+engrave_RC = engrave.rc.o
+file_aa_RC = file-aa.rc.o
+file_cel_RC = file-cel.rc.o
+file_compressor_RC = file-compressor.rc.o
+file_csource_RC = file-csource.rc.o
+file_desktop_link_RC = file-desktop-link.rc.o
+file_dicom_RC = file-dicom.rc.o
+file_gbr_RC = file-gbr.rc.o
+file_gif_load_RC = file-gif-load.rc.o
+file_gif_save_RC = file-gif-save.rc.o
+file_gih_RC = file-gih.rc.o
+file_glob_RC = file-glob.rc.o
+file_header_RC = file-header.rc.o
+file_html_table_RC = file-html-table.rc.o
+file_jp2_load_RC = file-jp2-load.rc.o
+file_mng_RC = file-mng.rc.o
+file_pat_RC = file-pat.rc.o
+file_pcx_RC = file-pcx.rc.o
+file_pdf_load_RC = file-pdf-load.rc.o
+file_pdf_save_RC = file-pdf-save.rc.o
+file_pix_RC = file-pix.rc.o
+file_png_RC = file-png.rc.o
+file_pnm_RC = file-pnm.rc.o
+file_ps_RC = file-ps.rc.o
+file_psp_RC = file-psp.rc.o
+file_raw_RC = file-raw.rc.o
+file_sunras_RC = file-sunras.rc.o
+file_svg_RC = file-svg.rc.o
+file_tga_RC = file-tga.rc.o
+file_tiff_load_RC = file-tiff-load.rc.o
+file_tiff_save_RC = file-tiff-save.rc.o
+file_wmf_RC = file-wmf.rc.o
+file_xbm_RC = file-xbm.rc.o
+file_xmc_RC = file-xmc.rc.o
+file_xpm_RC = file-xpm.rc.o
+file_xwd_RC = file-xwd.rc.o
+film_RC = film.rc.o
+filter_pack_RC = filter-pack.rc.o
+fractal_trace_RC = fractal-trace.rc.o
+gradient_map_RC = gradient-map.rc.o
+grid_RC = grid.rc.o
+guillotine_RC = guillotine.rc.o
+hot_RC = hot.rc.o
+illusion_RC = illusion.rc.o
+iwarp_RC = iwarp.rc.o
+jigsaw_RC = jigsaw.rc.o
+lcms_RC = lcms.rc.o
+lens_apply_RC = lens-apply.rc.o
+lens_distortion_RC = lens-distortion.rc.o
+lens_flare_RC = lens-flare.rc.o
+mail_RC = mail.rc.o
+max_rgb_RC = max-rgb.rc.o
+mosaic_RC = mosaic.rc.o
+newsprint_RC = newsprint.rc.o
+nl_filter_RC = nl-filter.rc.o
+noise_hsv_RC = noise-hsv.rc.o
+noise_randomize_RC = noise-randomize.rc.o
+noise_rgb_RC = noise-rgb.rc.o
+noise_solid_RC = noise-solid.rc.o
+noise_spread_RC = noise-spread.rc.o
+nova_RC = nova.rc.o
+oilify_RC = oilify.rc.o
+photocopy_RC = photocopy.rc.o
+pixelize_RC = pixelize.rc.o
+plasma_RC = plasma.rc.o
+plugin_browser_RC = plugin-browser.rc.o
+polar_coords_RC = polar-coords.rc.o
+procedure_browser_RC = procedure-browser.rc.o
+qbist_RC = qbist.rc.o
+red_eye_removal_RC = red-eye-removal.rc.o
+ripple_RC = ripple.rc.o
+rotate_RC = rotate.rc.o
+sample_colorize_RC = sample-colorize.rc.o
+screenshot_RC = screenshot.rc.o
+semi_flatten_RC = semi-flatten.rc.o
+sharpen_RC = sharpen.rc.o
+shift_RC = shift.rc.o
+sinus_RC = sinus.rc.o
+smooth_palette_RC = smooth-palette.rc.o
+softglow_RC = softglow.rc.o
+sparkle_RC = sparkle.rc.o
+sphere_designer_RC = sphere-designer.rc.o
+threshold_alpha_RC = threshold-alpha.rc.o
+tile_RC = tile.rc.o
+tile_glass_RC = tile-glass.rc.o
+tile_paper_RC = tile-paper.rc.o
+tile_seamless_RC = tile-seamless.rc.o
+tile_small_RC = tile-small.rc.o
+unit_editor_RC = unit-editor.rc.o
+unsharp_mask_RC = unsharp-mask.rc.o
+value_invert_RC = value-invert.rc.o
+value_propagate_RC = value-propagate.rc.o
+van_gogh_lic_RC = van-gogh-lic.rc.o
+video_RC = video.rc.o
+warp_RC = warp.rc.o
+waves_RC = waves.rc.o
+web_browser_RC = web-browser.rc.o
+whirl_pinch_RC = whirl-pinch.rc.o
+wind_RC = wind.rc.o
diff --git a/plug-ins/common/mkgen.pl b/plug-ins/common/mkgen.pl
index fc1e834..edbec9a 100755
--- a/plug-ins/common/mkgen.pl
+++ b/plug-ins/common/mkgen.pl
@@ -8,11 +8,15 @@ require 'util.pl';
 *FILE_EXT   = \$Gimp::CodeGen::util::FILE_EXT;
 
 $ignorefile = ".gitignore";
+$rcfile     = "gimprc.common";
 
 $outmk = "Makefile.am$FILE_EXT";
 $outignore = "$ignorefile$FILE_EXT";
+$outrc = "$rcfile$FILE_EXT";
+
 open MK, "> $outmk";
 open IGNORE, "> $outignore";
+open RC, "> $outrc";
 
 require 'plugin-defs.pl';
 
@@ -57,6 +61,11 @@ else
 libm = -lm
 endif
 
+if HAVE_WINDRES
+include \$(top_srcdir)/build/windows/gimprc-plug-ins.rule
+include $rcfile
+endif
+
 libgimp = \$(top_builddir)/libgimp/libgimp-\$(GIMP_API_VERSION).la
 libgimpbase = \$(top_builddir)/libgimpbase/libgimpbase-\$(GIMP_API_VERSION).la
 libgimpcolor = \$(top_builddir)/libgimpcolor/libgimpcolor-\$(GIMP_API_VERSION).la
@@ -73,7 +82,8 @@ libexecdir = \$(gimpplugindir)/plug-ins
 
 EXTRA_DIST = \\
 	mkgen.pl	\\
-	plugin-defs.pl$extra
+	plugin-defs.pl$extra	\\
+	$rcfile
 
 INCLUDES = \\
 	-I\$(top_srcdir)	\\
@@ -160,6 +170,8 @@ EOT
 	}
     }
 
+    my $rclib = "\$(${makename}_RC)";
+
     print MK <<EOT;
 
 ${makename}_SOURCES = \\
@@ -168,16 +180,23 @@ ${makename}_SOURCES = \\
 ${makename}_LDADD = \\
 	$libgimp		\\
 	$glib		\\$optlib
-	$deplib
+	$deplib		\\
+	$rclib
+EOT
+
+     print RC <<EOT;
+${makename}_RC = $_.rc.o
 EOT
 
     print IGNORE "/$_\n";
     print IGNORE "/$_.exe\n";
 }
 
+close RC;
 close MK;
 close IGNORE;
 
 &write_file($outmk);
 &write_file($outignore);
+&write_file($outrc);
 
diff --git a/plug-ins/file-bmp/Makefile.am b/plug-ins/file-bmp/Makefile.am
index 2737c52..b23eaf5 100644
--- a/plug-ins/file-bmp/Makefile.am
+++ b/plug-ins/file-bmp/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_bmp_RC = file-bmp.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -39,4 +44,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_bmp_RC)
diff --git a/plug-ins/file-faxg3/Makefile.am b/plug-ins/file-faxg3/Makefile.am
index ac61d86..528c0f5 100644
--- a/plug-ins/file-faxg3/Makefile.am
+++ b/plug-ins/file-faxg3/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_faxg3_RC = file-faxg3.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -36,4 +41,5 @@ LDADD = \
 	$(libgimpmath)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_faxg3_RC)
diff --git a/plug-ins/file-fits/Makefile.am b/plug-ins/file-fits/Makefile.am
index 08a0780..f85bd14 100644
--- a/plug-ins/file-fits/Makefile.am
+++ b/plug-ins/file-fits/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_fits_RC = file-fits.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -38,4 +43,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_fits_RC)
diff --git a/plug-ins/file-fli/Makefile.am b/plug-ins/file-fli/Makefile.am
index c93fb40..09589f3 100644
--- a/plug-ins/file-fli/Makefile.am
+++ b/plug-ins/file-fli/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_fli_RC = file-fli.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -38,4 +43,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_fli_RC)
diff --git a/plug-ins/file-ico/Makefile.am b/plug-ins/file-ico/Makefile.am
index efa528c..9301c53 100644
--- a/plug-ins/file-ico/Makefile.am
+++ b/plug-ins/file-ico/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_ico_RC = file-ico.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -46,4 +51,5 @@ LDADD = \
 	$(PNG_LIBS)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_ico_RC)
diff --git a/plug-ins/file-jpeg/Makefile.am b/plug-ins/file-jpeg/Makefile.am
index ae78a00..7c8769c 100644
--- a/plug-ins/file-jpeg/Makefile.am
+++ b/plug-ins/file-jpeg/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_jpeg_RC = file-jpeg.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -55,7 +60,8 @@ file_jpeg_LDADD = \
 	$(GTK_LIBS)		\
 	$(EXIF_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_jpeg_RC)
 
 
 noinst_PROGRAMS = jpegqual
diff --git a/plug-ins/file-psd/Makefile.am b/plug-ins/file-psd/Makefile.am
index 25ea28b..bd59401 100644
--- a/plug-ins/file-psd/Makefile.am
+++ b/plug-ins/file-psd/Makefile.am
@@ -12,6 +12,12 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_psd_load_RC = file-psd-load.rc.o
+file_psd_save_RC = file-psd-save.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -60,3 +66,11 @@ LDADD = \
 	$(IPTCDATA_LIBS)	\
 	$(RT_LIBS)		\
 	$(INTLLIBS)
+
+file_psd_load_LDADD = \
+	$(LDADD)		\
+	$(file_psd_load_RC) 
+
+file_psd_save_LDADD = \
+	$(LDADD)		\
+	$(file_psd_save_RC) 
diff --git a/plug-ins/file-sgi/Makefile.am b/plug-ins/file-sgi/Makefile.am
index 6443949..5c55a4a 100644
--- a/plug-ins/file-sgi/Makefile.am
+++ b/plug-ins/file-sgi/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_sgi_RC = file-sgi.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -38,4 +43,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_sgi_RC)
diff --git a/plug-ins/file-uri/Makefile.am b/plug-ins/file-uri/Makefile.am
index ef13eda..e1140d1 100644
--- a/plug-ins/file-uri/Makefile.am
+++ b/plug-ins/file-uri/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_uri_RC = file-uri.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -56,4 +61,5 @@ LDADD = \
 	$(backend_libs)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_uri_RC)
diff --git a/plug-ins/file-xjt/Makefile.am b/plug-ins/file-xjt/Makefile.am
index 6578912..fd22170 100644
--- a/plug-ins/file-xjt/Makefile.am
+++ b/plug-ins/file-xjt/Makefile.am
@@ -8,6 +8,11 @@ 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 HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_xjt_RC = file-xjt.rc.o
+endif
+
 libexecdir = $(gimpplugindir)/plug-ins
 
 libexec_PROGRAMS = file-xjt
@@ -37,4 +42,5 @@ LDADD = \
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
 	$(JPEG_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(file_xjt_RC)
diff --git a/plug-ins/flame/Makefile.am b/plug-ins/flame/Makefile.am
index 262a9aa..405117b 100644
--- a/plug-ins/flame/Makefile.am
+++ b/plug-ins/flame/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+flame_RC = flame.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -45,4 +50,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(flame_RC)
diff --git a/plug-ins/fractal-explorer/Makefile.am b/plug-ins/fractal-explorer/Makefile.am
index 16ae83a..e59a571 100644
--- a/plug-ins/fractal-explorer/Makefile.am
+++ b/plug-ins/fractal-explorer/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+fractal_explorer_RC = fractal-explorer.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 SUBDIRS = examples
@@ -41,4 +46,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(fractal_explorer_RC)
diff --git a/plug-ins/gfig/Makefile.am b/plug-ins/gfig/Makefile.am
index b0a3ae7..0c499ee 100644
--- a/plug-ins/gfig/Makefile.am
+++ b/plug-ins/gfig/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+gfig_RC = gfig.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 SUBDIRS = gfig-examples images
@@ -72,4 +77,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(gfig_RC)
diff --git a/plug-ins/gimpressionist/Makefile.am b/plug-ins/gimpressionist/Makefile.am
index bdca573..62308e5 100644
--- a/plug-ins/gimpressionist/Makefile.am
+++ b/plug-ins/gimpressionist/Makefile.am
@@ -14,6 +14,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+gimpressionist_RC = gimpressionist.rc.o
+endif
+
 AM_CPPFLAGS = \
 	-DDEFAULTPATH=\""~/$(gimpdir)/gimpressionist:$(gimpdatadir)/gimpressionist"\"
 
@@ -72,6 +77,7 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(gimpressionist_RC)
 
 EXTRA_DIST = README
diff --git a/plug-ins/gradient-flare/Makefile.am b/plug-ins/gradient-flare/Makefile.am
index 8597665..df0471f 100644
--- a/plug-ins/gradient-flare/Makefile.am
+++ b/plug-ins/gradient-flare/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+gradient_flare_RC = gradient-flare.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 SUBDIRS = flares
@@ -37,4 +42,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(gradient_flare_RC)
diff --git a/plug-ins/help-browser/Makefile.am b/plug-ins/help-browser/Makefile.am
index 7360433..2ea3c4b 100644
--- a/plug-ins/help-browser/Makefile.am
+++ b/plug-ins/help-browser/Makefile.am
@@ -14,6 +14,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+help_browser_RC = help-browser.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -38,7 +43,8 @@ LDADD = \
 	$(GIO_LIBS)		\
 	$(GLIB_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(help_browser_RC)
 
 help_browser_SOURCES = \
 	gimpthrobber.c		\
diff --git a/plug-ins/help/Makefile.am b/plug-ins/help/Makefile.am
index c5f49ae..6585e22 100644
--- a/plug-ins/help/Makefile.am
+++ b/plug-ins/help/Makefile.am
@@ -11,6 +11,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+help_RC = help.rc.o
+endif
+
 AM_CPPFLAGS = -DDATADIR=\""$(gimpdatadir)"\"
 
 AM_LDFLAGS = $(mwindows)
@@ -51,7 +56,8 @@ LDADD = \
 	$(libgimpmath)		\
 	$(GIO_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(help_RC)
 
 
 noinst_PROGRAMS = gimp-help-lookup
diff --git a/plug-ins/ifs-compose/Makefile.am b/plug-ins/ifs-compose/Makefile.am
index 6e2de02..066c6ec 100644
--- a/plug-ins/ifs-compose/Makefile.am
+++ b/plug-ins/ifs-compose/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+ifs_compose_RC = ifs-compose.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -41,4 +46,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(ifs_compose_RC)
diff --git a/plug-ins/imagemap/Makefile.am b/plug-ins/imagemap/Makefile.am
index ac63dce..c4cc5c2 100644
--- a/plug-ins/imagemap/Makefile.am
+++ b/plug-ins/imagemap/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+imagemap_RC = imagemap.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 SUBDIRS = images
@@ -139,7 +144,8 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(imagemap)
 
 CLEANFILES = y.tab.c y.tab.h
 
diff --git a/plug-ins/lighting/Makefile.am b/plug-ins/lighting/Makefile.am
index 1bf79fc..fd52e57 100644
--- a/plug-ins/lighting/Makefile.am
+++ b/plug-ins/lighting/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+lighting_RC = lighting.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 SUBDIRS = images
@@ -51,4 +56,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(lighting_RC)
diff --git a/plug-ins/map-object/Makefile.am b/plug-ins/map-object/Makefile.am
index 2f7b7bc..b9c52f1 100644
--- a/plug-ins/map-object/Makefile.am
+++ b/plug-ins/map-object/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+map_object_RC = map-object.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -51,4 +56,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(map_object_RC)
diff --git a/plug-ins/maze/Makefile.am b/plug-ins/maze/Makefile.am
index 762c008..b381096 100644
--- a/plug-ins/maze/Makefile.am
+++ b/plug-ins/maze/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+maze_RC = maze.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -43,4 +48,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(maze_RC)
diff --git a/plug-ins/metadata/Makefile.am b/plug-ins/metadata/Makefile.am
index 5c3d8ec..60e1642 100644
--- a/plug-ins/metadata/Makefile.am
+++ b/plug-ins/metadata/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+metadata_RC = metadata.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -77,7 +82,8 @@ LDADD = \
 	$(EXIF_LIBS)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(metadata_RC)
 
 # test program, not built by default
 
diff --git a/plug-ins/pagecurl/Makefile.am b/plug-ins/pagecurl/Makefile.am
index 2a6eafb..72f91ca 100644
--- a/plug-ins/pagecurl/Makefile.am
+++ b/plug-ins/pagecurl/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+pagecurl_RC = pagecurl.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -42,7 +47,8 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(pagecurl_RC)
 
 
 PAGECURL_IMAGES = \
diff --git a/plug-ins/print/Makefile.am b/plug-ins/print/Makefile.am
index 4af964e..32abdc5 100644
--- a/plug-ins/print/Makefile.am
+++ b/plug-ins/print/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+print_RC = print.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 INCLUDES = \
@@ -29,7 +34,8 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(print_RC)
 
 libexecdir = $(gimpplugindir)/plug-ins
 
diff --git a/plug-ins/script-fu/Makefile.am b/plug-ins/script-fu/Makefile.am
index 3075b83..fc77b77 100644
--- a/plug-ins/script-fu/Makefile.am
+++ b/plug-ins/script-fu/Makefile.am
@@ -16,6 +16,11 @@ mwindows = -mwindows
 WINSOCK_LIBS = -lws2_32
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+script_fu_RC = script-fu.rc.o
+endif
+
 AM_CFLAGS = \
 	-DSTANDALONE=0     \
 	-DUSE_INTERFACE=1  \
@@ -74,4 +79,5 @@ LDADD = \
 	$(SOCKET_LIBS)		\
 	$(WINSOCK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(script_fu_RC)
diff --git a/plug-ins/selection-to-path/Makefile.am b/plug-ins/selection-to-path/Makefile.am
index 7e3ac65..c6b9f63 100644
--- a/plug-ins/selection-to-path/Makefile.am
+++ b/plug-ins/selection-to-path/Makefile.am
@@ -12,6 +12,11 @@ if OS_WIN32
 mwindows = -mwindows
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+selection_to_path_RC = selection-to-path.rc.o
+endif
+
 AM_LDFLAGS = $(mwindows)
 
 libexecdir = $(gimpplugindir)/plug-ins
@@ -59,4 +64,5 @@ LDADD = \
 	$(libgimpbase)		\
 	$(GTK_LIBS)		\
 	$(RT_LIBS)		\
-	$(INTLLIBS)
+	$(INTLLIBS)		\
+	$(selection_to_path_RC)
diff --git a/plug-ins/twain/Makefile.am b/plug-ins/twain/Makefile.am
index 5d67b4d..10a377a 100644
--- a/plug-ins/twain/Makefile.am
+++ b/plug-ins/twain/Makefile.am
@@ -19,6 +19,10 @@ twain_LDFLAGS = -mwindows -luser32
 twainplatform = tw_win.c
 endif
 
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+twain_RC = twain.rc.o
+endif
 
 if HAVE_MAC_TWAIN
 twain_LDFLAGS = -framework Carbon -framework TWAIN
@@ -61,4 +65,5 @@ LDADD = \
 	$(GLIB_LIBS)	\
 	$(RT_LIBS)	\
 	$(INTLLIBS)	\
-	$(twain_LIBS)
+	$(twain_LIBS)	\
+	$(twain_RC)



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