1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include <winresrc.h> 6 7 #ifdef IDC_STATIC 8 #undef IDC_STATIC 9 #endif 10 #define IDC_STATIC (-1) 11 12 // These marcos are copied from "base/stringize_macros.h" which cannot be 13 // included directly. 14 #define STRINGIZE_NO_EXPANSION(x) #x 15 #define STRINGIZE(x) STRINGIZE_NO_EXPANSION(x) 16 17 {% for lang in languages %} 18 {% do SelectLanguage(lang) %} 19 20 LANGUAGE {{ lang | GetPrimaryLanguage }}, {{ lang | GetSublanguage }} 21 22 VS_VERSION_INFO VERSIONINFO 23 FILEVERSION {{ MAJOR }},{{ REMOTING_PATCH }},{{ BUILD }},{{ PATCH }} 24 PRODUCTVERSION {{ MAJOR }},{{ REMOTING_PATCH }},{{ BUILD }},{{ PATCH }} 25 FILEFLAGSMASK 0x17L 26 #ifdef _DEBUG 27 FILEFLAGS 0x1L 28 #else 29 FILEFLAGS 0x0L 30 #endif 31 FILEOS 0x4L 32 #if (BINARY == BINARY_CORE) || (BINARY == BINARY_HOST_PLUGIN) 33 FILETYPE VFT_DLL 34 #else 35 FILETYPE VFT_APP 36 #endif 37 FILESUBTYPE 0x0L 38 BEGIN 39 BLOCK "StringFileInfo" 40 BEGIN 41 BLOCK "{{ lang | GetLangId }}{{ lang | GetCodepage }}" 42 BEGIN 43 VALUE "CompanyName", "{% trans %}COMPANY_NAME{% endtrans %}" 44 VALUE "FileVersion", "{{ MAJOR }}.{{ REMOTING_PATCH }}.{{ BUILD }}.{{ PATCH }}" 45 VALUE "LegalCopyright", "{% trans %}COPYRIGHT{% endtrans %}" 46 VALUE "ProductName", "{% trans %}PRODUCT_NAME{% endtrans %}" 47 VALUE "ProductVersion", "{{ MAJOR }}.{{ REMOTING_PATCH }}.{{ BUILD }}.{{ PATCH }}" 48 VALUE "LastChange", "{{ LASTCHANGE }}" 49 VALUE "Official Build", "{{ official_build }}" 50 #if (BINARY == BINARY_CORE) 51 VALUE "FileDescription", "{% trans %}REMOTING_CORE_DESCRIPTION{% endtrans %}" 52 VALUE "InternalName", "remoting_core.dll" 53 VALUE "OriginalFilename", "remoting_core.dll" 54 #elif (BINARY == BINARY_DESKTOP) 55 VALUE "FileDescription", "{% trans %}REMOTING_DESKTOP_DESCRIPTION{% endtrans %}" 56 VALUE "InternalName", "remoting_desktop.exe" 57 VALUE "OriginalFilename", "remoting_desktop.exe" 58 #elif (BINARY == BINARY_HOST_ME2ME) 59 VALUE "FileDescription", "{% trans %}REMOTING_HOST_DESCRIPTION{% endtrans %}" 60 VALUE "InternalName", "remoting_host.exe" 61 VALUE "OriginalFilename", "remoting_host.exe" 62 #elif (BINARY == BINARY_HOST_PLUGIN) 63 VALUE "FileDescription", "{% trans %}REMOTING_HOST_PLUGIN_DESCRIPTION{% endtrans %}" 64 VALUE "InternalName", "remoting_host_plugin.dll" 65 VALUE "OriginalFilename", "remoting_host_plugin.dll" 66 VALUE "MIMEType", STRINGIZE(HOST_PLUGIN_MIME_TYPE) 67 #else 68 #error BINARY must be set to one of BINARY_XXX values. 69 #endif 70 END 71 END 72 BLOCK "VarFileInfo" 73 BEGIN 74 VALUE "Translation", 0x{{ lang | GetLangId }}, {{ lang | GetCodepageDecimal }} 75 END 76 END 77 78 {% endfor %} 79