summaryrefslogtreecommitdiffstats
path: root/build/util/build_util.gyp
blob: 7ece3927ec19f531cd487ff37ce2259288a996c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'includes': [
    '../common.gypi',
  ],
  'targets': [
    {
      'target_name': 'lastchange',
      'type': 'none',
      'variables': {
        'lastchange_out_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
      },
      'actions': [
        {
          'action_name': 'lastchange',
          'inputs': [
            './lastchange.py',
          ],
          'outputs': [
            '<(lastchange_out_path)',
            '<(lastchange_out_path).always',
          ],
          'action': [
            'python', '<@(_inputs)', '-o', '<(lastchange_out_path)',
          ],
          'message': 'Extracting last change to <(lastchange_out_path)'
        },
      ],
    },
  ]
}