| 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 'target_name': 'ui_resources', | 9 'target_name': 'ui_resources', |
| 9 'type': 'none', | 10 'type': 'none', |
| 10 'variables': { | 11 'variables': { |
| 11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources', | 12 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources', |
| 12 }, | 13 }, |
| 13 'actions': [ | 14 'actions': [ |
| 14 { | 15 { |
| 15 'action_name': 'ui_resources', | 16 'action_name': 'ui_resources', |
| 16 'variables': { | 17 'variables': { |
| 17 'grit_grd_file': 'ui_resources.grd', | 18 'grit_grd_file': 'ui_resources.grd', |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 'grit_grd_file': 'ui_unscaled_resources.grd', | 32 'grit_grd_file': 'ui_unscaled_resources.grd', |
| 32 }, | 33 }, |
| 33 'includes': [ '../../build/grit_action.gypi' ], | 34 'includes': [ '../../build/grit_action.gypi' ], |
| 34 }, | 35 }, |
| 35 ], | 36 ], |
| 36 'includes': [ '../../build/grit_target.gypi' ], | 37 'includes': [ '../../build/grit_target.gypi' ], |
| 37 }, | 38 }, |
| 38 { | 39 { |
| 39 # This creates a pak file that contains the resources in src/ui. | 40 # This creates a pak file that contains the resources in src/ui. |
| 40 # This pak file can be used by tests. | 41 # This pak file can be used by tests. |
| 42 # |
| 43 # GN version: //ui/resources:ui_test_pak |
| 41 'target_name': 'ui_test_pak', | 44 'target_name': 'ui_test_pak', |
| 42 'type': 'none', | 45 'type': 'none', |
| 43 'dependencies': [ | 46 'dependencies': [ |
| 44 '../strings/ui_strings.gyp:ui_strings', | 47 '../strings/ui_strings.gyp:ui_strings', |
| 45 'ui_resources', | 48 'ui_resources', |
| 46 ], | 49 ], |
| 47 'actions': [ | 50 'actions': [ |
| 48 { | 51 { |
| 49 'action_name': 'repack_ui_test_pack', | 52 'action_name': 'repack_ui_test_pack', |
| 50 'variables': { | 53 'variables': { |
| 51 'pak_inputs': [ | 54 'pak_inputs': [ |
| 52 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_sett
ings_en-US.pak', | 55 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_sett
ings_en-US.pak', |
| 53 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_perce
nt.pak', | 56 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_perce
nt.pak', |
| 54 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak', | 57 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak', |
| 55 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', | 58 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', |
| 56 ], | 59 ], |
| 57 'pak_output': '<(PRODUCT_DIR)/ui_test.pak', | 60 'pak_output': '<(PRODUCT_DIR)/ui_test.pak', |
| 58 }, | 61 }, |
| 59 'includes': [ '../../build/repack_action.gypi' ], | 62 'includes': [ '../../build/repack_action.gypi' ], |
| 60 }, | 63 }, |
| 61 ], | 64 ], |
| 62 'conditions': [ | 65 'conditions': [ |
| 63 ['OS != "mac"', { | 66 ['OS != "mac"', { |
| 64 'copies': [ | 67 'copies': [ |
| 65 { | 68 { |
| 69 # GN version //ui/resources:copy_ui_resources_100_percent |
| 66 'destination': '<(PRODUCT_DIR)/ui', | 70 'destination': '<(PRODUCT_DIR)/ui', |
| 67 'files': [ | 71 'files': [ |
| 68 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_per
cent.pak', | 72 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_per
cent.pak', |
| 69 ], | 73 ], |
| 70 }, | 74 }, |
| 71 ], | 75 ], |
| 72 }], | 76 }], |
| 73 ['OS == "ios"', { | 77 ['OS == "ios"', { |
| 74 'actions': [ | 78 'actions': [ |
| 75 { | 79 { |
| 80 # GN version: //ui/resources:copy_ui_test_pak |
| 76 'action_name': 'copy_ui_test_pak', | 81 'action_name': 'copy_ui_test_pak', |
| 77 'message': 'Copying ui_test.pak into locale.pak', | 82 'message': 'Copying ui_test.pak into locale.pak', |
| 78 'inputs': [ | 83 'inputs': [ |
| 79 '<(PRODUCT_DIR)/ui_test.pak', | 84 '<(PRODUCT_DIR)/ui_test.pak', |
| 80 ], | 85 ], |
| 81 'outputs': [ | 86 'outputs': [ |
| 82 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak', | 87 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak', |
| 83 ], | 88 ], |
| 84 'action': [ | 89 'action': [ |
| 85 'python', | 90 'python', |
| (...skipping 21 matching lines...) Expand all Loading... |
| 107 '<@(_inputs)', | 112 '<@(_inputs)', |
| 108 '<@(_outputs)' | 113 '<@(_outputs)' |
| 109 ], | 114 ], |
| 110 }, | 115 }, |
| 111 ], | 116 ], |
| 112 }], | 117 }], |
| 113 ], | 118 ], |
| 114 }, | 119 }, |
| 115 ], | 120 ], |
| 116 } | 121 } |
| OLD | NEW |