diff --git a/codec/build/generate_codec_ver.sh b/codec/build/generate_codec_ver.sh index 9c3d284d8f..761c8a6f9c 100755 --- a/codec/build/generate_codec_ver.sh +++ b/codec/build/generate_codec_ver.sh @@ -55,3 +55,8 @@ echo "" >>codec_ver.h 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 diff --git a/openh264.rc.template b/openh264.rc.template new file mode 100644 index 0000000000..5afd103bc0 --- /dev/null +++ b/openh264.rc.template @@ -0,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 +/////////////////////////////////////////////////////////////////////////////