michael@0: # Copyright (c) 2011 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: # This file is meant to be included into an action to invoke grit in a michael@0: # consistent manner. To use this the following variables need to be michael@0: # defined: michael@0: # grit_grd_file: string: grd file path michael@0: # grit_out_dir: string: the output directory path michael@0: michael@0: # It would be really nice to do this with a rule instead of actions, but it michael@0: # would need to determine inputs and outputs via grit_info on a per-file michael@0: # basis. GYP rules don’t currently support that. They could be extended to michael@0: # do this, but then every generator would need to be updated to handle this. michael@0: michael@0: { michael@0: 'variables': { michael@0: 'grit_cmd': ['python', '<(DEPTH)/tools/grit/grit.py'], michael@0: }, michael@0: 'inputs': [ michael@0: '