summaryrefslogtreecommitdiff
path: root/chromium/chrome/updater/win/ui/resources/BUILD.gn
blob: 51f134b094021adacee51519a9804ec58ec5c61b (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
# Copyright 2021 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.

import("//base/win/embedded_i18n/generate_embedded_i18n.gni")

source_set("resources") {
  inputs = [
    "chrome.bmp",
    "error.bmp",
    "google_update_ico",
    "resources.grh",
    "resources_en.rc",
  ]

  deps = [ ":strings" ]
}

generate_embedded_i18n("generate_strings") {
  visibility = [ ":strings" ]
  extractor_datafile =
      "//chrome/updater/win/ui/resources/create_metainstaller_string_rc.py"
  grdfile_folder = "//chrome/app/"

  if (is_chrome_branded) {
    grdfile_name = "google_chrome_strings"
  } else {
    grdfile_name = "chromium_strings"
  }

  xtb_relative_path = "resources"
  grd_files_info = [ [
        grdfile_folder,
        grdfile_name,
        xtb_relative_path,
        default_embedded_i18_locales,
      ] ]

  output_file_name_base = "updater_installer_strings"
}

source_set("strings") {
  sources = get_target_outputs(":generate_strings")
  public_deps = [ ":generate_strings" ]
}