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
73
|
# 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.
{
'targets': [
{
'target_name': 'ui_resources',
'type': 'none',
'variables': {
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
},
'actions': [
{
'action_name': 'ui_resources',
'variables': {
'grit_grd_file': 'ui_resources.grd',
},
'includes': [ '../../build/grit_action.gypi' ],
},
{
'action_name': 'webui_resources',
'variables': {
'grit_grd_file': '../webui/resources/webui_resources.grd',
},
'includes': [ '../../build/grit_action.gypi' ],
},
{
'action_name': 'ui_unscaled_resources',
'variables': {
'grit_grd_file': 'ui_unscaled_resources.grd',
},
'includes': [ '../../build/grit_action.gypi' ],
},
],
'includes': [ '../../build/grit_target.gypi' ],
},
{
# This creates a pak file that contains the resources in src/ui.
# This pak file can be used by tests.
'target_name': 'ui_test_pak',
'type': 'none',
'dependencies': [
'../base/strings/ui_strings.gyp:ui_strings',
'ui_resources',
],
'variables': {
'repack_path': '../../tools/grit/grit/format/repack.py',
},
'actions': [
{
'action_name': 'repack_ui_test_pack',
'variables': {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
],
},
'inputs': [
'<(repack_path)',
'<@(pak_inputs)',
],
'outputs': [
'<(PRODUCT_DIR)/ui_test.pak',
],
'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
},
],
},
],
}
|