OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 # GN version: //ui/resources | 8 # GN version: //ui/resources |
9 'target_name': 'ui_resources', | 9 'target_name': 'ui_resources', |
10 'type': 'none', | 10 'type': 'none', |
11 'variables': { | 11 'variables': { |
| 12 # Enable to include Polymer 0.8 in the binary. |
| 13 'enable_polymer_v08%': 0, |
| 14 |
12 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/resources', | 15 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/resources', |
13 }, | 16 }, |
14 'actions': [ | 17 'actions': [ |
15 { | 18 { |
16 'action_name': 'ui_resources', | 19 'action_name': 'ui_resources', |
17 'variables': { | 20 'variables': { |
18 'grit_grd_file': 'ui_resources.grd', | 21 'grit_grd_file': 'ui_resources.grd', |
19 }, | 22 }, |
20 'includes': [ '../../build/grit_action.gypi' ], | 23 'includes': [ '../../build/grit_action.gypi' ], |
21 }, | 24 }, |
22 { | 25 { |
23 'action_name': 'webui_resources', | 26 'action_name': 'webui_resources', |
24 'variables': { | 27 'variables': { |
25 'grit_grd_file': '../webui/resources/webui_resources.grd', | 28 'grit_grd_file': '../webui/resources/webui_resources.grd', |
| 29 |
| 30 'conditions': [ |
| 31 ['enable_polymer_v08==1', { |
| 32 'grit_defines': ['-D', 'enable_polymer_v08'], |
| 33 }], |
| 34 ], |
26 }, | 35 }, |
27 'includes': [ '../../build/grit_action.gypi' ], | 36 'includes': [ '../../build/grit_action.gypi' ], |
28 }, | 37 }, |
29 { | 38 { |
30 'action_name': 'ui_unscaled_resources', | 39 'action_name': 'ui_unscaled_resources', |
31 'variables': { | 40 'variables': { |
32 'grit_grd_file': 'ui_unscaled_resources.grd', | 41 'grit_grd_file': 'ui_unscaled_resources.grd', |
33 }, | 42 }, |
34 'includes': [ '../../build/grit_action.gypi' ], | 43 'includes': [ '../../build/grit_action.gypi' ], |
35 }, | 44 }, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 '<@(_inputs)', | 135 '<@(_inputs)', |
127 '<@(_outputs)' | 136 '<@(_outputs)' |
128 ], | 137 ], |
129 }, | 138 }, |
130 ], | 139 ], |
131 }], | 140 }], |
132 ], | 141 ], |
133 }, | 142 }, |
134 ], | 143 ], |
135 } | 144 } |
OLD | NEW |