From: Bruno Haible Date: Mon, 28 May 2007 12:22:05 +0000 (+0000) Subject: Support for Windows resource file. X-Git-Tag: v0.17~364 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e77346487958de5ac94a95c45872c94a61f1ca7;p=thirdparty%2Fgettext.git Support for Windows resource file. --- diff --git a/gettext-tools/libgettextpo/ChangeLog b/gettext-tools/libgettextpo/ChangeLog index a8751c56d..dcd48f795 100644 --- a/gettext-tools/libgettextpo/ChangeLog +++ b/gettext-tools/libgettextpo/ChangeLog @@ -1,3 +1,10 @@ +2007-05-28 Bruno Haible + + * libgettextpo.rc: New file. + * Makefile.am (LDADD, WOE32_LDADD): New variables. + (libgettextpo.res): New rule. + (MOSTLYCLEANFILES): Add libgettextpo.res. + 2007-05-13 Bruno Haible * gettext-po.c: Don't include vasprintf.h. diff --git a/gettext-tools/libgettextpo/Makefile.am b/gettext-tools/libgettextpo/Makefile.am index 41f703c0c..a19e973bc 100644 --- a/gettext-tools/libgettextpo/Makefile.am +++ b/gettext-tools/libgettextpo/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/libgettextpo subdirectory of GNU gettext -## Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -39,6 +39,7 @@ AM_CPPFLAGS = \ -I.. -I$(top_srcdir) \ -I../src -I$(top_srcdir)/src \ -I../intl -I$(top_srcdir)/../gettext-runtime/intl +LDADD = $(WOE32_LDADD) # libgettextpo contains the public API for PO files. libgettextpo_la_SOURCES = \ @@ -107,6 +108,16 @@ libgettextpo_la_SOURCES += ../woe32dll/gettextpo-exports.c libgettextpo_la_LDFLAGS += -Wl,--export-all-symbols endif +# Version information according to Woe32 conventions. +if WOE32 +WOE32_LDADD = libgettextpo.res +libgettextpo.res : $(srcdir)/libgettextpo.rc + $(WINDRES) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(srcdir)/libgettextpo.rc -o libgettextpo.res --output-format=coff +MOSTLYCLEANFILES += libgettextpo.res +else +WOE32_LDADD = +endif + # Hide symbols that are defined by libgettextpo_la_AUXSOURCES or libgnu.la # from the global namespace, by prefixing them with "libgettextpo_". all check install: config.h