summaryrefslogtreecommitdiffstats
path: root/tools/android/memdump/memdump.gyp
blob: f47cedf0048ddc50ddf969d4dde43b2087fd4e9a (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
35
36
37
38
39
# Copyright (c) 2012 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.

{
  'targets': [
    {
      'target_name': 'memdump-unstripped',
      'type': 'executable',
      'dependencies': [
        '../../../base/base.gyp:base',
      ],
      'sources': [
        'memdump.cc',
      ],
    },
    {
      'target_name': 'memdump',
      'type': 'none',
      'dependencies': [
        'memdump-unstripped',
      ],
      'actions': [
        {
          'action_name': 'strip_memdump',
          'inputs': ['<(PRODUCT_DIR)/memdump-unstripped'],
          'outputs': ['<(PRODUCT_DIR)/memdump'],
          'action': [
            '<(android_strip)',
            '--strip-unneeded',
            '<@(_inputs)',
            '-o',
            '<@(_outputs)',
          ],
        },
      ],
    },
  ],
}