]> git.sesse.net Git - vlc/commitdiff
Makefile.am: pass version strings to windres
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 6 Jul 2003 16:35:38 +0000 (16:35 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 6 Jul 2003 16:35:38 +0000 (16:35 +0000)
share/vlc_win32_rc.rc: provide some version info in the vlc binary
If all is well, this should not break msvc build, but binaries built
with msvc will have version 0.0.0

Makefile.am
share/vlc_win32_rc.rc

index 4719d0fc5aa0bc460c4f79e7aa6b25d8473e79a2..f0e2a6bef853b139bd01a9e4ae29bef42abd7e70 100644 (file)
@@ -417,7 +417,7 @@ DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
 noinst_share_vlc_win32_rcdir = $(libdir)
 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
-       $(WINDRES) --include-dir $(srcdir)/share -i $< -o $@
+       $(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir)/share -i $< -o $@
 endif
 
 ###############################################################################
index f9cfc0fbe1c8e344b14cbc7377f6c540c804d057..46551ff1bfa6bce4ce2599b845683084757b0b11 100644 (file)
@@ -1 +1,30 @@
 VLC_ICON ICON "vlc48x48.ico"
+#ifndef VERSION_NUMBER
+#define VERSION_NUMBER 0,0,0,0
+#endif
+#ifndef VERSION
+#define VERSION 0.0.0
+#endif
+
+1 VERSIONINFO
+FILETYPE 1
+FILEOS 4
+PRODUCTVERSION VERSION_NUMBER
+FILEVERSION VERSION_NUMBER
+BEGIN
+  BLOCK "StringFileInfo"
+  BEGIN
+    BLOCK "040904E4"
+    BEGIN
+      VALUE "CompanyName", "VideoLAN"
+      VALUE "FileVersion", "VERSION"
+      VALUE "FileDescription", "An Opensource Media Player"
+      VALUE "LegalCopyright", "(c) 1996-2003 VideoLAN"
+    END
+  END
+  BLOCK "VarFileInfo"
+  BEGIN
+    VALUE "Translation", 0x409, 1200
+  END
+END
+