• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2011 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  'targets': [
6    {
7      'target_name': 'el',
8      'type': 'static_library',
9      'sources': [ 'file.c', ],
10      'postbuilds': [
11        {
12          'postbuild_name': 'Static library postbuild',
13          'variables': {
14            'some_regex': 'a|b',
15          },
16          'action': [
17            'script/static_library_postbuild.sh',
18            '<(some_regex)',
19            'arg with spaces',
20          ],
21        },
22        {
23          'postbuild_name': 'Test variable in gyp file',
24          'action': [
25            'cp',
26            '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}',
27            '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}_gyp_touch.a',
28          ],
29        },
30      ],
31    },
32    {
33      'target_name': 'dyna',
34      'type': 'shared_library',
35      'mac_bundle': 1,
36      'sources': [ 'file.c', ],
37      'dependencies': [
38        'subdirectory/nested_target.gyp:nest_dyna',
39        'subdirectory/nested_target.gyp:nest_el',
40      ],
41      'postbuilds': [
42        {
43          'postbuild_name': 'Dynamic library postbuild',
44          'variables': {
45            'some_regex': 'a|b',
46          },
47          'action': [
48            'script/shared_library_postbuild.sh',
49            '<(some_regex)',
50            'arg with spaces',
51          ],
52        },
53        {
54          'postbuild_name': 'Test variable in gyp file',
55          'action': [
56            'cp',
57            '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}',
58            '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}_gyp_touch',
59          ],
60        },
61        {
62          'postbuild_name': 'Test paths relative to gyp file',
63          'action': [
64            './copy.sh',
65            'subdirectory/copied_file.txt',
66            '${BUILT_PRODUCTS_DIR}',
67          ],
68        },
69      ],
70    },
71    {
72      'target_name': 'dyna_standalone',
73      'type': 'shared_library',
74      'sources': [ 'file.c', ],
75      'postbuilds': [
76        {
77          'postbuild_name': 'Test variable in gyp file',
78          'action': [
79            'cp',
80            '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}',
81            '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}_gyp_touch.dylib',
82          ],
83        },
84      ],
85    },
86    {
87      'target_name': 'EmptyBundle',
88      'product_extension': 'bundle',
89      'type': 'executable',
90      'mac_bundle': 1,
91    },
92  ],
93}
94