| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 'variables': { | 6 'variables': { |
| 7 # TODO: remove this helper when we have loops in GYP | |
| 8 'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py',], | |
| 9 'chromium_code': 1, | 7 'chromium_code': 1, |
| 10 'grit_info_cmd': ['python', '../tools/grit/grit_info.py', | |
| 11 '<@(grit_defines)'], | |
| 12 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app', | |
| 13 'grit_cmd': ['python', '../tools/grit/grit.py'], | |
| 14 }, | 8 }, |
| 15 'includes': [ | 9 'includes': [ |
| 16 'app_base.gypi', | 10 'app_base.gypi', |
| 17 ], | 11 ], |
| 18 'targets': [ | 12 'targets': [ |
| 19 { | 13 { |
| 20 'target_name': 'app_unittests', | 14 'target_name': 'app_unittests', |
| 21 'type': 'executable', | 15 'type': 'executable', |
| 22 'msvs_guid': 'B4D59AE8-8D2F-97E1-A8E9-6D2826729530', | 16 'msvs_guid': 'B4D59AE8-8D2F-97E1-A8E9-6D2826729530', |
| 23 'dependencies': [ | 17 'dependencies': [ |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 ], | 79 ], |
| 86 }], | 80 }], |
| 87 ], | 81 ], |
| 88 }], | 82 }], |
| 89 ], | 83 ], |
| 90 }, | 84 }, |
| 91 { | 85 { |
| 92 'target_name': 'app_resources', | 86 'target_name': 'app_resources', |
| 93 'type': 'none', | 87 'type': 'none', |
| 94 'msvs_guid': '3FBC4235-3FBD-46DF-AEDC-BADBBA13A095', | 88 'msvs_guid': '3FBC4235-3FBD-46DF-AEDC-BADBBA13A095', |
| 89 'variables': { |
| 90 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app/app_resources', |
| 91 }, |
| 95 'actions': [ | 92 'actions': [ |
| 96 { | 93 { |
| 97 'action_name': 'app_resources', | 94 'action_name': 'app_resources', |
| 98 'variables': { | 95 'variables': { |
| 99 'input_path': 'resources/app_resources.grd', | 96 'grit_grd_file': 'resources/app_resources.grd', |
| 100 }, | 97 }, |
| 101 'inputs': [ | 98 'includes': [ '../build/grit_action.gypi' ], |
| 102 '<!@(<(grit_info_cmd) --inputs <(input_path))', | |
| 103 ], | |
| 104 'outputs': [ | |
| 105 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)/app_resources\' <(
input_path))', | |
| 106 ], | |
| 107 'action': ['<@(grit_cmd)', | |
| 108 '-i', '<(input_path)', 'build', | |
| 109 '-o', '<(grit_out_dir)/app_resources', | |
| 110 '<@(grit_defines)' ], | |
| 111 'message': 'Generating resources from <(input_path)', | |
| 112 }, | 99 }, |
| 113 ], | 100 ], |
| 114 'direct_dependent_settings': { | 101 'includes': [ '../build/grit_target.gypi' ], |
| 115 'include_dirs': [ | |
| 116 '<(grit_out_dir)/app_resources', | |
| 117 ], | |
| 118 }, | |
| 119 'conditions': [ | |
| 120 ['OS=="win"', { | |
| 121 'dependencies': ['../build/win/system.gyp:cygwin'], | |
| 122 }], | |
| 123 ], | |
| 124 }, | 102 }, |
| 125 ], | 103 ], |
| 126 } | 104 } |
| 127 | 105 |
| 128 # Local Variables: | 106 # Local Variables: |
| 129 # tab-width:2 | 107 # tab-width:2 |
| 130 # indent-tabs-mode:nil | 108 # indent-tabs-mode:nil |
| 131 # End: | 109 # End: |
| 132 # vim: set expandtab tabstop=2 shiftwidth=2: | 110 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |