]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Support for Windows resource file.
authorBruno Haible <bruno@clisp.org>
Mon, 28 May 2007 12:22:05 +0000 (12:22 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:52 +0000 (12:14 +0200)
gettext-tools/libgettextpo/ChangeLog
gettext-tools/libgettextpo/Makefile.am

index a8751c56d35c87f3751f6be28666bfb931fb966d..dcd48f795dc0f8c3ed33b9322cf0ecbf8897ab1e 100644 (file)
@@ -1,3 +1,10 @@
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * libgettextpo.rc: New file.
+       * Makefile.am (LDADD, WOE32_LDADD): New variables.
+       (libgettextpo.res): New rule.
+       (MOSTLYCLEANFILES): Add libgettextpo.res.
+
 2007-05-13  Bruno Haible  <bruno@clisp.org>
 
        * gettext-po.c: Don't include vasprintf.h.
index 41f703c0c4878fe2a7b85fd77d434abc05e8cac3..a19e973bc59337589c0d2954f6527e4a69f479f9 100644 (file)
@@ -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