summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-04-22 04:55:25 +0200
committerBruno Haible <bruno@clisp.org>2009-04-22 04:55:25 +0200
commit5f755fddada02a264f6381974a564538950fb54a (patch)
tree9d5897918b228d3753ede01f0af977c40a58e9fc /lib
parent7550f78f9b88f77309b1a233df6ef1f0e94f3035 (diff)
downloadlibunistring-5f755fddada02a264f6381974a564538950fb54a.tar.gz
Add version metainformation in Windows resource format.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am14
-rw-r--r--lib/libunistring.rc38
2 files changed, 52 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 19b7562..40704fd 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -203,6 +203,7 @@ config.h: $(BUILT_SOURCES) libunistring.sym
{ \
for f in $(libunistring_la_SOURCES) $(libunistring_la_LIBADD); do \
case $$f in \
+ *.res.lo ) ;; \
*.c | *.$(OBJEXT) | *.lo ) \
sf=`echo "$$f" | sed -e 's,\\.[^.]*$$,,'`.c; \
test -f $$sf || sf=$(srcdir)/$$sf; \
@@ -227,6 +228,19 @@ config.h: $(BUILT_SOURCES) libunistring.sym
fi
MOSTLYCLEANFILES += config.h config.h-t
+# Version information according to Woe32 conventions.
+EXTRA_DIST += libunistring.rc
+if WOE32
+WOE32_LIBADD = libunistring.res.lo
+libunistring.res.lo : $(srcdir)/libunistring.rc
+ $(LIBTOOL) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) `$(SHELL) $(top_srcdir)/build-aux/windres-options --escape $(VERSION)` -i $(srcdir)/libunistring.rc -o libunistring.res.lo --output-format=coff
+MOSTLYCLEANFILES += libunistring.res.lo
+else
+WOE32_LIBADD =
+endif
+libunistring_la_LIBADD += $(WOE32_LIBADD)
+libunistring_la_DEPENDENCIES += $(WOE32_LIBADD)
+
# Libtool's library version information for libunistring.
# See the libtool documentation, section "Library interface versions".
LTV_CURRENT=0
diff --git a/lib/libunistring.rc b/lib/libunistring.rc
new file mode 100644
index 0000000..f1b51af
--- /dev/null
+++ b/lib/libunistring.rc
@@ -0,0 +1,38 @@
+/* Resources for unistring.dll */
+
+#include <winver.h>
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0
+ PRODUCTVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0
+ FILEFLAGSMASK 0x3fL /* VS_FFI_FILEFLAGSMASK */
+#ifdef _DEBUG
+ FILEFLAGS 0x1L /* VS_FF_DEBUG */
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x10004L /* VOS_DOS_WINDOWS32 */
+ FILETYPE 0x2L /* VFT_DLL */
+ FILESUBTYPE 0x0L /* VFT2_UNKNOWN */
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "04090000" /* Lang = US English, Charset = ASCII */
+ BEGIN
+ VALUE "Comments", "This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 or later. You should have received a copy of the GNU Lesser General Public License along with this library; if not, see <http://www.gnu.org/licenses/>\0"
+ VALUE "CompanyName", "Free Software Foundation\0"
+ VALUE "FileDescription", "LGPLed libunistring for Windows NT/2000/XP/Vista and Windows 95/98/ME\0"
+ VALUE "FileVersion", PACKAGE_VERSION_STRING "\0"
+ VALUE "InternalName", "unistring.dll\0"
+ VALUE "LegalCopyright", "Copyright (C) 2001-2009\0"
+ VALUE "LegalTrademarks", "\0"
+ VALUE "OriginalFilename", "unistring.dll\0"
+ VALUE "ProductName", "libunistring: Unicode string library\0"
+ VALUE "ProductVersion", PACKAGE_VERSION_STRING "\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0409, 0 /* US English, ASCII */
+ END
+END