1# Copyright 2014 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{
6  'targets': [
7    {
8      'target_name': 'extensions_resources',
9      'type': 'none',
10      'variables': {
11        'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/extensions',
12      },
13      'actions': [
14        {
15          'action_name': 'generate_extensions_resources',
16          'variables': {
17            'grit_grd_file': 'extensions_resources.grd',
18          },
19          'includes': [ '../build/grit_action.gypi' ],
20        },
21        {
22          'action_name': 'generate_extensions_browser_resources',
23          'variables': {
24            'grit_grd_file': 'browser/resources/extensions_browser_resources.grd',
25          },
26          'includes': [ '../build/grit_action.gypi' ],
27        },
28        {
29          'action_name': 'generate_extensions_renderer_resources',
30          'variables': {
31            'grit_grd_file': 'renderer/resources/extensions_renderer_resources.grd',
32            'grit_additional_defines': [
33              '-E', 'mojom_root=<(SHARED_INTERMEDIATE_DIR)',
34            ],
35          },
36          'includes': [ '../build/grit_action.gypi' ],
37        },
38      ],
39      'includes': [ '../build/grit_target.gypi' ],
40      'conditions': [
41        ['enable_extensions==1', {
42          'dependencies': [
43            '../device/serial/serial.gyp:device_serial_mojo',
44          ],
45        }],
46      ],
47    }
48  ]
49}
50