summaryrefslogtreecommitdiffstats
path: root/tools/android/fake_dns/fake_dns.gyp
blob: 7b685a1603305e45178cdc7323a5212efd2d118a (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
40
41
42
43
44
# 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': 'fake_dns',
      'type': 'none',
      'dependencies': [
        'fake_dns_symbols',
      ],
      'actions': [
        {
          'action_name': 'strip_fake_dns',
          'inputs': ['<(PRODUCT_DIR)/fake_dns_symbols'],
          'outputs': ['<(PRODUCT_DIR)/fake_dns'],
          'action': [
            '<!(/bin/echo -n $STRIP)',
            '--strip-unneeded',
            '<@(_inputs)',
            '-o',
            '<@(_outputs)',
          ],
        },
      ],
    }, {
      'target_name': 'fake_dns_symbols',
      'type': 'executable',
      'dependencies': [
        '../../../base/base.gyp:base',
        '../../../net/net.gyp:net',
        '../common/common.gyp:android_tools_common',
      ],
      'include_dirs': [
        '../../..',
      ],
      'sources': [
        'fake_dns.cc',
      ],
    },
  ],
}