forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathash_resources.gyp
129 lines (128 loc) · 4.66 KB
/
ash_resources.gyp
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Copyright 2014 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/resources
'target_name': 'ash_resources',
'type': 'none',
'variables': {
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ash/resources',
},
'actions': [
{
'action_name': 'ash_resources',
'variables': {
'grit_grd_file': 'resources/ash_resources.grd',
},
'includes': [ '../build/grit_action.gypi' ],
},
],
'includes': [ '../build/grit_target.gypi' ],
},
{
# Creates a 100% pak file containing resources for ash_unittests, etc.
# TODO(msw): Use ui_test.pak instead of its pieces? (no 200% support?)
# TODO(msw): Add copy steps and mac handling like repack_ui_test_pack?
# GN version: //ash/resources:ash_test_resources_100_percent
'target_name': 'ash_test_resources_100_percent',
'type': 'none',
'dependencies': [
'<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
'ash_resources',
],
'actions': [
{
'action_name': 'repack_ash_test_resources',
'variables': {
'pak_output': '<(PRODUCT_DIR)/ash_test_resources_100_percent.pak',
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ash/resources/ash_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
],
'conditions': [
['chromeos==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/chromeos/resources/ui_chromeos_resources_100_percent.pak',
],
}],
['toolkit_views==1', {
'pak_inputs': [
# TODO(msw): This seems bad, but follows repack_ui_test_pack's example.
'<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/app_list/resources/app_list_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/views/resources/views_resources_100_percent.pak',
],
}],
],
},
'includes': [ '../build/repack_action.gypi' ],
},
],
'conditions': [
['chromeos==1', {
'dependencies': [
'<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources',
],
}],
['toolkit_views==1', {
'dependencies': [
'<(DEPTH)/ui/views/resources/views_resources.gyp:views_resources',
],
}],
],
},
{
# Creates a 200% pak file containing resources for ash_unittests, etc.
# TODO(msw): Use ui_test.pak instead of its pieces? (no 200% support?)
# TODO(msw): Add copy steps and mac handling like repack_ui_test_pack?
# GN version: //ash/resources:ash_test_resources_200_percent
'target_name': 'ash_test_resources_200_percent',
'type': 'none',
'dependencies': [
'<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
'ash_resources',
],
'actions': [
{
'action_name': 'repack_ash_test_resources',
'variables': {
'pak_output': '<(PRODUCT_DIR)/ash_test_resources_200_percent.pak',
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ash/resources/ash_resources_200_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_200_percent.pak',
],
'conditions': [
['chromeos==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/chromeos/resources/ui_chromeos_resources_200_percent.pak',
],
}],
['toolkit_views==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/app_list/resources/app_list_resources_200_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/views/resources/views_resources_200_percent.pak',
],
}],
],
},
'includes': [ '../build/repack_action.gypi' ],
},
],
'conditions': [
['chromeos==1', {
'dependencies': [
'<(DEPTH)/ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources',
],
}],
['toolkit_views==1', {
'dependencies': [
'<(DEPTH)/ui/views/resources/views_resources.gyp:views_resources',
],
}],
],
},
],
}