ref: a436676bc8b92e271daea1ea7c3191d956c7f6e3
parent: 350b69bbf024532694aff5846aca6e8796c68a25
author: Martin Storsjö <martin@martin.st>
date: Mon Apr 20 07:25:25 EDT 2015
Update openh264.rc when updating the version number
--- a/codec/build/generate_codec_ver.sh
+++ b/codec/build/generate_codec_ver.sh
@@ -55,3 +55,8 @@
echo "#endif // CODEC_VER_H" >>codec_ver.h
mv -f codec_ver.h ../api/svc/codec_ver.h
+
+# Ignore non-utf8 chars in the input
+export LC_ALL=C
+cat ../../openh264.rc.template | sed "s/\$MAJOR/$major/g" | sed "s/\$MINOR/$minor/g" | sed "s/\$REVISION/$revnr/g" | sed "s/\$RESERVED/$resnr/g" > openh264.rc.tmp
+mv openh264.rc.tmp ../../openh264.rc
--- /dev/null
+++ b/openh264.rc.template
@@ -1,0 +1,61 @@
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "windows.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION $MAJOR,$MINOR,$REVISION,$RESERVED
+ PRODUCTVERSION $MAJOR,$MINOR,$REVISION,$RESERVED
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x40004L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "Comments", "Cisco OpenH264 codec"
+ VALUE "CompanyName", "Cisco Systems Inc."
+ VALUE "FileDescription", "Cisco OpenH264 codec"
+ VALUE "FileVersion", "$MAJOR.$MINOR.$REVISION.$RESERVED"
+ VALUE "InternalName", "openh264.dll"
+ VALUE "LegalCopyright", "� 2011-2015 Cisco and/or its affiliates. All rights reserved."
+ VALUE "OriginalFilename", "openh264.dll"
+ VALUE "ProductName", "Cisco OpenH264 codec"
+ VALUE "ProductVersion", "$MAJOR.$MINOR.$REVISION.$RESERVED"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END
+
+#endif // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////