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 'target_name': 'ui_resources', | 8 'target_name': 'ui_resources', |
9 'type': 'none', | 9 'type': 'none', |
10 'variables': { | 10 'variables': { |
(...skipping 26 matching lines...) Expand all Loading... | |
37 }, | 37 }, |
38 { | 38 { |
39 # This creates a pak file that contains the resources in src/ui. | 39 # This creates a pak file that contains the resources in src/ui. |
40 # This pak file can be used by tests. | 40 # This pak file can be used by tests. |
41 'target_name': 'ui_test_pak', | 41 'target_name': 'ui_test_pak', |
42 'type': 'none', | 42 'type': 'none', |
43 'dependencies': [ | 43 'dependencies': [ |
44 '../base/strings/ui_strings.gyp:ui_strings', | 44 '../base/strings/ui_strings.gyp:ui_strings', |
45 'ui_resources', | 45 'ui_resources', |
46 ], | 46 ], |
47 'variables': { | |
48 'repack_path': '../../tools/grit/grit/format/repack.py', | |
49 }, | |
50 'actions': [ | 47 'actions': [ |
51 { | 48 { |
52 'action_name': 'repack_ui_test_pack', | 49 'action_name': 'repack_ui_test_pack', |
53 'variables': { | 50 'variables': { |
54 'pak_inputs': [ | 51 'pak_inputs': [ |
55 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_sett ings_en-US.pak', | 52 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_sett ings_en-US.pak', |
56 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_perce nt.pak', | 53 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_perce nt.pak', |
57 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak', | 54 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak', |
58 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', | 55 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', |
59 ], | 56 ], |
57 'pak_output': '<(PRODUCT_DIR)/ui_test.pak', | |
60 }, | 58 }, |
61 'inputs': [ | 59 'includes': [ '../../build/repack_action.gypi' ], |
tfarina
2014/03/28 02:24:07
cool! thanks!
| |
62 '<(repack_path)', | |
63 '<@(pak_inputs)', | |
64 ], | |
65 'outputs': [ | |
66 '<(PRODUCT_DIR)/ui_test.pak', | |
67 ], | |
68 'action': [ | |
69 'python', | |
70 '<(repack_path)', | |
71 '<@(_outputs)', | |
72 '<@(pak_inputs)' | |
73 ], | |
74 }, | 60 }, |
75 ], | 61 ], |
76 'conditions': [ | 62 'conditions': [ |
77 ['OS != "mac"', { | 63 ['OS != "mac"', { |
78 'copies': [ | 64 'copies': [ |
79 { | 65 { |
80 'destination': '<(PRODUCT_DIR)/ui', | 66 'destination': '<(PRODUCT_DIR)/ui', |
81 'files': [ | 67 'files': [ |
82 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_per cent.pak', | 68 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_per cent.pak', |
83 ], | 69 ], |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 '<@(_inputs)', | 107 '<@(_inputs)', |
122 '<@(_outputs)' | 108 '<@(_outputs)' |
123 ], | 109 ], |
124 }, | 110 }, |
125 ], | 111 ], |
126 }], | 112 }], |
127 ], | 113 ], |
128 }, | 114 }, |
129 ], | 115 ], |
130 } | 116 } |
OLD | NEW |