• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2009 Google Inc. 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.
4
5{
6  'targets': [
7    {
8      'target_name': 'action1_target',
9      'type': 'none',
10      'suppress_wildcard': 1,
11      'actions': [
12        {
13          'action_name': 'action1',
14          'inputs': [
15            'emit.py',
16          ],
17          'outputs': [
18            '<(PRODUCT_DIR)/out.txt',
19          ],
20          'action': ['python', 'emit.py', '<(PRODUCT_DIR)/out.txt'],
21          'msvs_cygwin_shell': 0,
22        },
23      ],
24    },
25    {
26      'target_name': 'action2_target',
27      'type': 'none',
28      'actions': [
29        {
30          'action_name': 'action2',
31          'inputs': [
32            'emit.py',
33          ],
34          'outputs': [
35            '<(PRODUCT_DIR)/out2.txt',
36          ],
37          'action': ['python', 'emit.py', '<(PRODUCT_DIR)/out2.txt'],
38          'msvs_cygwin_shell': 0,
39        },
40      ],
41    },
42    {
43      'target_name': 'foolib1',
44      'type': 'shared_library',
45      'suppress_wildcard': 1,
46      'sources': ['lib1.c'],
47    },
48  ],
49  'conditions': [
50    ['OS=="linux"', {
51      'target_defaults': {
52        'cflags': ['-fPIC'],
53      },
54    }],
55  ],
56}
57