summaryrefslogtreecommitdiff
path: root/tools/gyp/test/android/make_functions.gyp
blob: 4b617cc932d349db9457607b63b32787903e96c8 (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
# Copyright (c) 2014 Google Inc. 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': 'file-in',
      'type': 'none',
      'copies': [
        {
          'destination': '<(PRODUCT_DIR)',
          'files': [ 'file.in' ],
        },
      ],
    },
    {
      'target_name': 'file-out',
      'type': 'none',
      'dependencies': [ 'file-in' ],
      'actions': [
        {
          'action_name': 'copy-file',
          'inputs': [ '$(strip <(PRODUCT_DIR)/file.in)' ],
          'outputs': [ '<(PRODUCT_DIR)/file.out' ],
          'action': [ 'cp', '$(strip <(PRODUCT_DIR)/file.in)', '<(PRODUCT_DIR)/file.out' ],
        }
      ],
    },
  ],
}