summaryrefslogtreecommitdiffstats
path: root/ash/ash_strings.gyp
blob: 2865b5c16efef3b4ba368f63375a4fa4e13a18cf (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
# Copyright (c) 2012 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.

{
  'targets': [
    {
      # GN version: //ash/strings
      'target_name': 'ash_strings',
      'type': 'none',
      'variables': {
        'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ash/strings',
      },
      'actions': [
        {
          'action_name': 'generate_ash_strings',
          'variables': {
            'grit_grd_file': 'ash_strings.grd',
          },
          'includes': [ '../build/grit_action.gypi' ],
        },
      ],
      'includes': [ '../build/grit_target.gypi' ],
    },
    {
      # Creates a pak file containing strings for ash_unittests, etc.
      # GN version: //ash/strings:ash_test_strings
      'target_name': 'ash_test_strings',
      'type': 'none',
      'dependencies': [
        '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
        'ash_strings.gyp:ash_strings',
      ],
      'actions': [
        {
          'action_name': 'repack_ash_test_strings',
          'variables': {
            'pak_output': '<(PRODUCT_DIR)/ash_test_strings.pak',
            'pak_inputs': [
              '<(SHARED_INTERMEDIATE_DIR)/ash/strings/ash_strings_en-US.pak',
              '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
              '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
            ],
            'conditions': [
              ['chromeos==1', {
                'pak_inputs': [
                  '<(SHARED_INTERMEDIATE_DIR)/device/bluetooth/strings/bluetooth_strings_en-US.pak',
                  '<(SHARED_INTERMEDIATE_DIR)/ui/chromeos/strings/ui_chromeos_strings_en-US.pak',
                ],
              }],
            ],
          },
          'includes': [ '../build/repack_action.gypi' ],
        },
      ],
      'conditions': [
        ['chromeos==1', {
          'dependencies': [
            '<(DEPTH)/device/bluetooth/bluetooth_strings.gyp:bluetooth_strings',
            '<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_strings',
          ],
        }],
      ],
    },
  ],
}