summaryrefslogtreecommitdiffstats
path: root/remoting/host/win/version.rc.jinja2
blob: 19ba83dafdf62fed7769c649ba1adbed9e34a7b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <winresrc.h>
#ifdef IDC_STATIC
#undef IDC_STATIC
#endif
#define IDC_STATIC (-1)

{% for lang in languages %}
  {% do SelectLanguage(lang) %}

LANGUAGE {{ lang | GetPrimaryLanguage }}, {{ lang | GetSublanguage }}

VS_VERSION_INFO VERSIONINFO
 FILEVERSION {{ MAJOR }},{{ REMOTING_PATCH }},{{ BUILD }},{{ PATCH }}
 PRODUCTVERSION {{ MAJOR }},{{ REMOTING_PATCH }},{{ BUILD }},{{ PATCH }}
 FILEFLAGSMASK 0x17L
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
#if (BINARY == BINARY_CORE) || (BINARY == BINARY_HOST_PLUGIN)
 FILETYPE VFT_DLL
#else
 FILETYPE VFT_APP
#endif
 FILESUBTYPE 0x0L
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "{{ lang | GetLangId }}{{ lang | GetCodepage }}"
    BEGIN
      VALUE "CompanyName", "{% trans %}COMPANY_NAME{% endtrans %}"
      VALUE "FileVersion", "{{ MAJOR }}.{{ REMOTING_PATCH }}.{{ BUILD }}.{{ PATCH }}"
      VALUE "LegalCopyright", "{% trans %}COPYRIGHT{% endtrans %}"
      VALUE "ProductName", "{% trans %}PRODUCT_NAME{% endtrans %}"
      VALUE "ProductVersion", "{{ MAJOR }}.{{ REMOTING_PATCH }}.{{ BUILD }}.{{ PATCH }}"
      VALUE "LastChange", "{{ LASTCHANGE }}"
      VALUE "Official Build", "{{ official_build }}"
#if (BINARY == BINARY_CORE)
      VALUE "FileDescription", "{% trans %}REMOTING_CORE_DESCRIPTION{% endtrans %}"
      VALUE "InternalName", "remoting_core.dll"
      VALUE "OriginalFilename", "remoting_core.dll"
#elif (BINARY == BINARY_DESKTOP)
      VALUE "FileDescription", "{% trans %}REMOTING_DESKTOP_DESCRIPTION{% endtrans %}"
      VALUE "InternalName", "remoting_desktop.exe"
      VALUE "OriginalFilename", "remoting_desktop.exe"
#elif (BINARY == BINARY_HOST_ME2ME)
      VALUE "FileDescription", "{% trans %}REMOTING_HOST_DESCRIPTION{% endtrans %}"
      VALUE "InternalName", "remoting_host.exe"
      VALUE "OriginalFilename", "remoting_host.exe"
#elif (BINARY == BINARY_HOST_PLUGIN)
      VALUE "FileDescription", "{% trans %}REMOTING_HOST_PLUGIN_DESCRIPTION{% endtrans %}"
      VALUE "InternalName", "remoting_host_plugin.dll"
      VALUE "OriginalFilename", "remoting_host_plugin.dll"
      VALUE "MIMEType", "application/vnd.chromium.remoting-host"
#else
#error BINARY must be set to one of BINARY_XXX values.
#endif
    END
  END
  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x{{ lang | GetLangId }}, {{ lang | GetCodepageDecimal }}
  END
END

{% endfor %}