media/webrtc/trunk/build/grit_action.gypi

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
     2 # Use of this source code is governed by a BSD-style license that can be
     3 # found in the LICENSE file.
     5 # This file is meant to be included into an action to invoke grit in a
     6 # consistent manner. To use this the following variables need to be
     7 # defined:
     8 #   grit_grd_file: string: grd file path
     9 #   grit_out_dir: string: the output directory path
    11 # It would be really nice to do this with a rule instead of actions, but it
    12 # would need to determine inputs and outputs via grit_info on a per-file
    13 # basis. GYP rules don’t currently support that. They could be extended to
    14 # do this, but then every generator would need to be updated to handle this.
    16 {
    17   'variables': {
    18     'grit_cmd': ['python', '<(DEPTH)/tools/grit/grit.py'],
    19   },
    20   'inputs': [
    21     '<!@pymod_do_main(grit_info <@(grit_defines) --inputs <(grit_grd_file))',
    22   ],
    23   'outputs': [
    24     '<!@pymod_do_main(grit_info <@(grit_defines) --outputs \'<(grit_out_dir)\' <(grit_grd_file))',
    25   ],
    26   'action': ['<@(grit_cmd)',
    27              '-i', '<(grit_grd_file)', 'build',
    28              '-fGRIT_DIR/../gritsettings/resource_ids',
    29              '-o', '<(grit_out_dir)',
    30              '<@(grit_defines)' ],
    31   'msvs_cygwin_shell': 0,
    32   'message': 'Generating resources from <(grit_grd_file)',
    33 }

mercurial